Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

http: Support authentication #5733

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marxarelli
Copy link
Contributor

Support authentication for HTTP sources.

  • llb: Define general llb.AuthOption interface composed of HTTPOption and GitOption.
  • llb: Refactor llb.AuthHeaderSecret to return an llb.AuthOption so it may be used with both llb.Git and llb.HTTP.
  • llb: Define HTTPInfo.AuthHeaderSecret.
  • llb: Define and flag new source.http.auth capability when HTTPInfo.AuthHeaderSecret is set.
  • solver: Define new http.auth source attribute.
  • source/http: If an http.auth attribute is specified, resolve a secret named by its value and set the "Authorization" request header.

Support authentication for HTTP sources.

 - llb: Define general `llb.AuthOption` interface composed of
   `HTTPOption` and `GitOption`.
 - llb: Refactor `llb.AuthHeaderSecret` to return an `llb.AuthOption` so
   it may be used with both `llb.Git` and `llb.HTTP`.
 - llb: Define `HTTPInfo.AuthHeaderSecret`.
 - llb: Define and flag new `source.http.auth` capability when
   `HTTPInfo.AuthHeaderSecret` is set.
 - solver: Define new `http.auth` source attribute.
 - source/http: If an `http.auth` attribute is specified, resolve a
   secret named by its value and set the "Authorization" request header.

Signed-off-by: Dan Duvall <dduvall@wikimedia.org>
@marxarelli marxarelli changed the title source: HTTP source authentication http: Support authentication Feb 13, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant