Skip to content

docs(spec): add and archive the management-actions specification - #5

Open
nsklikas wants to merge 4 commits into
sso-service-charm-specfrom
management-actions-spec
Open

nsklikas wants to merge 4 commits into
sso-service-charm-specfrom
management-actions-spec

Conversation

@nsklikas

@nsklikas nsklikas commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What

The specification of the charm's actions for the management API of the SSO Service. There is no console for that API yet, and an operator needs a way to register the identity provider of a tenant, or to change its SSO policy, without hand-written requests. Documentation only, and the place to start reading before the code in #6, which is stacked on this pull request. This one is stacked on the specification of the charm, #3.

  • openspec/specs, one new capability: management-actions (the 10 actions, their commands, the token, the client secret, results and failures).
  • openspec/specs, one modified capability: caller-authentication. The requirement "Restriction of callers by subject or scope" now also admits the OAuth client of the service.
  • openspec/changes/archive/2026-10-13-management-actions: the change they come from (proposal, design, tasks), already archived.

Worth knowing before reviewing the code

  • An action runs a management command of the service, and the command calls the API. Every check and error of an action is the API's: the charm does not check the values of the parameters.
  • A client secret is never a parameter of an action. create-connection and update-connection take the id of a Juju secret, and the command gets the client secret in its environment.
  • An action refuses a parameter that it does not define. Juju before version 4 accepts such a parameter, and set-domains or set-policy with a misspelt name then removes what the operator meant to set.
  • When the operator restricts the callers of the management API, the charm also admits the OAuth client of the service, so that the actions keep working.
  • Not in this specification: actions for the sign-in API, an action that returns a token, and the actions in a deployment in which authn_issuer names another issuer than the main Hydra.

Checks

openspec validate --all --strict passes. No code changes.

The text is written in Simplified Technical English (ASD-STE100, at about 80%): short sentences, active voice, one topic in each.

@nsklikas
nsklikas changed the base branch from sso-service-charm to sso-service-charm-spec October 13, 2026 14:20
@nsklikas
nsklikas force-pushed the management-actions-spec branch from 373fb31 to 17b7eec Compare October 13, 2026 14:20
@nsklikas
nsklikas force-pushed the management-actions-spec branch from 17b7eec to febdb54 Compare October 13, 2026 18:27
@nsklikas
nsklikas force-pushed the sso-service-charm-spec branch from ea76633 to 69a71a8 Compare October 13, 2026 18:27
@nsklikas
nsklikas marked this pull request as ready for review October 14, 2026 10:47
@nsklikas
nsklikas requested a review from a team as a code owner October 14, 2026 10:47
The specification of the 10 management actions of the charm, written from their code. It covers each action and its command, the token of the OAuth client of the service, the client secret that comes from a Juju secret, and the results and failures. It also changes one requirement of caller-authentication: a restriction of callers still admits the OAuth client of the service.
@nsklikas
nsklikas force-pushed the sso-service-charm-spec branch from 69a71a8 to 6c21050 Compare October 16, 2026 11:24
@nsklikas
nsklikas force-pushed the management-actions-spec branch from febdb54 to dd8680f Compare October 16, 2026 11:24
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