Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oci_vault_secret - Automatic secret generation #2217

Open
martysweet opened this issue Oct 14, 2024 · 0 comments
Open

oci_vault_secret - Automatic secret generation #2217

martysweet opened this issue Oct 14, 2024 · 0 comments

Comments

@martysweet
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

The vault secrets API now offers the capability to generate specific types of secrets such as:

  • SSH
  • Passphrase
  • Bytes

This can be seen in the following resources:

New or Affected Resource(s)

oci_vault_secret

Potential Terraform Configuration

The resource should be expanded to support the secret-generation-context, which requires the fields such as

{
	"generation_type": "PASSPHRASE",
	"generation_template": "DBAAS_DEFAULT_PASSWORD",
	"secret_template": {
		"username": "ORACLE",
		"password": "%GENERATED_PASSPHRASE%"
	}	
}

This should be possible to align with the existing rotation context, and would require some conditions around when a generation context is permitted vs. a statically assigned secret.

It should then be possible to pull the secret back into Terraform and use it within the same Terraform execution.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant