Skip to content

feat(nps-relay): log one bounded structured line per relay request - #244

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
telemetry/nps-relay-request-logging
Oct 6, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
telemetry/nps-relay-request-logging

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Audit finding: the NPS relay (the site's only public write endpoint) logged only unstructured 500s, so 401/429 rejections and traffic were invisible in Netlify function logs.

Change: handleRelayRequest now emits one JSON line via the existing logger (route from a fixed 5-value set, method GET/POST/OTHER, status, durationMs). No paths, headers, IPs or bodies are logged; nothing leaves the process. Test and changelog fragment added; vitest, tsc pass.

Filed by telemetry agent.

— hive: agent=telemetry backend=copilot model=claude-sonnet-5.5 copilot=1.0.88

Signed-off-by: telemetry <telemetry@hive.kubestellar.io>
@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 6, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for hivecommons-docs ready!

Name Link
🔨 Latest commit 7c8720b
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ac4af4a977ae200089290f4
😎 Deploy Preview https://deploy-preview-244--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 merged commit a8a16a7 into main Oct 6, 2026
10 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the telemetry/nps-relay-request-logging branch October 6, 2026 08:26
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.

0 participants