diff options
author | Felix Moessbauer <felix.moessbauer@siemens.com> | 2023-11-20 14:59:33 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-23 17:55:08 +0000 |
commit | 2696bf8cf35ca51b5147f6d462a1a9acea63097a (patch) | |
tree | fe2172e0bc65545c280d9b497e2e08696cd74e66 /bitbake/lib/bb/fetch2/__init__.py | |
parent | 8a8d6fe1327ea5f86b90f33336575e5434637729 (diff) | |
download | poky-2696bf8cf35ca51b5147f6d462a1a9acea63097a.tar.gz |
bitbake: fetch2/aws: forward env-vars used in gitlab-ci K8s
This patch adds the following variables to the allow-list, which are
used in the "IAM roles for AWS when using the GitLab chart":
- AWS_ROLE_ARN
- AWS_WEB_IDENTITY_TOKEN_FILE
These variables are set in the CI job environment and are needed to
access the sstate cache artifacts in a connected S3 bucket.
[1] https://docs.gitlab.com/charts/advanced/external-object-storage/aws-iam-roles.html
Reported-by: Zhi Bin Dong <zhibin.dong@siemens.com>
(Bitbake rev: c534526ea73805ee7cc16f3168b05ece10e0c03c)
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 35e9ca96b7..22a2f80107 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -872,6 +872,8 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH', | |||
872 | 'AWS_PROFILE', | 872 | 'AWS_PROFILE', |
873 | 'AWS_ACCESS_KEY_ID', | 873 | 'AWS_ACCESS_KEY_ID', |
874 | 'AWS_SECRET_ACCESS_KEY', | 874 | 'AWS_SECRET_ACCESS_KEY', |
875 | 'AWS_ROLE_ARN', | ||
876 | 'AWS_WEB_IDENTITY_TOKEN_FILE', | ||
875 | 'AWS_DEFAULT_REGION', | 877 | 'AWS_DEFAULT_REGION', |
876 | 'GIT_CACHE_PATH', | 878 | 'GIT_CACHE_PATH', |
877 | 'REMOTE_CONTAINERS_IPC', | 879 | 'REMOTE_CONTAINERS_IPC', |