Services
Auth service
The Factory+ service that stores grants and identities and computes the access control list of each principal.
The Auth service holds every Factory+ grant and computes the access control list (ACL) of each principal.
Every Factory+ service decides, for each request, whether the principal making it may do what it asks. If each service kept its own list of who may do what, an administrator would have to change many services to give one person access, and the lists would drift apart. Instead, the Auth service holds all grants in one place and works out, for any principal, the complete list of permissions that principal holds. Services fetch that list and make their own decisions from it.
The Auth service enforces nothing itself. It computes ACLs and serves them, and each consuming service checks the request against the caller’s ACL. The model the service implements, with grants, groups, plural targets and the special target UUIDs, is described in Authorisation. Principals and their identities are described in Principals.
Service identity
Clients find the Auth service through the Directory by its service UUID, like any other Factory+ service. The service follows the common rules in the Service specification. It reports interface version 2.0.0 in its /ping response.
cab2642a-f7d9-42e5-8845-8f35affe1fd4Data model
The Auth service stores two kinds of record of its own, grants and identities. It reads everything else it needs from the Configuration Store. Because of this dependency, an implementation needs a way to start the two services together, as described under Root principal.
Grants. A grant is a record of the form {uuid, principal, permission, target, plural}. The Auth service assigns each grant its own UUID when the grant is created. The principal field holds a principal or a principal group, the permission field holds a permission or a composite permission, and the target field holds the object the permission applies to. When plural is false, the target is the object itself. When plural is true, the target is a class and every member of that class is a target. A grant with plural set to true and one with plural set to false can exist for the same principal, permission and target, and they are separate grants. Grants only allow, and anything a principal has not been granted is denied.
Identities. An identity links a principal UUID to a name that the principal authenticates with. Each identity has a kind, and the only kind in use is kerberos, whose names are Kerberos principal names such as alice@EXAMPLE.COM. A principal has at most one name of each kind, and a name belongs to at most one principal. Sparkplug addresses are not identities in the Auth service. A principal’s Sparkplug address is held in the Sparkplug Address app of the Configuration Store.
The service reads these from the Configuration Store:
| Information | Where it comes from in the Configuration Store |
|---|---|
| Which UUIDs are principals | Members of the class Principal (11614546-b6d7-11ef-aebd-8fbb45451d7c) |
| Principal groups | Subclasses of Principal, with their members |
| Which UUIDs are permissions | Members of the class Permission (8ae784bb-c4b5-4995-9bf6-799b3c7f21ad) |
| Composite permissions | Subclasses of Permission, with their members |
| Members of a plural target | Members of the target class, including members of its subclasses |
| Ownership of objects | The owner field of each object’s entry in the Registration app (cb40bed5-49ad-4443-a7f5-08c75009da8f) |
Groups are therefore edited in the Configuration Store through class membership, not through the Auth service.
Computing an ACL
An ACL is a flat list of entries of the form {permission, target}, with every group and class already expanded. The Auth service MUST compute the ACL of a principal by these rules. They give the same result on every implementation.
- If the UUID is not a member of the class Principal, directly or through a subclass, the principal has no ACL. The ACL endpoints then return
404. - A grant applies to the principal when its
principalfield is the principal’s own UUID. It also applies when that field is any subclass of Principal that has the principal as a member. Because principal types such as Human user are subclasses of Principal, a grant to a principal type applies to every principal of that type. - If the grant’s permission is a member of the class Permission, it is used as it is. If the permission is a subclass of Permission (a composite permission), the grant gives one entry for each member of that subclass. A grant whose permission is neither gives no entries.
- If
pluralisfalse, the target is used as it is. Ifpluralistrue, the grant gives one entry for each member of the target class. A target class with no members gives no entries. - If
pluralistrueand the target is Mine (724c0316-4cfd-11f0-b355-0b70840faae8), the grant gives one entry for each object whose Registrationowneris the principal. Objects whose owner is Unowned (091e796a-65c0-4080-adff-c3ce01a65b2e) are never included. - A target of Self (
5855a1cc-46d8-4b16-84f8-ab3916ecb230) is replaced by the principal’s own UUID. - A target of Wildcard (
00000000-0000-0000-0000-000000000000) is left as it is. Wildcard is the null UUID. The consuming service decides whether Wildcard matches a given target, because only that service knows whether its permission can apply to every target.
For example, a principal group called ACL editors is a subclass of Principal with Alice as a member. A composite permission called ACL admin has Read ACLs and Manage ACLs as members. The single grant {principal: ACL editors, permission: ACL admin, target: Wildcard, plural: false} gives Alice’s ACL these two entries: {permission: Read ACLs, target: Wildcard} and {permission: Manage ACLs, target: Wildcard}.
The ACL changes whenever a grant changes. It also changes when class membership or ownership changes in the Configuration Store. Clients that need to follow these changes SHOULD use change-notify rather than polling.
Checking a request
A service that checks permissions follows this pattern for each request.
sequenceDiagram
participant C as Client
participant S as Consuming service
participant A as Auth service
C->>S: Request with Authorization header
S->>S: Authenticate the caller
S->>A: GET /v2/acl/kerberos/{upn} (or /v2/acl/{uuid})
A-->>S: ACL entries the service may read
S->>S: Look for {permission, target}, or {permission, Wildcard}
S-->>C: Response, or 403
- The service authenticates the caller as described in Authentication. A Kerberos caller is identified by a Kerberos principal name, and a caller with an OpenID Connect token is identified by the principal UUID in the token.
- The service fetches the caller’s ACL with
GET /v2/acl/kerberos/{upn}orGET /v2/acl/{uuid}, or keeps it up to date with a change-notify subscription. The service MAY cache the ACL for a short time. - The service looks for an entry with the permission the request needs and the target the request acts on. If the permission allows it, an entry with the Wildcard target also matches.
A service sees ACL entries only for permissions it holds Read ACLs on. Each service therefore needs Read ACLs on its own permissions, usually as one plural grant on the class that holds them.
Root principal
Because the Configuration Store needs the Auth service to check permissions and the Auth service needs the Configuration Store to compute ACLs, neither can be configured through the other until both are running. To break this loop, an implementation MAY define a root principal that is not limited by its ACL. Because the root principal’s extra access does not appear in its ACL, GET /v2/whoami/acl reports it with the root flag. The implementation defines how the root principal is chosen.
Permissions
These permissions control the Auth service itself. Their UUIDs are fixed, and every Auth service implementation MUST interpret them as described here.
50b727d4-3faa-40dc-b347-01c99a226c58This UUID is a composite permission whose members are the permissions below. It is a member of the class Service permission set (b7f0c2f4-ccf5-11ef-be77-777cd4e8cb41). A plural grant of Read ACLs with this UUID as the target allows reading every ACL entry for an Auth permission.
ba566181-0e8a-405b-b16e-3fb89130fbeeThe target is the permission whose ACL entries the holder may read, a class of permissions with plural set to true, or Wildcard for every permission. GET /v2/acl/... returns only the entries whose permission is covered. A caller does not need this permission to read their own ACL through GET /v2/whoami/acl.
3a41f5ce-fc08-4669-9762-ec9e71061168The target is the permission whose grants the holder may manage, or Wildcard for every permission. It controls /v2/grant and its sub-paths. It does not limit the principal or target of the grants the holder creates. Changing a grant from one permission to another needs Manage ACLs on both.
e8c9c0f7-0d54-4db2-b8d6-cd80c45f6a5cThis permission controls the identity lookups under /v2/principal and /v2/identity, and GET /v2/principal/{uuid}/groups. The v2 endpoints treat it as a blanket permission, and holding it on any target allows reading every identity. It SHOULD be granted only with the Wildcard target. The deprecated GET /authz/principal/{uuid} still checks the target, and on that route the target is the principal being looked up.
327c4cc8-9c46-4e1e-bb6b-257ace37b0f6The target is the principal whose identities may be changed, or Wildcard for every principal. It controls PUT and DELETE on /v2/principal/{uuid}/{kind}.
be9b6d47-c845-49b2-b9d5-d87b83f11c3bGroups are Configuration Store classes. This permission is used only by the deprecated /authz/group routes, which need it on the Wildcard target.
35252562-51e5-4dd8-84cd-ba0fafa62669No current endpoint checks this permission. Read ACLs and GET /v2/acl/{principal} replace it.
HTTP API
Every request MUST be authenticated with one of the schemes in Authentication. The service SHOULD offer POST /token bearer tokens, as other Factory+ services do. All request and response bodies are JSON. The full interface, with every status code, is in the specification at the end of this page.
If a path parameter should be a UUID or a Kerberos principal name but is not, the response is 410 Gone rather than 404, because no resource can ever exist at that path. A 403 means the caller lacks the permission the endpoint needs.
ACLs
| Method and path | Purpose | Permission |
|---|---|---|
GET /v2/acl/{principal} | The ACL of a principal UUID | Read ACLs, which filters the entries |
GET /v2/acl/kerberos/{upn} | The ACL of the principal with this Kerberos identity | Read ACLs, which filters the entries |
Both return an array of {permission, target} objects, filtered to the permissions the caller holds Read ACLs on. A caller with no Read ACLs grant at all gets 403, and a principal that is not a member of the class Principal gets 404. For a name that belongs to no principal, the Kerberos form returns an empty array, not 404.
Grants
| Method and path | Purpose | Success |
|---|---|---|
GET /v2/grant | List the UUIDs of the grants the caller can manage | 200 |
POST /v2/grant | Create a grant | 201 with {uuid}, or 200 with {uuid} if an identical grant exists |
GET /v2/grant/{uuid} | Read a grant | 200 |
PUT /v2/grant/{uuid} | Replace a grant, keeping its UUID | 204 |
DELETE /v2/grant/{uuid} | Delete a grant | 204 |
POST /v2/grant/find | Find grants by any of principal, permission, target and plural | 200 |
Every grant operation needs Manage ACLs on the permission of the grant concerned. A caller with no Manage ACLs grant at all gets 403 from the list and find endpoints. The POST and PUT bodies are grant objects without the uuid field, and all four fields are required:
{
"principal": "<principal or principal group UUID>",
"permission": "<permission or composite permission UUID>",
"target": "00000000-0000-0000-0000-000000000000",
"plural": false
}
A body that is not a valid grant gets 422. Because creating a grant that already exists is not an error, a client can create the grants it needs every time it starts without checking first. POST /v2/grant/find matches every field given and ignores fields that are missing or null.
Principals and identities
| Method and path | Purpose | Permission |
|---|---|---|
GET /v2/principal | UUIDs of the principals that have at least one identity | Read Kerberos mappings |
GET /v2/principal/{uuid} | All identities of a principal, as {uuid, kerberos} | Read Kerberos mappings |
GET /v2/principal/{uuid}/groups | UUIDs of every principal group that contains the principal, including nested groups | Read Kerberos mappings |
GET /v2/principal/{uuid}/{kind} | One identity name, as a JSON string | Read Kerberos mappings |
PUT /v2/principal/{uuid}/{kind} | Set one identity name. The body is a JSON string | Manage Kerberos mappings on the principal |
DELETE /v2/principal/{uuid}/{kind} | Remove one identity | Manage Kerberos mappings on the principal |
GET /v2/identity | The identity kinds the service supports, ["kerberos"] | None |
GET /v2/identity/{kind} | All names of one kind | Read Kerberos mappings |
GET /v2/identity/{kind}/{name} | The UUID of the principal with this identity, as a JSON string | Read Kerberos mappings |
GET /v2/principal lists only the principals that have identities in the Auth service. The full list of principals is the membership of the class Principal in the Configuration Store.
PUT /v2/principal/{uuid}/{kind} returns 409 if the principal already has a different name of that kind or if the name already belongs to another principal. Setting the name a principal already has returns 204 and changes nothing. An unknown kind returns 404.
GET /v2/principal/{uuid}/groups returns 410 if the UUID is not a member of the class Principal. With it, an external service can make the same group-based decisions as the Auth service without repeating the group expansion. An identity provider that issues tokens is one such service.
The caller’s own information
| Method and path | Returns |
|---|---|
GET /v2/whoami | The caller’s principal UUID and identities, as {uuid, kerberos} |
GET /v2/whoami/uuid | The caller’s principal UUID, as a JSON string |
GET /v2/whoami/acl | {principal, root, acl} for the caller |
These endpoints need no permission and work for every authentication scheme. GET /v2/whoami/acl returns the caller’s whole ACL without the Read ACLs filter. A user interface can then show its user only the actions they are allowed to take. If the caller’s credentials map to no principal, principal is null and acl is empty. In that case the first two endpoints return 404.
Bulk loading
An implementation MAY offer an endpoint that loads many grants and identities at once, for example to set up a new installation. The implementation defines the format of such an endpoint, and it is not part of this interface.
Change-notify
The Auth service supports change-notify version 2 over a WebSocket at notify/v2 under the service URL. A client opens the WebSocket, authenticates and sends WATCH requests for these URLs:
| Notify URL | Same response as |
|---|---|
v2/principal/ | GET /v2/principal |
v2/identity/{kind}/ | GET /v2/identity/{kind} |
v2/acl/{principal} | GET /v2/acl/{principal} |
v2/acl/kerberos/{upn} | GET /v2/acl/kerberos/{upn} |
v2/whoami/acl | GET /v2/whoami/acl |
Each update carries the status code and body that the matching GET would return at that moment, after the same permission checks. A subscription that would get 403 therefore gets a 403 update. Two details differ from the GET. A v2/acl/kerberos/{upn} subscription for a name that belongs to no principal gets 404 rather than an empty list. A caller with no Read ACLs grant gets 403 before any 404 for a UUID that is not a principal. A consuming service that watches the ACL of each active caller learns about a revoked grant without waiting for a cache to expire.
Deprecated version 1 routes
An implementation that has to serve older clients MAY keep these routes. The reference implementation handles them as follows:
| Route | Behaviour |
|---|---|
GET /authz/acl?principal=…&by-uuid=…&permission=… | Forwards to GET /v2/acl/{principal} or GET /v2/acl/kerberos/{upn}. The permission value must be a UUID but is ignored. |
GET /authz/principal/find?kerberos=… | Forwards to GET /v2/identity/kerberos/{name}, or to GET /v2/whoami/uuid without the parameter. |
GET /authz/principal/{uuid} | Returns {uuid, kerberos}. Needs Read Kerberos mappings on the principal, except for the caller’s own principal. |
GET /authz/group, /authz/group/all, /authz/group/{group}, DELETE /authz/group/{group}/{member} | Read and clear version 1 group records left before migration. Need Manage group on the Wildcard. |
Any method on /authn/authenticate | Returns {"ok": true} if the credentials are valid. |
GET and POST /authz/principal, DELETE /authz/principal/{uuid}, GET and POST /authz/ace, GET /authz/effective, GET /authz/effective/{principal}, PUT /authz/group/{group}/{member} | Return 410 Gone. |
Specification
The OpenAPI 3.1 file for the Auth service is at /spec/authorisation.yaml.
/pingService identification.
application/jsonPingversionrequiredstringThe version of the service interface specification this service implements.
servicerequiredUUIDThe service UUID,
cab2642a-f7d9-42e5-8845-8f35affe1fd4for the Auth service.softwareobjectOptional information about the implementation.
Fields
vendorstringapplicationstringrevisionstring
No credentials were given, or they were refused.
The service could not check the credentials. The caller should retry later and should not discard its credentials.
/tokenIssues an opaque bearer token for the authenticated caller. The token is valid only on the service instance that issued it, until the returned expiry time. Clients usually authenticate here with Negotiate and then use the token as Authorization: Bearer <token> on later requests.
A new token.
application/jsonTokentokenrequiredstringThe opaque bearer token.
expiryrequiredintegerWhen the token expires, in milliseconds since the Unix epoch.
No credentials were given, or they were refused.
The service could not check the credentials. The caller should retry later and should not discard its credentials.
/v2/acl/{principal}Returns the expanded ACL of the principal. Only entries whose permission the caller holds Read ACLs on are returned, so two callers can see different subsets of the same ACL.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
principal | path | Yes | UUID | A principal UUID. |
The ACL, filtered by the caller's Read ACLs grants.
application/jsonACLpermissionrequiredUUIDA permission UUID. Composite permissions have already been expanded.
targetrequiredUUIDA target UUID. Plural grants have already been expanded to the members of the target class, and Self has been replaced by the principal's own UUID. The Wildcard (the null UUID) is left as it is, for the consuming service to interpret.
The caller holds Read ACLs on no permission at all.
The UUID is not a member of the Principal class in the ConfigDB.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/acl/kerberos/{upn}As GET /v2/acl/{principal}, but the principal is found by its Kerberos identity. An unknown Kerberos name gives an empty list rather than 404, because the service has not yet checked the caller's permissions at that point.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
upn | path | Yes | Kerberos | A Kerberos principal name, URL-encoded. |
The ACL, filtered by the caller's Read ACLs grants, or an empty list if no principal has this Kerberos identity.
application/jsonACLpermissionrequiredUUIDA permission UUID. Composite permissions have already been expanded.
targetrequiredUUIDA target UUID. Plural grants have already been expanded to the members of the target class, and Self has been replaced by the principal's own UUID. The Wildcard (the null UUID) is left as it is, for the consuming service to interpret.
The caller holds Read ACLs on no permission at all.
The principal is not a member of the Principal class in the ConfigDB.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/grantReturns the UUIDs of the grants the caller holds Manage ACLs on, meaning grants whose permission is a target of one of the caller's Manage ACLs grants. Manage ACLs on the Wildcard covers every grant.
A list of grant UUIDs.
application/jsonUUIDListThe caller holds Manage ACLs on nothing.
/v2/grantCreates a grant. The caller needs Manage ACLs on the grant's permission (or on the Wildcard). Creating a grant that already exists, with the same principal, permission, target and plural flag, is not an error and returns the existing grant's UUID.
application/jsonGrantRequestprincipalrequiredUUIDA principal UUID, or a principal group UUID.
permissionrequiredUUIDA permission UUID, or a composite permission UUID.
targetrequiredUUIDThe target UUID. With
pluralfalse this is the target itself. Withpluraltrue it is a class, and every member of that class is a target.pluralrequiredbooleanWhether the target is a class whose members are the targets.
An identical grant already exists.
application/jsonGrantUUIDuuidrequiredUUID
The grant was created.
application/jsonGrantUUIDuuidrequiredUUID
The caller does not hold Manage ACLs on the grant's permission.
The grant could not be created because it conflicts with another.
The request body is not a valid grant.
/v2/grant/{uuid}| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | The grant UUID. |
The grant.
application/jsonGrantuuidrequiredUUIDThe grant UUID.
principalrequiredUUIDA principal UUID, or a principal group UUID.
permissionrequiredUUIDA permission UUID, or a composite permission UUID.
targetrequiredUUIDThe target UUID. With
pluralfalse this is the target itself. Withpluraltrue it is a class, and every member of that class is a target.pluralrequiredbooleanWhether the target is a class whose members are the targets.
The caller does not hold Manage ACLs on the grant's permission.
No grant has this UUID.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/grant/{uuid}Replaces the principal, permission, target and plural flag of an existing grant, keeping its UUID. The caller needs Manage ACLs on both the existing permission and the new one.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | The grant UUID. |
application/jsonGrantRequestprincipalrequiredUUIDA principal UUID, or a principal group UUID.
permissionrequiredUUIDA permission UUID, or a composite permission UUID.
targetrequiredUUIDThe target UUID. With
pluralfalse this is the target itself. Withpluraltrue it is a class, and every member of that class is a target.pluralrequiredbooleanWhether the target is a class whose members are the targets.
The grant was replaced.
The caller does not hold Manage ACLs on the existing permission or on the new one.
No grant has this UUID.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
The request body is not a valid grant.
/v2/grant/{uuid}The caller needs Manage ACLs on the grant's permission.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | The grant UUID. |
The grant was deleted.
The caller does not hold Manage ACLs on the grant's permission.
No grant has this UUID.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/grant/findReturns the UUIDs of grants that match every field given in the request body. Fields left out, or set to null, match anything. Only grants the caller can manage are returned, as for GET /v2/grant.
application/jsonGrantQueryprincipalUUID | nullpermissionUUID | nulltargetUUID | nullpluralboolean | null
The matching grant UUIDs.
application/jsonUUIDListThe caller holds Manage ACLs on nothing.
A field is not a UUID, or plural is not a boolean.
/v2/principalReturns the UUID of every principal that has at least one identity recorded in the Auth service. This is not the list of principals, which is the membership of the Principal class in the ConfigDB. Needs Read Kerberos mappings.
A list of principal UUIDs.
application/jsonUUIDListThe caller does not hold Read Kerberos mappings.
No identities are recorded.
/v2/principal/{uuid}Needs Read Kerberos mappings.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
The principal's identities.
application/jsonIdentitiesuuidrequiredUUIDkerberosKerberosA Kerberos principal name, including the realm.
The caller does not hold Read Kerberos mappings.
The principal has no identities.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/principal/{uuid}/groupsReturns the UUID of every principal group (subclass of the Principal class in the ConfigDB) that contains the principal, directly or through nested groups. These are the groups whose grants apply to the principal. Needs Read Kerberos mappings.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
A list of principal group UUIDs.
application/jsonUUIDListThe caller does not hold Read Kerberos mappings.
The path parameter is not a UUID, or the UUID is not a member of the Principal class.
/v2/principal/{uuid}/{kind}Needs Read Kerberos mappings.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
kind | path | Yes | string | An identity kind, as listed by |
The identity name, as a JSON string.
application/jsonstringThe caller does not hold Read Kerberos mappings.
The principal has no identity of this kind.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/principal/{uuid}/{kind}Records the identity name for this principal and kind. A principal has at most one name of each kind, and a name belongs to at most one principal. Setting the name the principal already has succeeds and changes nothing. Needs Manage Kerberos mappings on the principal UUID (or on the Wildcard).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
kind | path | Yes | string | An identity kind, as listed by |
The identity name, as a JSON string.
application/jsonstringThe identity is recorded.
The caller does not hold Manage Kerberos mappings on this principal.
The identity kind is not known.
The principal already has a different name of this kind, or the name already belongs to another principal.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/principal/{uuid}/{kind}Needs Manage Kerberos mappings on the principal UUID (or on the Wildcard).
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
kind | path | Yes | string | An identity kind, as listed by |
The identity was removed.
The caller does not hold Manage Kerberos mappings on this principal.
The principal has no identity of this kind.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/v2/identityNo permission is needed.
The identity kinds.
application/jsonarray of string/v2/identity/{kind}Needs Read Kerberos mappings.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
kind | path | Yes | string | An identity kind, as listed by |
The identity names.
application/jsonarray of stringThe caller does not hold Read Kerberos mappings.
No identities of this kind are recorded.
/v2/identity/{kind}/{name}Needs Read Kerberos mappings.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
kind | path | Yes | string | An identity kind, as listed by |
name | path | Yes | string | The identity name. For the |
The principal UUID, as a JSON string.
application/jsonUUIDThe caller does not hold Read Kerberos mappings.
No principal has this identity.
The name is not a valid name for this kind.
/v2/whoamiNo permission is needed.
The caller's principal UUID and identities.
application/jsonIdentitiesuuidrequiredUUIDkerberosKerberosA Kerberos principal name, including the realm.
The caller's credentials do not map to a principal with identities.
/v2/whoami/uuidNo permission is needed.
The caller's principal UUID, as a JSON string.
application/jsonUUIDThe caller's credentials do not map to a principal.
/v2/whoami/aclReturns the caller's whole expanded ACL. No permission is needed, so a client can offer its user only the actions they are allowed to take.
The caller's principal UUID, root flag and ACL.
application/jsonOwnACLprincipalrequiredUUID | nullThe caller's principal UUID, or null if the credentials map to no principal.
rootrequiredbooleanTrue if the caller is the implementation's root principal, whose access is not limited by its ACL and does not show in it.
aclrequiredACLFields
permissionrequiredUUIDA permission UUID. Composite permissions have already been expanded.
targetrequiredUUIDA target UUID. Plural grants have already been expanded to the members of the target class, and Self has been replaced by the principal's own UUID. The Wildcard (the null UUID) is left as it is, for the consuming service to interpret.
/authz/aclDeprecatedForwards to GET /v2/acl/{principal} or GET /v2/acl/kerberos/{upn}. The permission parameter must be a UUID but is ignored, so the response holds every entry the caller may read.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
principal | query | Yes | string | A principal UUID, or a Kerberos principal name. |
by-uuid | query | No | boolean |
|
permission | query | Yes | UUID | Any UUID. The value is ignored. |
As for the /v2 ACL endpoints.
application/jsonACLpermissionrequiredUUIDA permission UUID. Composite permissions have already been expanded.
targetrequiredUUIDA target UUID. Plural grants have already been expanded to the members of the target class, and Self has been replaced by the principal's own UUID. The Wildcard (the null UUID) is left as it is, for the consuming service to interpret.
The by-uuid value is not a recognised boolean.
As for the /v2 ACL endpoints.
As for the /v2 ACL endpoints.
The principal or permission parameter is malformed.
/authz/principal/findDeprecatedForwards to GET /v2/identity/kerberos/{name}, or to GET /v2/whoami/uuid when no kerberos parameter is given.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
kerberos | query | No | Kerberos | A Kerberos principal name. |
The principal UUID, as a JSON string.
application/jsonUUIDThe caller does not hold Read Kerberos mappings.
No principal has this identity.
The kerberos value is not a valid Kerberos principal name.
/authz/principal/{uuid}DeprecatedNeeds Read Kerberos mappings on the principal UUID (or on the Wildcard), except that callers may always look up their own principal.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
The principal and its Kerberos name.
application/jsonPrincipalMappingV1uuidrequiredUUIDkerberosrequiredKerberosA Kerberos principal name, including the realm.
The caller may not read this principal's identity.
The principal has no Kerberos identity.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/authz/principal/{uuid}Deprecated| Name | In | Required | Type | Description |
|---|---|---|---|---|
uuid | path | Yes | UUID | A principal UUID. |
This version 1 route has been removed.
/authz/principalDeprecatedThis version 1 route has been removed.
/authz/principalDeprecatedPUT /v2/principal/{uuid}/{kind}.This version 1 route has been removed.
/authz/aceDeprecatedGET /v2/grant.This version 1 route has been removed.
/authz/aceDeprecatedPOST /v2/grant and /v2/grant/{uuid}.This version 1 route has been removed.
/authz/effectiveDeprecatedGET /v2/acl/{principal}.This version 1 route has been removed.
/authz/effective/{principal}DeprecatedGET /v2/acl/{principal}.| Name | In | Required | Type | Description |
|---|---|---|---|---|
principal | path | Yes | string |
This version 1 route has been removed.
/authz/groupDeprecatedGroups are classes in the ConfigDB. This route reads any version 1 group records left from before migration. Needs Manage group on the Wildcard.
The UUIDs of version 1 groups that still have members.
application/jsonUUIDListThe caller does not hold Manage group on the Wildcard.
/authz/group/allDeprecatedNeeds Manage group on the Wildcard.
Every remaining version 1 group membership.
application/jsonarray of objectparentrequiredUUIDchildrequiredUUID
The caller does not hold Manage group on the Wildcard.
/authz/group/{group}DeprecatedNeeds Manage group on the Wildcard.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
group | path | Yes | UUID |
The member UUIDs.
application/jsonUUIDListThe caller does not hold Manage group on the Wildcard.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/authz/group/{group}/{member}Deprecated| Name | In | Required | Type | Description |
|---|---|---|---|---|
group | path | Yes | UUID | |
member | path | Yes | UUID |
This version 1 route has been removed.
/authz/group/{group}/{member}DeprecatedNeeds Manage group on the Wildcard.
| Name | In | Required | Type | Description |
|---|---|---|---|---|
group | path | Yes | UUID | |
member | path | Yes | UUID |
The membership is gone.
The caller does not hold Manage group on the Wildcard.
A path parameter is not a valid UUID or Kerberos principal name, so no resource can exist at this path.
/authn/authenticateDeprecatedAccepts any HTTP method. Because every request is authenticated before it reaches this route, a response of 200 means the credentials are valid. Use GET /v2/whoami/uuid instead.
The credentials are valid.
| Header | Required | Type | Description |
|---|---|---|---|
X-Auth-Principal | No | string | The authenticated principal name. |
application/jsonobjectoktrue
No credentials were given, or they were refused.
/authn/authenticateDeprecatedBehaves the same as the GET form.
The credentials are valid.
No credentials were given, or they were refused.