Skip to content

Conversation

acpana
Copy link
Contributor

@acpana acpana commented Sep 12, 2023

There is a pre-existing, pathological race condition in AddRotator from which the CertRotator.Start() and the ReconcileWh.Reconcile() may race. Currently that race causes a panic if ExtKeyUsages == nil.

This patch moves the defaulting of ExtKeyUsages to AddRotator (where CertRotator is created).

@acpana acpana requested a review from maxsmythe September 12, 2023 20:47
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

@acpana acpana marked this pull request as ready for review September 12, 2023 22:06
@acpana acpana requested review from ritazh and sozercan September 12, 2023 22:07
@acpana
Copy link
Contributor Author

acpana commented Sep 14, 2023

@ritazh / @sozercan PTAL 🙏🏼

Copy link
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@acpana acpana merged commit c2f5ff7 into open-policy-agent:master Sep 18, 2023
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.

3 participants