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

Drop KongCredential from KIC and configuration/v1 CRDs #862

Merged
merged 5 commits into from
Sep 29, 2020

Conversation

mflendrich
Copy link
Contributor

What this PR does / why we need it:

  • Deletes the KongCredential CRD from the v1 API definition (including codegen).
  • Eradicates KongCredential from KIC codebase.

After this PR, KIC has no notion of KongCredential whatsoever and provides equivalent functionality by means of plain Secrets.

Which issue this PR fixes: fixes #823

Special notes for your reviewer:

Consider merging without squashing.

rainest
rainest previously approved these changes Sep 21, 2020
// Due to this reason, one can't perform a 'diff' with them.
// This function filters for basic-auth password changes and applies them
// to Kong as they happen.
func (n *KongController) handleBasicAuthUpdates(ctx context.Context, event Event) error {
Copy link
Member

Choose a reason for hiding this comment

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

So it seems like we introduced a bug when we added in the Secret-based credentials.
This function should be triggered when basic-auth creds in a secret change.
The bug has not come up because it applies to basic-auth credentials and DB-mode of Kong, which is not a common situation (I wonder where the users are who prompted me to add this function, we had quite a few reports for this problem in the past).

Copy link
Member

Choose a reason for hiding this comment

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

Tracking this here: #865

Not a blocker for this PR.

hbagdi
hbagdi previously approved these changes Sep 21, 2020
@hbagdi hbagdi changed the base branch from main to next September 21, 2020 22:16
@hbagdi hbagdi dismissed stale reviews from rainest and themself September 21, 2020 22:16

The base branch was changed.

@hbagdi
Copy link
Member

hbagdi commented Sep 21, 2020

This needs to go into next. Please rebase and resolve the conflict.

@mflendrich
Copy link
Contributor Author

This needs to go into next. Please rebase and resolve the conflict.

Done. PTAL now.

rainest
rainest previously approved these changes Sep 22, 2020
@hbagdi
Copy link
Member

hbagdi commented Sep 25, 2020

Please remove 1de8dac from this PR.

@mflendrich
Copy link
Contributor Author

Please remove 1de8dac from this PR.

Done. For some reason I don't understand, the #858 merge commit got duplicated in the commit tree 🤔

@mflendrich mflendrich requested a review from rainest September 29, 2020 14:45
@hbagdi hbagdi merged commit e17b00f into next Sep 29, 2020
@hbagdi hbagdi deleted the chore/drop-kongcredential branch September 29, 2020 15:42
@mflendrich mflendrich mentioned this pull request Oct 28, 2021
1 task
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.

Drop support for KongCredential resource
3 participants