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

Fixing leader election and RBAC permissions #53

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

nutellinoit
Copy link
Member

@nutellinoit nutellinoit commented Sep 17, 2021

Hi team, we found a bug on the nginx leader election.

The main issue can be found here: https://github.com/kubernetes/ingress-nginx/blame/5c6a28464bad138ff84f1d9a3414963d4b7c236f/internal/ingress/controller/nginx.go#L259

They silently changed the logic on how the nginx ingress controller manages the leader election.

I reverted the role permission that grants the update to all the namespace confimaps and changed all the election-id accordingly

@nutellinoit nutellinoit marked this pull request as ready for review September 17, 2021 14:50
Copy link
Contributor

@nandajavarma nandajavarma left a comment

Choose a reason for hiding this comment

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

Really good catch @nutellinoit ! I was shortsighted to have hacked it with the update of the configmaps across all namespaces. LGTM!

@nandajavarma nandajavarma merged commit a5dfe07 into master Sep 21, 2021
@nandajavarma nandajavarma deleted the hotfix-election-id-nginx branch September 21, 2021 07:19
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.

2 participants