-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Subject exceeds the 127 byte limit mitigation strategy #423
Comments
Hi there @reakaleek 👋! Thank you for opening an issue. Our team will triage this as soon as we can. Please take a moment to review the troubleshooting steps which lists common error messages and their resolution steps. |
Sure, but that same value ( |
@sethvargo thank you for the feedback. Would you mind explaining why a reduced subject granularity is not advised? Context: Due to the quirks of AWS OIDC authentication, we had to modify the sub claim for the GH repository to include more attributes. So, do you think it's okay to shorten the I want to understand the implications of this and if I should reconsider my approach. |
The subject ( |
TL;DR
The troubleshooting guide suggests that you can only use shorter repo or branch names to overcome the 127-byte limit issue.
But you can also adjust the attribute mapping and shorten the subject.
Detailed design
You can overcome the 127 byte limit by shortening the
google.subject
in the attribute mapping.Hence, in cases where the sub claim is
repo:<orgName/repoName>:pull_request
it will be change to<orgName/repoName>
, which will shorten thegoogle.subject
to some degree.Update documentation accordingly.
Additional information
No response
The text was updated successfully, but these errors were encountered: