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

Fix ACME tidy to not reference acmeContext #21870

Merged
merged 11 commits into from
Jul 17, 2023
Merged

Conversation

cipherboy
Copy link
Contributor

@cipherboy cipherboy commented Jul 14, 2023

acmeContext is useful for when we need to reference things with a ACME base URL, but everything used in tidy doesn't need this URL as it is not coming from an ACME request.

Refactor tidy to remove references to acmeContext, including dependent functions in acme_state.go.

Resolves: #21866
Resolves: #21872

@cipherboy cipherboy added bug Used to indicate a potential bug secret/pki backport/1.14.x labels Jul 14, 2023
@cipherboy cipherboy added this to the 1.14.1 milestone Jul 14, 2023
@cipherboy cipherboy requested review from kitography, stevendpclark and a team July 14, 2023 18:42
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jul 14, 2023
cipherboy and others added 9 commits July 17, 2023 10:35
acmeContext is useful for when we need to reference things with a ACME
base URL, but everything used in tidy doesn't need this URL as it is not
coming from an ACME request.

Refactor tidy to remove references to acmeContext, including dependent
functions in acme_state.go.

Signed-off-by: Alexander Scheel <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Resolve: #21872

Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Co-authored-by: kitography <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Signed-off-by: Alexander Scheel <[email protected]>
Copy link
Contributor

@kitography kitography left a comment

Choose a reason for hiding this comment

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

LGTM :)

builtin/logical/pki/path_tidy_test.go Outdated Show resolved Hide resolved
builtin/logical/pki/path_tidy_test.go Show resolved Hide resolved
Copy link
Contributor Author

@cipherboy cipherboy left a comment

Choose a reason for hiding this comment

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

Changes look good, thanks @stevendpclark!

Copy link
Contributor

@kitography kitography left a comment

Choose a reason for hiding this comment

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

Great extra test, and I love the wait for tidy to finish funciton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed secret/pki
Projects
None yet
3 participants