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

validate args before deleting proxy defaults #14290

Merged
merged 5 commits into from Aug 31, 2022

Conversation

malizz
Copy link
Contributor

@malizz malizz commented Aug 22, 2022

Description

This PR fixes a bug where proxy defaults could be deleted by any name. Previously the code did not verify the name before proxy config deletion.

Fixes #12684

Testing & Reproduction steps

  • Replications steps are described here

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

@malizz malizz added backport/1.13 Changes are backported to 1.13 backport/1.12 Changes are backported to 1.12 labels Aug 22, 2022
@malizz malizz requested review from a team and DanStough and removed request for a team August 22, 2022 20:52
Copy link
Member

@DanStough DanStough left a comment

Choose a reason for hiding this comment

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

LGTM 🥳 🍾 ! I would just add a note since this wasn't intuitive.

agent/structs/config_entry.go Show resolved Hide resolved
@malizz malizz marked this pull request as ready for review August 31, 2022 00:11
@malizz malizz merged commit a80e0bc into main Aug 31, 2022
@malizz malizz deleted the malizz-validate-name-on-dlt-proxy-defaults branch August 31, 2022 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.12 Changes are backported to 1.12 backport/1.13 Changes are backported to 1.13
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a proxy-defaults config entry by any name will delete the global entry
2 participants