Skip to main content
This page describes the technical implementation of the administrative and configuration surfaces within the Palyra Web Console. These sections facilitate model provider setup, configuration mutation, skill lifecycle management, and security posture oversight.

AuthSection: Model Provider Setup

The AuthSection manages the AuthProfileRegistry by allowing operators to configure credentials for AI providers (OpenAI, Anthropic). It supports two primary credential types: static API keys and managed OAuth flows.

Implementation Details

Data Flow: API Key Connection

The following diagram illustrates the flow from the UI to the secure vault storage. Auth Credential Flow Sources: apps/web/src/console/sections/AuthSection.tsx#62-111, apps/web/src/console/hooks/useAuthDomain.ts#130-166, crates/palyra-daemon/src/openai_surface.rs#16-76.

ConfigSection: palyra.toml Mutation

The ConfigSection provides a controlled interface for modifying the daemon’s configuration without manual TOML editing. It operates on a “Redact-Inspect-Mutate” lifecycle to prevent leaking secrets in the UI.

Key Functions

Configuration Operations

OperationCode EntityDescription
MigratemigrateConfigSurfaceUpgrades palyra.toml to the latest schema version.
MutatemutateConfigSurfaceUpdates a specific key-value pair in the TOML document.
RecoverrecoverConfigSurfaceReplaces the current config with a selected backup.
Sources: apps/web/src/console/sections/ConfigSection.tsx#1-111, apps/web/src/App.config-access-support.test.tsx#45-70.

AccessSection & Node Pairing

The AccessSection manages the security perimeter of the Palyra deployment. It handles device identity, mTLS trust states, and the pairing of new nodes (e.g., CLI instances or mobile companions).

Node Pairing Flow

Palyra uses a multi-step pairing process to establish trust:
  1. Minting: An administrator generates a temporary PIN or pairing code apps/web/src/console/hooks/useSupportDomain.ts#119-142.
  2. Request: The remote node submits a pairing request using the code.
  3. Approval: The administrator reviews the request (device ID, IP fingerprint) in the AccessSection and approves or rejects it apps/web/src/console/sections/AccessSection.tsx#118-127.

Implementation Entities

Sources: apps/web/src/console/sections/AccessSection.tsx#138-185, apps/web/src/console/hooks/useSupportDomain.ts#144-184.

SecretsSection

The SecretsSection provides a dedicated interface for managing the palyra-vault. Unlike the ConfigSection, which handles structural settings, this section handles raw sensitive values.

Security Features

Sources: apps/web/src/console/sections/SecretsSection.tsx, apps/web/src/App.config-access-support.test.tsx#128-151.

Summary Diagram: Control Plane Entities

This diagram bridges the Natural Language concepts to the specific Code Entities used in the Control Plane. Control Plane Architecture Sources: apps/web/src/console/hooks/useAuthDomain.ts#48-69, apps/web/src/console/hooks/useSupportDomain.ts#26-55, crates/palyra-daemon/src/openai_surface.rs#16-20.