EnvironmentVaultConfig#

pydantic model phalanx.models.environments.EnvironmentVaultConfig#

Vault configuration for a specific environment.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "EnvironmentVaultConfig",
   "description": "Vault configuration for a specific environment.",
   "type": "object",
   "properties": {
      "vaultUrl": {
         "title": "Vaulturl",
         "type": "string"
      },
      "vaultPathPrefix": {
         "title": "Vaultpathprefix",
         "type": "string"
      }
   },
   "required": [
      "vaultUrl",
      "vaultPathPrefix"
   ]
}

Config:
  • alias_generator: function = <function to_camel_case at 0x7f579e577d80>

  • allow_population_by_field_name: bool = True

Fields:
field vault_path_prefix: str [Required] (alias 'vaultPathPrefix')#

Prefix of Vault paths, including the Kv2 mount point.

field vault_url: str [Required] (alias 'vaultUrl')#

URL of Vault server for this environment.

dict(**kwargs)#

Export the model as a dictionary.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

dict[str, Any]

json(**kwargs)#

Export the model as JSON.

Overridden to change the default of by_alias from False to True, so that by default the exported dictionary uses camel-case.

Parameters:

kwargs (Any) –

Return type:

str

property vault_path: str#

Vault path without the initial Kv2 mount point.

property vault_read_approle: str#

Name of the Vault read AppRole for this environment.

property vault_read_policy: str#

Name of the Vault read policy for this environment.

property vault_write_policy: str#

Name of the Vault write policy for this environment.

property vault_write_token: str#

Display name of the Vault write token for this environment.

Unlike AppRole names, this could include a slash, but use the same name as the AppRole for consistency and simplicity.