diff options
author | Justin Bronder <jsbronder@cold-front.org> | 2021-12-06 16:24:37 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-08 20:22:53 +0000 |
commit | acd77c3ac9f5272908cbeb96426c2f80fa75a48f (patch) | |
tree | 03c5d50359577a7f5213b4b59ba9191e198a80d1 /bitbake/doc/bitbake-user-manual | |
parent | 35f134529097e9b1d1fa28613f6e19b047836e1f (diff) | |
download | poky-acd77c3ac9f5272908cbeb96426c2f80fa75a48f.tar.gz |
bitbake: fetch2/wget: add redirectauth parameter
Add a parameter that limits sending Basic authentication in the
Authorization header to only the first host and not any that we're
redirected to. Ignoring potential security concerns, temporary AWS URLs
will reject any request that includes authentication details in both the
query parameters (from the redirect) and in the Authorization header.
Temporary AWS URLs are now being used for release assets from private
Github repositories. According to the previous discussion linked below,
they're also in use by bitbucket.
See also:
https://lore.kernel.org/bitbake-devel/CAC9ffDEuZL-k8199bUyN+8frjw6bg-g=vrumxxtvt+RVParQ8Q@mail.gmail.com/
(Bitbake rev: a6ab32013a4381a1b694ed46caf2c9da932644d0)
Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/doc/bitbake-user-manual')
-rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst index 51ab233adc..0fc2d5e699 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | |||
@@ -229,6 +229,11 @@ downloaded file is useful for avoiding collisions in | |||
229 | :term:`DL_DIR` when dealing with multiple files that | 229 | :term:`DL_DIR` when dealing with multiple files that |
230 | have the same name. | 230 | have the same name. |
231 | 231 | ||
232 | If a username and password are specified in the ``SRC_URI``, a Basic | ||
233 | Authorization header will be added to each request, including across redirects. | ||
234 | To instead limit the Authorization header to the first request, add | ||
235 | "redirectauth=0" to the list of parameters. | ||
236 | |||
232 | Some example URLs are as follows:: | 237 | Some example URLs are as follows:: |
233 | 238 | ||
234 | SRC_URI = "http://oe.handhelds.org/not_there.aac" | 239 | SRC_URI = "http://oe.handhelds.org/not_there.aac" |