What would you like Teleport to do?
tbot/teleport should support fetching JWTs directly from HTTP endpoints in their client-side generic_oidc configuration, potentially including basic request headers.
It would probably also need some basic support for parsing the response, e.g. jsonpath or similar.
What problem does this solve?
Currently, the generic_oidc join method supports sourcing tokens from either environment variables or arbitrary commands. However, this is problematic when using Teleport's -distroless images: without any other binaries in the image to actually run, it's not possible to source JWTs.
Various providers make HTTP endpoints available for this purpose:
...however, without a tool like curl, these endpoints can't actually be fetched.
If a workaround exists, please include it.
Use a -debug image instead of distroless and use a curl command.
What would you like Teleport to do?
tbot/teleportshould support fetching JWTs directly from HTTP endpoints in their client-sidegeneric_oidcconfiguration, potentially including basic request headers.It would probably also need some basic support for parsing the response, e.g. jsonpath or similar.
What problem does this solve?
Currently, the
generic_oidcjoin method supports sourcing tokens from either environment variables or arbitrary commands. However, this is problematic when using Teleport's-distrolessimages: without any other binaries in the image to actually run, it's not possible to source JWTs.Various providers make HTTP endpoints available for this purpose:
http://169.254.169.254/(https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=linux)http://metadata/(https://docs.cloud.google.com/docs/authentication/get-id-token#metadata-server)...however, without a tool like
curl, these endpoints can't actually be fetched.If a workaround exists, please include it.
Use a
-debugimage instead ofdistrolessand use acurlcommand.