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

[Feature] - Key in state, release 1.2.0 #48

Merged
merged 5 commits into from
Nov 12, 2019
Merged

Conversation

lazypower
Copy link
Contributor

  • Adds a new feature, enhancing the format of the secrets envelope. The
    idea being that the user wont have to key in the key path more than
    once, and once a secret state file has a keyURI it will favor that
    keyURI and will aggressively check that the operator is storing
    secrets using the same KeyURI per state-file.

This ships with a pretty invasive change to how we read/process/load
secrets. I expect there to be a little fallout from this revision but
nothing too un-patchable.

Charles Butler added 2 commits November 8, 2019 15:08
- Adds a new feature, enhancing the format of the secrets envelope. The
  idea being that the user wont have to key in the key path more than
  once, and once a secret state file has a keyURI it will favor that
  keyURI and will aggressively check that the operator is storing
  secrets using the same KeyURI per state-file.

This ships with a pretty invasive change to how we read/process/load
secrets. I expect there to be a little fallout from this revision but
nothing too un-patchable.
@lazypower
Copy link
Contributor Author

Seeing as how this is non-critical and its late on a Friday, this can totally wait :)

Final output of my efforts today: coverage: 81.2% of statements

Not 100% but that's a 50% improvement over previous builds.

@lazypower lazypower added the enhancement New feature or request label Nov 8, 2019
credentials/gcp.go Outdated Show resolved Hide resolved
utils/secrets.go Outdated Show resolved Hide resolved
testdata/test_secret_v2_multiple.json Outdated Show resolved Hide resolved
utils/secrets.go Outdated Show resolved Hide resolved
utils/secrets_test.go Show resolved Hide resolved
utils/secrets_test.go Outdated Show resolved Hide resolved
utils/secrets_test.go Outdated Show resolved Hide resolved
utils/utils.go Show resolved Hide resolved
utils/utils.go Outdated Show resolved Hide resolved
utils/utils.go Show resolved Hide resolved
utils/utils_test.go Outdated Show resolved Hide resolved
utils/utils_test.go Outdated Show resolved Hide resolved
utils/utils_test.go Outdated Show resolved Hide resolved
@lazypower
Copy link
Contributor Author

Ok, Review feedback implemented and I think I got all the cases here. Thank you for the thorough review :)

@lazypower lazypower force-pushed the envelope/key-uri branch 2 times, most recently from e69e836 to a91144f Compare November 12, 2019 16:50
Copy link
Contributor

@edaniszewski edaniszewski left a comment

Choose a reason for hiding this comment

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

Made one note about a log level, but otherwise LGTM!

utils/state.go Outdated Show resolved Hide resolved
- Updated the test cases for better clarity.
- Implemented the review feedback
- ran go mod tidy && removed unused go-spew sums from go.sum
@lazypower lazypower merged commit 7c00e1e into master Nov 12, 2019
@lazypower lazypower deleted the envelope/key-uri branch November 12, 2019 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants