You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only specific environment variables are available in claim template, users can join variables but cannot extract part of environment.
for example users can define aud claim as “Jenkins:${JOB_NAME}” but we cannot delete the tailing “main” and get pure org name and repo name in job_name like “Jenkins/foo/main”, which is typically in multi branch pipelines of GitHub repo.
my thought would be implementing a new claim template type , supporting following arguments:
Original text like the other types, supporting macros just like other type
Regex expression that used to match the original text, eg: “(\w+)/.*”
Replacement that used to construct the final text, eg: “$1:jenkins” , $1 represents the first matched group.
What feature do you want to see added?
Currently only specific environment variables are available in claim template, users can join variables but cannot extract part of environment.
for example users can define aud claim as “Jenkins:${JOB_NAME}” but we cannot delete the tailing “main” and get pure org name and repo name in job_name like “Jenkins/foo/main”, which is typically in multi branch pipelines of GitHub repo.
my thought would be implementing a new claim template type , supporting following arguments:
Maybe related to #6
Upstream changes
No response
Are you interested in contributing this feature?
Yes
The text was updated successfully, but these errors were encountered: