-
Notifications
You must be signed in to change notification settings - Fork 841
Description
Using client JWTs to authenticate clients—such as those from GitHub—offers significant value but comes with certain limitations.
The subject (sub) claim in the token varies depending on the context in which the action is executed. For example:
- When targeting an environment:
repo:octo-org/octo-repo:environment:Production - When targeting a branch:
repo:octo-org/octo-repo:ref:refs/heads/demo-branch
GitLab follows a similar pattern for generating the sub claim.
Reference: GitHub Docs – Example Subject Claims
Currently, the sub value configured in the client JWT must exactly match the sub in the incoming token. As a result, users may need to create multiple client JWT configurations to cover all possible subjects—up to the configured limit of 10 entries.
To improve flexibility and reduce this overhead, it would be highly beneficial if UAA supported pattern matching in the sub claim. For example:
repo:octo-org/octo-repo:ref:refs/heads/*repo:octo-org/octo-repo:environment:*
Metadata
Metadata
Assignees
Labels
Type
Projects
Status