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

Store & compare hash of secrets. #80

Merged
merged 3 commits into from
Mar 27, 2018
Merged

Store & compare hash of secrets. #80

merged 3 commits into from
Mar 27, 2018

Conversation

ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Mar 27, 2018

This PR adds a struct to the deployment status storing a sha256 hashes of all secrets used in the deployment.
It listens for changes in secrets and compare the hash of the current secret with the stored ones.
If a change is detect, the deployment is mark with a SecretsChanged condition.
If such a condition is set, the operator will not do anything except looking at the secrets waiting for them to be reverted.

Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ewoutp ewoutp merged commit 562c83d into master Mar 27, 2018
@ewoutp ewoutp deleted the secret-hashes branch March 27, 2018 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants