Allow passing credential_type="rsa_private_key"
when creating snowflake secrets engine role
#180
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
blocked
The issue cannot be resolved without 3rd party action.
kind/enhancement
Improvements or new features
Hello!
Issue details
The snowflake secrets engine supports configuration options for creating rsa based authentication which cannot be specified when creating a
pulumi_vault.database.SecretBackendRole
.In particular, in order to provision users with rsa_private_key auth rather than password auth, the role needs to be created with
credential_type="rsa_private_key"
-- without specifying that parameter the secrets engine doesn't pass an appropriate value for the{{public_key}}
template parameter when rendering the creation statements.Here's a python example to demonstrate: I'd like to provision a role that uses the snowflake-secrets engine to create a dynamic user with a generated-by-vault RSA_PUBLIC_KEY. The commented out
PASSWORD
creation statement below works, but the example that usesRSA_PUBLIC_KEY
does not.Provisioning as above will succeed but then attempting to read creds from the role fails with
I believe this fails because there is no valid value for {{pubkey}} being supplied by the secrets engine -- I believe this value is only supplied by the secrets engine when
credential_type="rsa_private_key"
is specified to create the role.Provisioning the role manually like this works as expected:
If there's a workaround for this that I'm not aware of - I'd greatly appreciate someone pointing me that way. Otherwise it would be huge if the pulumi api grew support for specifying values for these arguments -- the set that I'm aware of being
pubkey
credential_type
credential_config.key_bits
credential_config.format
As far as I can tell -- its also not possible to provision static roles from pulumi -- as these require specifying rotation_period and username which I don't think can be done from pulumi.edit: nvm for this last observation. I believe SecretBackendStaticRole already supports the static role case -- its just not present in the version ofpulumi_vault
that I am using. But I am not seeing anything in newer versions of pulumi_vault that would support rsa credential creation (?)Affected area/feature
Terraform Bridge/related to the Hashicorp Vault with Snowflake Secrets Engine
The text was updated successfully, but these errors were encountered: