feat(scopes): pruefwerk:uploads.write for uploads to targets #158

Merged
sharang merged 1 commits from feat/scope-uploads-write into main 2026-12-01 14:00:19 +00:00
Owner

New API-key scope pruefwerk:uploads.write ("Upload files to targets"), entitlement pruefwerk. Requested by the Prüfwerk session.

Why: the read-only Siemens TIA Portal connector (pruefwerk epic #1095, #1090/#1094) runs on the customer's Windows machine and uploads a TIA export with a workspace API key, outbound HTTPS only. Prüfwerk #1090 puts POST /api/v1/targets/{id}/artifacts/upload under this scope; the connector holds uploads.write + scans.run.

  • internal/scopes: catalogue entry plus a test.
  • Integration keys (Werkmeister) don't get it; their list is unchanged.
  • No other contract change. Portal labels: platform/portal (feat/scope-uploads-write).

Tests: go test ./internal/scopes/, the API key tests in internal/server (short), golangci-lint: green.

🤖 Generated with Claude Code

New API-key scope `pruefwerk:uploads.write` ("Upload files to targets"), entitlement pruefwerk. Requested by the Prüfwerk session. **Why:** the read-only Siemens TIA Portal connector (pruefwerk epic #1095, #1090/#1094) runs on the customer's Windows machine and uploads a TIA export with a workspace API key, outbound HTTPS only. Prüfwerk #1090 puts `POST /api/v1/targets/{id}/artifacts/upload` under this scope; the connector holds `uploads.write` + `scans.run`. - `internal/scopes`: catalogue entry plus a test. - Integration keys (Werkmeister) don't get it; their list is unchanged. - No other contract change. Portal labels: platform/portal (feat/scope-uploads-write). Tests: `go test ./internal/scopes/`, the API key tests in `internal/server` (short), golangci-lint: green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-12-01 12:56:03 +00:00
feat(scopes): pruefwerk:uploads.write for uploads to targets
ci / shared (pull_request) Successful in 15s
ci / test (pull_request) Successful in 8m6s
ci / image (pull_request) Skipped
0f9433c52d
The read-only TIA Portal connector (pruefwerk epic #1095, #1090/#1094)
runs on the customer's machine and uploads a TIA export with a
workspace API key: POST /api/v1/targets/{id}/artifacts/upload. The new
scope needs the pruefwerk entitlement; integration keys don't get it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit 05118d354e into main 2026-12-01 14:00:19 +00:00
Sign in to join this conversation.