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

Kong cert order v2 #859

Closed
wants to merge 6 commits into from
Closed

Conversation

chenjinxuan
Copy link
Contributor

Because it needs to be merged into the next branch, re commit to create pr

rainest
rainest previously approved these changes Sep 21, 2020
go.sum Outdated
@@ -9,12 +9,10 @@ cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7p
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
cloud.google.com/go v0.45.1 h1:lRi0CHyU+ytlvylOlFKKq0af6JncuyoRh1J+QJBqQx0=
Copy link
Member

Choose a reason for hiding this comment

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

Please revert all the changes in this file.

if kongCert.CreationTimestamp.After(secret.CreationTimestamp.Time) {
if kongCert.CreationTimestamp.After(secret.CreationTimestamp.Time) ||
(kongCert.CreationTimestamp.Equal(&secret.CreationTimestamp) &&
*kongCert.cert.ID > string(secret.UID)) {
Copy link
Member

Choose a reason for hiding this comment

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

Question:
What is the logic behind this comparison?
Is there a reason why you have not opted for !=?

(blocker for merge)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image
image
As shown in the figure above, when the certificate name and create_time of different namespace When time is consistent, there are problems
image
Because secretsToSNIs is a map, it is unordered

@shaneutt
Copy link
Contributor

Hi 👋 just checking in with everyone here since this PR hasn't been updated for a while, what do we need to move this forward?

@stale
Copy link

stale bot commented Mar 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Will be closed unless advocated for within 7 days label Mar 20, 2021
@stale stale bot closed this Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr/changes requested stale Will be closed unless advocated for within 7 days
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants