CircleCI-provided JWT
complete
Mike Bryant
We currently have to put in lots of credentials to different builds to let it integrate with various services. With the advent of things like Service Meshes, we'd love for CircleCI to provide every build with a JWT containing all of the relevant info, signed by CircleCI, with that public key published etc.
I imagine the info bound inside the JWT would be things like:
- branch
- tag
- Job/Pipeline URLs
- repo
- org
- job
This would let us use things like https://istio.io/latest/docs/tasks/security/authorization/authz-jwt/ to say, allow access to certain endpoints by specific CircleCI jobs or repositories, without needing to manually set up credentials on both sides.
Oran Wilder
complete
I believe our OIDC implementation is the solution you're looking for. Learn how to invoke the token and the claims attached: https://circleci.com/docs/openid-connect-tokens/