You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we've been using vault_ssh_secret_backend_role for a long time to manage a SSH secret engine for signing SSH host certs.
To limit the permissions of every given server, we used templating inside of allowed_domains. This worked fine for the last years.
Vault release 1.12.0 introduced a new field for that endpoint called allowed_domains_template (see hashicorp/vault#16056). This is set to false by default. Due to this behaviour change, the templating inside allowed_domains no longer works out of the box and the hosts can't update their SSH host cert.
Terraform Version
not relevant
Affected Resource(s)
vault_ssh_secret_backend_role
Terraform Configuration Files
resource"vault_ssh_secret_backend_role""server" {
name="server"backend=vault_mount.ssh.pathkey_type="ca"algorithm_signer="rsa-sha2-512"allow_host_certificates=trueallowed_users_template=true# this is missing at the moment# allowed_domains_template = trueallow_bare_domains=trueallowed_domains="{{ identity.entity.aliases.${vault_auth_backend.cert.accessor}.name }}"
}
Debug Output
not relevant
Panic Output
not relevant
Expected Behavior
The resource supports the new field
Actual Behavior
The resource does not support the field so far
Steps to Reproduce
Update a Vault to >= 1.12.0
use the above snippet to configure ssh_secret_backend_role with host_certificates
Login using a SSH cert (cert auth backend) and try to sign the cert using the above method
Hi,
we've been using vault_ssh_secret_backend_role for a long time to manage a SSH secret engine for signing SSH host certs.
To limit the permissions of every given server, we used templating inside of
allowed_domains
. This worked fine for the last years.Vault release 1.12.0 introduced a new field for that endpoint called
allowed_domains_template
(see hashicorp/vault#16056). This is set tofalse
by default. Due to this behaviour change, the templating insideallowed_domains
no longer works out of the box and the hosts can't update their SSH host cert.Terraform Version
not relevant
Affected Resource(s)
Terraform Configuration Files
Debug Output
not relevant
Panic Output
not relevant
Expected Behavior
The resource supports the new field
Actual Behavior
The resource does not support the field so far
Steps to Reproduce
cert
auth backend) and try to sign the cert using the above methodImportant Factoids
References
hashicorp/vault#16056
The text was updated successfully, but these errors were encountered: