Skip to content

Smoke test: read back with a read-only personal API key (drop /auth/api-key)#3

Draft
szymeo wants to merge 1 commit into
mainfrom
chore/read-back-with-personal-api-key
Draft

Smoke test: read back with a read-only personal API key (drop /auth/api-key)#3
szymeo wants to merge 1 commit into
mainfrom
chore/read-back-with-personal-api-key

Conversation

@szymeo
Copy link
Copy Markdown
Member

@szymeo szymeo commented May 28, 2026

Why

The backend is removing POST /auth/api-key, which traded a project ingest key for a 7-day full-account JWT — a privilege-escalation hole (an ingest credential, embedded in client SDKs, could mint account access). See logdash.io PR #246.

What

The post-publish smoke test no longer escalates. It now reads back logs/metrics with a read-only personal API key (ldp_…), and identifies the project from the key itself via GET /personal-api-keys/whoami (access.ids[0]). Logs readback moves to the scoped /logs/v2 endpoint.

Required before this can pass (and before merge)

  1. logdash.io #246 must be deployed (personal-key auth must be live).
  2. Add an org secret LOGDASH_PERSONAL_API_KEY = an ldp_ key scoped to the smoke-test project: scopes logs:read + metrics:read, access restricted to that one project.

The ingest key (LOGDASH_API_KEY) still does the send half, unchanged. Kept as a draft until the backend is deployed and the secret is set.

…d of /auth/api-key

The backend is removing POST /auth/api-key (ingest-key -> full-account JWT escalation). The smoke test now reads back logs/metrics with a read-only personal API key (ldp_), identifying the project via /personal-api-keys/whoami. Needs a LOGDASH_PERSONAL_API_KEY secret.
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.

1 participant