Skip to content

Commit

Permalink
feat: support service accounts
Browse files Browse the repository at this point in the history
Add extended information to provide when an endpoint
could be used for a service account too.

Signed-off-by: Alejandro Visiedo <avisiedo@redhat.com>
  • Loading branch information
avisiedo committed Jun 11, 2024
1 parent d311632 commit 2adcd61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ paths:
security:
- x-rh-identity:
- Type:User
- Type:ServiceAccount
tags:
- resources
post:
Expand Down Expand Up @@ -112,6 +113,7 @@ paths:
security:
- x-rh-identity:
- Type:User
- Type:ServiceAccount
tags:
- resources
/domains/{uuid}:
Expand All @@ -134,6 +136,7 @@ paths:
security:
- x-rh-identity:
- Type:User
- Type:ServiceAccount
tags:
- resources
get:
Expand All @@ -150,6 +153,7 @@ paths:
security:
- x-rh-identity:
- Type:User
- Type:ServiceAccount
tags:
- resources
patch:
Expand All @@ -175,6 +179,7 @@ paths:
security:
- x-rh-identity:
- Type:User
- Type:ServiceAccount
tags:
- resources
put:
Expand Down Expand Up @@ -266,6 +271,7 @@ paths:
- x-rh-identity:
- Type:System
- Type:User
- Type:ServiceAccount
tags:
- resources
components:
Expand Down Expand Up @@ -1124,6 +1130,7 @@ components:
The JSON object contains type (System, User), org_id, and either username or certificate CN.
Scopes:
- 'Type:User' for user access
- 'Type:ServiceAccount' for service accounts
- 'Type:System': for system access (hosts with RHSM mTLS auth)
- 'Type:System:domain' for system access, limited to host's domain
type: apiKey
Expand Down

0 comments on commit 2adcd61

Please sign in to comment.