Skip to content

Add feature flag to enable build info API #5533

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

Merged
merged 4 commits into from
Aug 30, 2023

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Aug 25, 2023

What this PR does:

Now build info API is enabled by default. However, this will break Grafana with Cortex as data source.

To fix this, I make build info API disabled by default and added a flag to enable this if needed.

This should help with problems like #5445

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

yeya24 added 2 commits August 24, 2023 22:38
Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
@pull-request-size pull-request-size bot added size/M and removed size/S labels Aug 25, 2023
@alanprot
Copy link
Member

LGTM, thanks

@alanprot alanprot merged commit 29c40f7 into cortexproject:master Aug 30, 2023
@yeya24 yeya24 deleted the ff-buildinfo branch August 30, 2023 19:52
Copy link
Member

@friedrichg friedrichg left a comment

Choose a reason for hiding this comment

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

I am ok with this, this might help other folks who want to prevent their cortex from exposing internal details to an attacker.

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

Successfully merging this pull request may close these issues.

3 participants