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 password endpoint #5

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Store password endpoint #5

merged 2 commits into from
Oct 27, 2023

Conversation

pdeziel
Copy link
Collaborator

@pdeziel pdeziel commented Oct 26, 2023

This adds an endpoint to store a pcks12 password from a POST request using the server's configured store mechanism.

@pdeziel pdeziel requested a review from pdamodaran October 26, 2023 19:03
pkg/certs.go Show resolved Hide resolved
Copy link

@pdamodaran pdamodaran left a comment

Choose a reason for hiding this comment

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

I just made one comment - but apart from that this is good to go

pkg/certs.go Show resolved Hide resolved
require.NoError(err, "could not store certificate password")
})

s.Run("MissingPassword", func() {

Choose a reason for hiding this comment

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

how about also adding a missing ID check?

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 hard to test that on the server side since the ID is part of the URL and it would be a 404, however I've added a client test to ensure that the client catches that case, thanks for the suggestion!

@pdeziel pdeziel merged commit 2843348 into main Oct 27, 2023
3 checks passed
@pdeziel pdeziel deleted the sc-22232 branch October 27, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants