Add ability to provide RSA public encrypted secrets for actions_secret #495
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Throwing things at the wall to see what sticks. Trying to solve the problem of secrets management with as little overhead as possible. This should be viewed as a POC at present.
CC @jcudit @anGie44 #468
Provides the ability to supply a publicly RSA encrypted value and env
var of where to find the private pem string to the github_actions_secret
resource.
Values are decrypted and then encrypted once again by the resource. This
will result in no secrets being stored in plain text in either the
repository or state file.
Adds:
encrypted_value
parameterprivate_key_env
parameterOne of either
plaintext_value
orencrypted_value
is required.Setup
Use
Developers run the following command to encrypt a value
Encrypted value used in
encrypted_value
parameterOutput
Terraform state created
A Github Workflow with the following config
Produces