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

fix(redis): remove unnecessary redis config deprecation warnings in hybrid mode #13069

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

nowNick
Copy link
Contributor

@nowNick nowNick commented May 23, 2024

Summary

When running kong in hybrid mode with ACME plugin the configuration for the plugin is being pushed from CP to DP. When introducing shorthand field expansion to Admin API responses the deprecated fields (defined as shorthand fields) were also pushed from CP to DP which resulted in DP receiving config with both new fields and also old fields. It resulted with DP reporting in logs that ACME plugin is being configured with deprecated fields.

This PR disables the deprecation logs in DPs. The reasoning behind that is that those deprecation logs are not actionable on DP side and should be actually changed on CP if they were indeed configured improperly.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

KAG-4515

@github-actions github-actions bot added core/db schema-change-noteworthy cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels May 23, 2024
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch 3 times, most recently from 4fb1831 to f9205bc Compare May 23, 2024 16:13
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch 2 times, most recently from 3ae6528 to 7d74245 Compare June 11, 2024 15:17
@nowNick nowNick changed the title [WIP] fix(redis): remove unnecessary redis config deprecation warnings in hybrid mode fix(redis): remove unnecessary redis config deprecation warnings in hybrid mode Jun 11, 2024
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch 3 times, most recently from e42414b to ffa5ff8 Compare June 17, 2024 08:19
@nowNick nowNick marked this pull request as ready for review June 17, 2024 08:19
@nowNick nowNick marked this pull request as draft June 19, 2024 08:20
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch from ffa5ff8 to 6bd05d3 Compare June 19, 2024 16:35
@nowNick nowNick marked this pull request as ready for review June 19, 2024 16:54
@nowNick nowNick requested a review from samugi June 20, 2024 07:46
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch 2 times, most recently from a2576df to daea999 Compare June 24, 2024 15:35
@nowNick nowNick requested a review from samugi June 24, 2024 16:48
@nowNick
Copy link
Contributor Author

nowNick commented Jun 24, 2024

@fffonion - could you elaborate a bit why you removed the label backport release/3.6.x? Was that intentional? 🤔

@fffonion
Copy link
Contributor

@nowNick I deleted the backport labels from CE apart from 3.7.x to prepare for the ongoing backport process changes. I will @ you at slack.

@nowNick
Copy link
Contributor Author

nowNick commented Jun 25, 2024

Oh ok. I read the thread but I was confused why only the 3.6 backport flag was removed. Thanks for letting me know 👍

@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch from daea999 to 1c39467 Compare June 25, 2024 15:14
@nowNick nowNick requested a review from samugi June 26, 2024 08:26
When running kong in hybrid mode a plugin configuration is pushed from CP to DP.
When introducing shorthand field expansion to Admin responses the deprecated fields
(defined as shorthand fields) were also pushed from CP to DP which resulted in DP receiving config
with both new fields and also old fields. It resulted with DP reporting in logs
that the plugin is being configured with deprecated fields. It affected the plugins:
- ACME
- Rate-Limiting
- Response-RateLimiting

This commit disables deprecation warning on data planes since those nodes cannot be configured
manually so this deprecation message is not actionable on data planes.

KAG-4515
@nowNick nowNick force-pushed the fix/misleading-redis-config-deprecation-warnings branch from 1c39467 to 5a9b463 Compare June 26, 2024 08:29
Copy link
Member

@samugi samugi left a comment

Choose a reason for hiding this comment

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

nice! lgtm

@samugi samugi merged commit a806308 into master Jun 26, 2024
27 checks passed
@samugi samugi deleted the fix/misleading-redis-config-deprecation-warnings branch June 26, 2024 12:55
@team-gateway-bot
Copy link
Collaborator

Successfully created cherry-pick PR for master:

@team-gateway-bot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants