Repository navigation
Description
Context & Motivation
With canonical/authorization-service#117 (merged), the authorization-service listener introduces configurable ingestion modes:
platform: consumesPermissionUpdateEnvelopemessages from Kafka (existing behaviour).standalone: exposes a gRPCPermissionIngestionService/IngestPermissionUpdateendpoint (port9091) authenticated via Ory Hydra Bearer JWTs, requiring no Kafka broker.hybrid: runs both transports concurrently.
tenant-service gains a matching standalone publishing mode in canonical/tenant-service#173, dispatching permission updates directly over gRPC when Kafka is not available. The authorization-service-listener-operator charm already implements standalone mode (canonical/authorization-service-listener-operator#3, ingestion_mode config, optional kafka relation, sts-info JWKS authentication).
The tenant-service charm must expose the same dual modality so deployments can operate without Kafka.
Depends on: canonical/tenant-service#173
See also: canonical/authorization-service#117, canonical/authorization-service-listener-operator#3
Proposed Changes
1. ingestion_mode / publishing-mode charm configuration
- Introduce a charm config option (e.g.
publishing_mode) mirroring the service-level modes:platform(default): retain current Kafka publishing behaviour.standalone: configure the workload with the authorization-service listener gRPC address and OAuth2 client credentials; do not require a Kafka relation.
- When
publishing_mode=standalone, render the corresponding workload environment (gRPC target address, Hydra token endpoint, client ID/secret from a Juju secret).
2. Integrations
- Make the Kafka relation optional (or gate it on
platformmode); the charm must not block when Kafka is absent instandalonemode. - Obtain the listener gRPC endpoint, either:
- via a new relation to the authorization-service listener charm (preferred, e.g. an info relation exposing the gRPC address), or
- via charm config as an interim measure.
- Obtain client credentials for the Hydra token endpoint via the existing
oauthintegration or a Juju secret, so the workload can mint Bearer JWTs for the gRPC endpoint.
3. Status handling
- Surface a blocked state with a clear message when the selected mode's prerequisites are missing (e.g.
platformwithout Kafka,standalonewithout a listener address/credentials).
Acceptance Criteria
- Charm config supports selecting between
platform(Kafka) andstandalone(gRPC) publishing modes. -
platformmode preserves the existing behaviour without regression. -
standalonemode deploys without a Kafka relation and wires the workload to the authorization-service listener gRPC endpoint with valid credentials. - Unit is blocked with an informative status when mode prerequisites are unmet.
- Unit and integration tests cover both modes.
Activity
syncronize-issues-to-jira commentedon Nov 16, 2026
Thank you for reporting your feedback to us!
The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-2428.