add support for --root-issuer when generating CCI claims#438
Conversation
|
/gcbrun |
6a9442c to
2d57461
Compare
|
@di sorry - reviewing contrib rules, realized i hadnt signed or updated the changelog, so did some force pushing |
2d57461 to
e06e769
Compare
|
Hmm, looks like our circleci config was only configured to run on pushes to main, I've changed the trigger to be on pushes to PRs or the default branch. Opening/closing to see if I can kick off that job. |
|
Doesn't seem like it worked. @meeech can you force-push here again? |
e06e769 to
e183c41
Compare
|
Not sure what I'm missing. AFAICT circleci is configured to run on PRs: https://github.com/di/id/blob/main/.circleci/config.yml |
|
Aha, that should do it. Mind pushing again? |
make this default behaviour di#437 Signed-off-by: meeech <4623+meeech@users.noreply.github.com>
e183c41 to
8138558
Compare
|
@di let me set it up on my fork and see why the cci job failing |
|
OOOOO - duh on me. @di this is working as expected. A fork is not allowed to access OIDC token for the parent project. So this is behaving as designed for security reasons. You can see my run here https://app.circleci.com/pipelines/github/meeech/id/2 |
|
Ah, makes sense. At the very least, I think we will want to fail more gracefully when the ambient credential is not present. |
|
@di So I've updated ambient to use stderr. I think that was the mistake. Otherwise, what sort of graceful fail would you like to see? There error seems pretty clear about the source of the fail question: should I make the same change for the buildkite code? it also references process.stdout for the error message. as far as the pipeline goes, we could make that 'sniff' if its a fork (env var Anyhow, I'm pretty flexible so let me know what you prefer |
Yes, this works, thanks! I think we're good. |
|
/gcbrun |
|
@di will do. what about buildkite? want to keep it stdout for the error? |
…ircleci binary This then produces an error message of ``` CircleCI: the `circleci` tool encountered an error: oidc: error: failed to get oidc token: this project does not allow issuing tokens to forks Error: exit status 1: oidc: error: failed to get oidc token: this project does not allow issuing tokens to forks ``` Signed-off-by: meeech <4623+meeech@users.noreply.github.com>
c432b86 to
b49bae0
Compare
|
/gcbrun |


make this default behaviour
#437