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

certificate_complete_chain: avoid infinite loops, and double roots when root certificate was already part of chain #360

Merged

Conversation

felixfontein
Copy link
Contributor

SUMMARY

Avoid infinite loops, and double roots when root certificate was already part of chain.

Fixes #355.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

certificate_complete_chain

Copy link
Contributor

@briantist briantist left a comment

Choose a reason for hiding this comment

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

small style comment in the integration tests but one I'd consider completely optional, looks good to me

@felixfontein felixfontein merged commit 6ee238d into ansible-collections:main Jan 4, 2022
@patchback
Copy link

patchback bot commented Jan 4, 2022

Backport to stable-1: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-1/6ee238d9617b6d6f30333bda64ec4247a46fbd97/pr-360

Backported as #366

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein deleted the fix-endless-loop branch January 4, 2022 06:00
patchback bot pushed a commit that referenced this pull request Jan 4, 2022
…en root certificate was already part of chain (#360)

* Avoid infinite loops, and double roots when root certificate was already part of chain.

* Refactor tests for readability.

(cherry picked from commit 6ee238d)
@felixfontein
Copy link
Contributor Author

@briantist thanks for reviewing this!

felixfontein added a commit that referenced this pull request Jan 4, 2022
…en root certificate was already part of chain (#360) (#366)

* Avoid infinite loops, and double roots when root certificate was already part of chain.

* Refactor tests for readability.

(cherry picked from commit 6ee238d)

Co-authored-by: Felix Fontein <felix@fontein.de>
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.

endless loop when root certificate is found in intermediate certificates set
2 participants