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

Issue1198: error reading deleted secret #1260

Merged
merged 2 commits into from
Aug 19, 2019

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Aug 16, 2019

No description provided.

@eikenb eikenb force-pushed the issue1198-err-reading-deleted-secret branch 3 times, most recently from 83d7b41 to 6afdc8a Compare August 16, 2019 20:44
@eikenb eikenb requested review from a team August 16, 2019 20:45
@eikenb eikenb added bug vault Related to the Vault integration labels Aug 16, 2019
@eikenb eikenb added this to the 0.21.1 milestone Aug 16, 2019
@eikenb eikenb force-pushed the issue1198-err-reading-deleted-secret branch from 6afdc8a to 558a241 Compare August 16, 2019 20:48
@eikenb eikenb force-pushed the issue1198-err-reading-deleted-secret branch from f9b9c81 to 721243c Compare August 17, 2019 05:30
Copy link

@s-mang s-mang left a comment

Choose a reason for hiding this comment

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

LGTM for the most part. some tiny nit picks, but otherwise :shipit:

dependency/dependency_test.go Outdated Show resolved Hide resolved
dependency/vault_read_test.go Outdated Show resolved Hide resolved
@eikenb eikenb force-pushed the issue1198-err-reading-deleted-secret branch 2 times, most recently from 472675f to 1ea608b Compare August 19, 2019 22:59
When reading a deleted secret from vault, vault would return meta-data
and no data. The code wasn't setup to handle that and would error out
in the template with an "nil pointer evaluating interface {}" error.

This checks for that and returns the normal "no secret exists" error
that triggers the standard retrying behavior instead of exiting.

Fixes #1198
@eikenb eikenb force-pushed the issue1198-err-reading-deleted-secret branch from 1ea608b to f52ffb8 Compare August 19, 2019 23:03
@eikenb eikenb merged commit 4750230 into master Aug 19, 2019
@eikenb eikenb deleted the issue1198-err-reading-deleted-secret branch August 19, 2019 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug vault Related to the Vault integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants