Hashi Corp Vault Connection
Stores information and configuration for the access to a HashiCorp Vault.
Example. Adds a new Connection that allows TeamCity to connect to a HashiCorpVault using AppRole
project {
// Other Project settings ...
features {
// Other Project Features ...
hashiCorpVaultConnection {
id = "PROJECT_ID"
name = "HashiCorp Vault"
authMethod = appRole {
endpointPath = "approle"
roleId = "id"
secretId = "credentialsJSON:ee2362ab-33fb-40bd-b49b-e77c4a45e978"
}
}
Content copied to clipboard }
}
Example. Adds a new Connection that allows TeamCity to connect to a HashiCorpVault using AppRole. It defines it own parameter namespace and a respective vault namespace.
project {
// Other Project settings ...
features {
// Other Project Features ...
hashiCorpVaultConnection {
id = "PROJECT_ID"
name = "HashiCorp Vault"
vaultId = "other-namespace"
vaultNamespace = "other"
authMethod = appRole {
endpointPath = "approle"
roleId = "id"
secretId = "credentialsJSON:ee2362ab-33fb-40bd-b49b-e77c4a45e978"
}
}
Content copied to clipboard }
}
Example. Adds a new Connection that allows TeamCity to connect to a HashiCorpVault using LDAP
project {
// Other Project settings ...
features {
// Other Project Features ...
hashiCorpVaultConnection {
id = "PROJECT_ID"
name = "HashiCorp Vault"
authMethod = ldap {
path = "path"
username = "username"
password = "credentialsJSON:636e34b4-d02e-4f27-9d12-141f75e8832b"
}
}
Content copied to clipboard }
}
See also
Properties
The way how to obtain credentials (just provide the keys, assume IAM role or other)
Whether to fail builds in case of parameter resolving error
HashiCorp Vault namespace that the auth method and secrets engines are housed under.
Functions
Copies parameters of this object to the specified target
Creates an instance of this project feature via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Validates this object and reports found errors to the provided consumer