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

Add GetX509Signer method #1850

Merged
merged 3 commits into from
May 22, 2024
Merged

Add GetX509Signer method #1850

merged 3 commits into from
May 22, 2024

Conversation

maraino
Copy link
Contributor

@maraino maraino commented May 16, 2024

This commit adds a method to the Authority type that returns the signer used to sign X509 certificates.

This commit adds a method to the Authority type that returns the signer
used to sign X509 certificates.
@maraino maraino requested a review from hslatman May 16, 2024 00:42
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label May 16, 2024
@@ -418,7 +428,7 @@ ZYtQ9Ot36qc=
require.NoError(t, err)
testAuthority.db = &db.MockAuthDB{
MStoreCertificate: func(crt *x509.Certificate) error {
sassert.Equals(t, crt.Subject.CommonName, "smallstep test")
assert.Equal(t, crt.Subject.CommonName, "smallstep test")
Copy link
Member

Choose a reason for hiding this comment

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

It's better to reverse the order of arguments for expected and actual, but not a blocker. I've been changing those whenever I saw them happening and felt like they didn't muddy the PRs I was working at the time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know, but I've just find and replace everything with sassert 🙂

Fixed with 812ffd3

authority/tls_test.go Outdated Show resolved Hide resolved
maraino and others added 2 commits May 16, 2024 13:52
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
@maraino maraino requested a review from hslatman May 16, 2024 21:12
@maraino maraino merged commit 47b5048 into master May 22, 2024
13 checks passed
@maraino maraino deleted the mariano/signer branch May 22, 2024 22:33
@hslatman hslatman added this to the v0.26.2 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants