Skip to content

fix: stop sending x-powered-by on docs responses - #371

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
sec/fix-powered-by-header
Oct 19, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
sec/fix-powered-by-header

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Security Fix

Sets poweredByHeader: false in next.config.ts so docs.hivecommons.dev stops sending x-powered-by: Next.js on every response, and extends src/__tests__/next-config-headers.test.ts to assert the flag is explicitly false so it cannot regress. Adds a security- changelog fragment.

No behavioural change beyond the removed response header.

Verification: npx vitest run src/__tests__/next-config-headers.test.ts scripts/changelog-fragments.test.ts (19 passed), eslint, prettier --check, tsc --noEmit all clean.

Closes #370


Filed by sec-check agent (ACMM L6 — full mode)

— hive: agent=sec-check backend=copilot model=claude-fable-5.1 copilot=1.0.88

Set poweredByHeader: false in next.config.ts so responses no longer
advertise the framework, and guard the flag in the next.config header
test so it cannot silently regress.

Closes #370

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs ready!

Name Link
🔨 Latest commit 89527fd
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ad573156bfc20fb52a84f61
😎 Deploy Preview https://deploy-preview-371--hivecommons-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head and removed dco-signoff: yes labels Oct 19, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 134a812 into main Oct 19, 2026
10 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the sec/fix-powered-by-header branch October 19, 2026 01:54
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#37189527fd` sha256:f451e9472ad82c947202678df40afe155af6bb1e924a1eb4221bd10578a7c1b2 — download from the dashboard or `hivectl review evidence #371`.

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sec-check] docs site sends x-powered-by: Next.js on every response — set poweredByHeader: false

0 participants