Skip to content

feat(api): name the caller behind removed-API hits - #1402

Closed
scttbnsn wants to merge 1 commit into
dev/v1.8from
feat/v1.8-removed-api-diagnostics
Closed

scttbnsn wants to merge 1 commit into
dev/v1.8from
feat/v1.8-removed-api-diagnostics

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

The removed-API-path banner only showed unmatched, so there was no way to tell which client was calling. Unmatched hits now key on the allowlisted first path segment (/api/containers/*, never an id) plus a coarse client class from the User-Agent (via homepage). The first hit per resource and client each hour is logged with method, path, user agent and remote address, and the banner shows resource, client and last-seen time with a pointer to the server log.

Held for 1.8.1, do not merge before the v1.8 GA.

Refs #1370

The removed-path banner only ever showed 'unmatched'. Unmatched hits now key on an allowlisted first path segment (/api/containers/*) plus a coarse client class from the User-Agent, the first hit per resource and client each hour is logged with method, path, user agent and remote address, and the banner shows resource, client and last-seen time.

Refs #1370
@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 19, 2026 3:57pm UTC
drydockdemo-website Ready Ready Preview Oct 19, 2026 3:57pm UTC

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

const path = sanitizeForLog(rawPath, MAX_LOGGED_PATH_LENGTH);
const ua = userAgent === '' ? 'none' : sanitizeForLog(userAgent, MAX_LOGGED_USER_AGENT_LENGTH);
log.info(
`Removed unversioned API path hit (${resourceKey}): ${req.method} ${path} from client=${client} user-agent="${ua}" remote=${req.ip ?? 'unknown'}. Migrate the caller to /api/v1/*; this line is logged at most once per hour per resource and client.`,
@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.76543% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
ui/src/layouts/AppLayout.vue 96.42% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

scttbnsn added a commit that referenced this pull request Oct 20, 2026
* refactor(app): share error, sleep and status helpers (#1423)

* refactor(component): share one secret-mask helper (#1414)

* feat(api): name the caller behind removed-API hits (#1402)

* refactor(ui): share the search-from-query logic (#1418)

* refactor(ui): seed the operations store from the container list (#1428)

* build(docker): use Alpine's patched zlib and drop the custom build (#1417)

* chore(license): relicense from AGPL-3.0 to MIT (#1410)

* docs(changelog): one heading per section in Unreleased
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Landed in #1434 as part of folding the reviewed 1.8 work into 1.8.0.

@scttbnsn scttbnsn closed this Oct 20, 2026
@scttbnsn
scttbnsn deleted the feat/v1.8-removed-api-diagnostics branch October 20, 2026 14:20

This branch was successfully deployed

2 active deployments
Preview – drydockdemo-website — 0c236bcb Deployed Oct 19, 2026 by vercel[bot]
Preview – drydock-website — 0c236bcb Deployed Oct 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants