Skip to content

fix(config): disable profiling diagnostics by default#5991

Merged
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/pproff
Jun 9, 2026
Merged

fix(config): disable profiling diagnostics by default#5991
kodiakhq[bot] merged 1 commit into
v2from
rd/v2/pproff

Conversation

@erka

@erka erka commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

The profiling diagnostics feature exposes pprof endpoints on the HTTP
server. Having it enabled by default was a security concern since it
leaks runtime internals. Change the default to false so operators
must consciously opt in.

@erka
erka requested a review from a team as a code owner June 8, 2026 22:26
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 8, 2026
@erka erka added the v2 Flipt v2 label Jun 8, 2026
@erka erka added the automerge Used by Kodiak bot to automerge PRs label Jun 8, 2026
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.39%. Comparing base (f5bf5e9) to head (a2f8e59).

Additional details and impacted files
@@            Coverage Diff             @@
##               v2    #5991      +/-   ##
==========================================
- Coverage   61.40%   61.39%   -0.02%     
==========================================
  Files         142      142              
  Lines       14261    14261              
==========================================
- Hits         8757     8755       -2     
- Misses       4770     4771       +1     
- Partials      734      735       +1     
Flag Coverage Δ
integrationtests 34.47% <100.00%> (-0.02%) ⬇️
unittests 52.47% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: request changes

The PR correctly disables profiling diagnostics by default in the Go code and updates the marshal test fixture, but it leaves two schema files out of sync with the new default. Both the JSON schema and CUE schema still document the old default: true value, which will mislead users and schema-driven tooling.

config/flipt.schema.json

  • major (L771): The JSON schema still documents "default": true for diagnostics.profiling.enabled. Update it to false to match the new code default.

config/flipt.schema.cue

  • major (L189): The CUE schema still documents enabled?: bool | *true for diagnostics profiling. Update it to *false to match the new code default.

🤖 Automated review by the Flipt PR review agent.

The profiling diagnostics feature exposes pprof endpoints on the HTTP
server. Having it enabled by default was a security concern since it
leaks runtime internals. Change the default to false so operators
must consciously opt in.

Signed-off-by: Roman Dmytrenko <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict: approve

Clean, well-scoped security fix. All defaults (Go code, viper, CUE schema, JSON schema) are consistently changed to false, and the marshal test fixture is correctly updated to omit the zero-value diagnostics block.

🤖 Automated review by the Flipt PR review agent.

@markphelps markphelps left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ty!

@kodiakhq
kodiakhq Bot merged commit 5501904 into v2 Jun 9, 2026
32 of 33 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Flipt V2 Jun 9, 2026
@kodiakhq
kodiakhq Bot deleted the rd/v2/pproff branch June 9, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Used by Kodiak bot to automerge PRs size:XS This PR changes 0-9 lines, ignoring generated files. v2 Flipt v2

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants