feat(providersv2): add path auth_style#1622
Conversation
Signed-off-by: Calum Murray <cmurray@redhat.com>
|
Note that adding this path Bearer, header, and query injection all work transparently - the proxy adds a header or query param to the outbound request without the sandbox process needing to know the credential. Path injection is different as the credential is embedded in the URL the process constructs (e.g. Telegram /bot/sendMessage). If the process doesn't have credentials in it's environment, it probably can't construct the URL. A couple ideas:
We may want to figure this out before merging here, to make sure that this approach even works with the v2 providers design |
|
I would lean option 1. On that note, I think we should require the placeholder i.e. The user-facing docs also need to be updated with the path support and indicate what requirements there should be in the path template. |
Summary
While looking through the proposal in #896 I saw that we never added the
auth_style: paththat was outlined. This PR looks to close that gapRelated Issue
Part of #896
Changes
path_templatetoCredentialProfilein protobuf and associated typesauth_style: pathvalidationTesting
mise run pre-commitpassesChecklist