Separate API runtime privileges from Canton administration

Aperta
#389 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@shibaeff ci sta già lavorando.

Dal 11/11/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Current triage — 2026-11-09

CANTON-005 remains In Progress; this development-team implementation request stays open/Inbound until work starts. Indexer/relayer separation is complete, while API privilege separation and per-party authorization acceptance remain outstanding.

Recorded November 3 prod1 incident recovery rotated the shared credential and removed ParticipantAdmin plus stale party grants; the API still retained CanExecuteAsAnyParty, CanReadAsAnyParty and IdentityProviderAdmin. Dedicated identity and registration-path validation are tracked in https://github.com/ChainSafe/infra-kubernetes/issues/1195 (CANTON-039). This supersedes older unqualified assertions that the production API still has ParticipantAdmin; current rights require a fresh readback. A dedicated client alone does not complete the service separation/least-privilege acceptance here. Broader follow-up: https://github.com/ChainSafe/infrastructure-general/issues/2030 and https://github.com/ChainSafe/infrastructure-general/issues/1530.

Source findings: https://app.notion.com/p/3df2103664e881309d49c4e1548bf6f1

This summary supersedes conflicting older status notes below. Evidence was refreshed from GitHub/Notion; no new AWS/Kubernetes check, rollout or treatment decision was made.

The middleware API combines ordinary application operations with privileged Canton administration. Separate those responsibilities to reduce what a compromised API can do.

Scope

  • Inventory the API’s Canton calls. Identify which calls serve transfers, balances and other normal requests, and which provision parties, manage users/rights or change topology. Map each call to its required permissions.
  • Move privileged operations into a separate service or controlled job with its own identity and credentials. Expose only narrowly defined operations, with authorization and audit logs. The public API process must no longer hold privileged credentials.
  • Give the API runtime a dedicated identity. Grant only the required CanReadAs, CanActAs and, where necessary, execution rights for explicit parties. Remove ParticipantAdmin and unnecessary any-party permissions. Document the requirement and justification for any unavoidable broad execution permission.

Acceptance criteria

  • The API runtime operates without administrator credentials; provisioning credentials are not available to its process.
  • Required registration, transfer and read flows work with the new separation, preserving existing party IDs, balances and contracts.
  • Authorization tests demonstrate that the runtime cannot perform privileged administration or access unrelated parties.
  • Validate in dev before production rollout; check remaining consumers before revoking old shared access.

This tracks the remaining middleware API work from CANTON-005. Related broader identity migration: https://github.com/ChainSafe/infrastructure-general/issues/1530. Indexer and bridge-relayer identity separation is already implemented in prod1.

Lingua principale
Go
Stelle
1
Fork
1
Merge medio
6h 59m
PR unite (30g)
6

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ChainSafe/canton-middleware

Tutte le issue di ChainSafe/canton-middleware

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.