Skip to content

vendor_connectors.secrets.tools

AI framework tools for secrets synchronization operations.

This module provides tools for secrets sync operations that work with multiple AI agent frameworks including LangChain, CrewAI, and AWS Strands.

ValidateConfigSchemaSchema for validating a secrets sync configuration.
RunPipelineSchemaSchema for running the secrets sync pipeline.
GetConfigInfoSchemaSchema for getting configuration information.
validate_configValidate a secrets sync pipeline configuration file.
run_pipelineRun the secrets synchronization pipeline.
dry_runPerform a dry run to see what changes would be made.
get_config_infoGet detailed information about a pipeline configuration.
get_targetsGet the list of sync targets from a configuration.
get_sourcesGet the list of secret sources from a configuration.
get_langchain_toolsGet all secrets sync tools as LangChain StructuredTools.
get_crewai_toolsGet all secrets sync tools as CrewAI tools.
get_strands_toolsGet all secrets sync tools as plain Python functions for AWS Strands.
get_toolsGet secrets sync tools for the specified or auto-detected framework.
TOOL_DEFINITIONS

class vendor_connectors.secrets.tools.ValidateConfigSchema

Section titled “class vendor_connectors.secrets.tools.ValidateConfigSchema”

Bases: pydantic.BaseModel

Schema for validating a secrets sync configuration.

‘Field(…)’

class vendor_connectors.secrets.tools.RunPipelineSchema

Section titled “class vendor_connectors.secrets.tools.RunPipelineSchema”

Bases: pydantic.BaseModel

Schema for running the secrets sync pipeline.

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘Field(…)’

‘Field(…)’

class vendor_connectors.secrets.tools.GetConfigInfoSchema

Section titled “class vendor_connectors.secrets.tools.GetConfigInfoSchema”

Bases: pydantic.BaseModel

Schema for getting configuration information.

‘Field(…)’

Validate a secrets sync pipeline configuration file.

Args: config_path: Path to the YAML configuration file

Returns: Dict with ‘valid’ (bool) and ‘message’ (str) fields

vendor_connectors.secrets.tools.run_pipeline(config_path: str, dry_run: bool = False, operation: str = ‘pipeline’, targets: str | None = None, continue_on_error: bool = False) → dict[str, Any]

Section titled “vendor_connectors.secrets.tools.run_pipeline(config_path: str, dry_run: bool = False, operation: str = ‘pipeline’, targets: str | None = None, continue_on_error: bool = False) → dict[str, Any]”

Run the secrets synchronization pipeline.

This executes the two-phase pipeline (merge → sync) to synchronize secrets from HashiCorp Vault to AWS Secrets Manager.

Args: config_path: Path to the YAML configuration file dry_run: If true, compute diff but don’t make changes operation: ‘merge’, ‘sync’, or ‘pipeline’ (full) targets: Comma-separated list of targets (empty for all) continue_on_error: Continue if errors occur

Returns: Dict with sync results including success, counts, and any errors

Perform a dry run to see what changes would be made.

Args: config_path: Path to the YAML configuration file

Returns: Dict with what would be changed, including diff output

Get detailed information about a pipeline configuration.

Args: config_path: Path to the YAML configuration file

Returns: Dict with configuration details including sources and targets

Get the list of sync targets from a configuration.

Args: config_path: Path to the YAML configuration file

Returns: Dict with ‘targets’ list and any error message

Get the list of secret sources from a configuration.

Args: config_path: Path to the YAML configuration file

Returns: Dict with ‘sources’ list and any error message

vendor_connectors.secrets.tools.TOOL_DEFINITIONS

Section titled “vendor_connectors.secrets.tools.TOOL_DEFINITIONS”

None

Get all secrets sync tools as LangChain StructuredTools.

Get all secrets sync tools as CrewAI tools.

Get all secrets sync tools as plain Python functions for AWS Strands.

Get secrets sync tools for the specified or auto-detected framework.

Args: framework: One of ‘auto’, ‘langchain’, ‘crewai’, ‘strands’, ‘functions’

Returns: List of tools in the appropriate format