Skip to content

feat: wire MCM to Ory IAM stack - #804

Open
kirgene wants to merge 18 commits into
mainfrom
feat/iam-zanzibar
Open

feat: wire MCM to Ory IAM stack#804
kirgene wants to merge 18 commits into
mainfrom
feat/iam-zanzibar

Conversation

@kirgene

@kirgene kirgene commented May 20, 2026

Copy link
Copy Markdown
Contributor
  • Oathkeeper rules route MCM requests with Keto-backed authorization
  • Keto loads OPL namespaces from /etc/keto-namespaces, populated by per-service OCI ImageVolumes
  • MCM API env wired with Hydra/Kratos/Keto admin URLs
  • global.iam.* shared values in umbrella chart

Companion MCM API PR (ships the OPL file in the Docker image): mojaloop/connection-manager-api#193

Closes #4398, #4404, #4399.

- Oathkeeper rules route MCM requests with Keto-backed authorization
- Keto loads OPL namespaces from /etc/keto-namespaces, populated by
  per-service OCI ImageVolumes
- MCM API env wired with Hydra/Kratos/Keto admin URLs
- global.iam.* shared values in umbrella chart

Closes #4398, #4404, #4399.
@kirgene
kirgene force-pushed the feat/iam-zanzibar branch from 663645c to f9a795c Compare May 27, 2026 14:44
@sonarqubecloud

sonarqubecloud Bot commented Jun 7, 2026

Copy link
Copy Markdown

kirgene added 2 commits June 30, 2026 16:22
- connection-manager passes IAM_ENABLED, IAM_AUTO_CREATE_ACCOUNTS,
  HYDRA_AUDIENCE, KRATOS_IDENTITY_SCHEMA_ID, KRATOS_INVITE_RETURN_TO_URL
  to the MCM API container
- mojaloop-iam ships an opt-in post-install Job that creates the initial
  hub-admin Kratos identity and writes the Hub admins Keto tuple. Admin
  password is auto-generated and persisted on first install, or
  externally referenced via Secret
- Add ory/kratos-selfservice-ui-node as a conditional dep (kratosUI.enabled)
  for the browser-based admin login/recovery/error UI
- Add jouve/mailpit as a conditional dep (mailpit.enabled) as a dev SMTP
  catcher feeding the Kratos courier
- Enable Kratos password, code, and link self-service methods
- Add password credential identifier and recovery/verification annotations
  to the default identity schema
- Wire Kratos courier SMTP to mailpit by default
Comment thread mojaloop-iam/values.yaml Fixed
Comment thread mojaloop-iam/values.yaml Fixed
kirgene added 2 commits June 30, 2026 16:33
…lates

- Hydra: strategies.access_token=jwt, oidc subject types, TTLs, CORS,
  enable secret auto-generation
- Oathkeeper jwt authenticator points at Hydra in-cluster JWKS with
  target_audience=connection-manager-api and 5s cold-keygen tolerance
- Oathkeeper cookie_session subject_from=identity.id
- Kratos recovery email templates rendered from chart files via ConfigMap
  and mounted at /conf/courier-templates
- iam-bootstrap Job: resource requests/limits and non-root securityContext
Comment thread mojaloop-iam/values.yaml Fixed
kirgene added 6 commits June 30, 2026 16:58
- Rewrite connection-manager Oathkeeper rules to match the updated MCM API
  endpoints in mojaloop/connection-manager-api#202: states-status, external
  jwscerts upload, /api/health (noop), dfsps list and monetaryzones use
  authorizer=allow with API-side row scoping by X-Roles
- Both authenticators (cookie_session + jwt) on every rule, dropping the
  separate PM4ML rule in favour of OPL inheritance via Dfsp.parent
- Global Oathkeeper header mutator now emits X-DFSP-ID from
  identity.metadata_public.dfspId and X-Roles as a JSON array combining
  role and dfsp:<id> entries
- Add INTERNAL_CA_TTL env to the MCM API container (default 8760h)
@sonarqubecloud

Copy link
Copy Markdown

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.

Add Oathkeeper RBAC rules to connection-manager Helm chart

2 participants