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

pass kwargs in history #4108

Merged
merged 6 commits into from Feb 29, 2024

Conversation

zendesk-mattlefevre
Copy link
Contributor

We're seeing an error in lib/samson/secrets/manager.rb where the wrong number of values are being passed. Aiming to fix this error in this PR.

Risks

  • Low/Med/High: thing that could happen

@@ -38,7 +38,7 @@ def read(id, *args, include_value: false)
end

def history(id, include_value: false, **options)
history = backend.history(id, options) || raise(ActiveRecord::RecordNotFound)
history = backend.history(id, **options) || raise(ActiveRecord::RecordNotFound)
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make a test that fails when this is not added (I assume by using the vault backend in the test)
... or somehow changing the current testing backend to behave the same as the backend that failed

@zendesk-mattlefevre zendesk-mattlefevre force-pushed the zendesk-mattlefevre/fix-secret-manager branch from 697f28d to 0ec5578 Compare February 29, 2024 20:16
@zendesk-mattlefevre zendesk-mattlefevre merged commit f184b60 into master Feb 29, 2024
9 checks passed
@zendesk-mattlefevre zendesk-mattlefevre deleted the zendesk-mattlefevre/fix-secret-manager branch February 29, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants