Skip to content

API Reference parrot.handlers.studio.storage.vault_targets

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.handlers.studio.storage.vault_targets

View source

navigator_session.vault_targets for the phase-2 Postgres secret tables (spec §2.10, M12).

Mirrors core parrot.vault_targets (DocumentDB): navigator.ai_user_credentials and navigator.ai_user_llm_keys hold the same base64 envelopes under the same AAD contexts, so navigator-vault rotation / migration covers them. The tables have no lifecycle column (DDL fixed by the spec), so a quarantined row is renamed (<name>#quarantined:<run_id>): its blob is untouched, runtime reads (keyed by the original name) no longer find it, iteration skips it, and restore_raw puts the original key back.

Alias CREDENTIAL_PURPOSE

Re-exported from parrot.security.credentials_utils.CREDENTIAL_PURPOSE.

Alias LLM_KEY_PURPOSE

Re-exported from parrot.security.credentials_utils.LLM_KEY_PURPOSE.

Class PgUserCredentialsTarget

navigator.ai_user_credentials.credential sealed under credential_context(user_id, name).

Class PgUserLlmKeysTarget

navigator.ai_user_llm_keys.api_key_enc sealed under llm_key_context(user_id, provider).

Attribute QUARANTINE_MARK

Alias credential_context

Re-exported from parrot.security.credentials_utils.credential_context.

Alias llm_key_context

Re-exported from parrot.security.credentials_utils.llm_key_context.

Function user_credentials_factory

Entry-point factory (needs the PostgreSQL pool).

user_credentials_factory(resources: Mapping[str, Any]) -> Optional[PgUserCredentialsTarget]

Parameter Type Default Description
resources Mapping[str, Any]

Returns: Optional[PgUserCredentialsTarget]

Function user_llm_keys_factory

Entry-point factory (needs the PostgreSQL pool).

user_llm_keys_factory(resources: Mapping[str, Any]) -> Optional[PgUserLlmKeysTarget]

Parameter Type Default Description
resources Mapping[str, Any]

Returns: Optional[PgUserLlmKeysTarget]

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally