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

Token swap #43

Merged
merged 7 commits into from
Oct 3, 2024
Merged

Token swap #43

merged 7 commits into from
Oct 3, 2024

Conversation

suprjinx
Copy link
Collaborator

@suprjinx suprjinx commented Oct 2, 2024

Switch the Vault token after boostrapping the engines
Fixes #34

module Clients
class Vault
class << self
def rotate_token
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it worth adding a test for rotate_token?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

well, yes!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added a test case in clients/vault_test.rb

GeorgeJahad
GeorgeJahad previously approved these changes Oct 2, 2024
Copy link
Collaborator

@GeorgeJahad GeorgeJahad left a comment

Choose a reason for hiding this comment

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

I left a comment, but lgtm.

end
end

test "#configure_pki" do
test ".configure_pki" do
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the diff between '#' and '.'?

is there convention here that I should understand?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's a convention from rspec which I adopted for the descriptions here -- https://grosser.it/2010/06/18/how-to-name-rspec-describe-blocks-for-methods/

GeorgeJahad
GeorgeJahad previously approved these changes Oct 3, 2024
Copy link
Collaborator

@GeorgeJahad GeorgeJahad left a comment

Choose a reason for hiding this comment

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

lgtm

@suprjinx suprjinx merged commit 3598418 into G-Research:main Oct 3, 2024
2 checks passed
@suprjinx suprjinx deleted the token_swap branch October 3, 2024 18:42
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.

Vault client security
2 participants