Skip to content
Snippets Groups Projects
Commit 469bea09 authored by Igor Witz's avatar Igor Witz
Browse files

Update decrypt-secrets.sh, .gitlab-ci.yml, pica-etherpad/clair-whitelist.yml files

parent 1160323c
No related branches found
No related tags found
1 merge request!35Gestion des secrets
Pipeline #40757 failed
......@@ -13,6 +13,8 @@ stages:
# build the container that further steps will run in in order to avoid duplicating instructions between steps
test-pgp:
stage: test-pgp
variables:
PICA_ENVIRONMENT: "TEST"
before_script:
- apk add gnupg
- chmod +x decrypt-secrets.sh
......
#!/bin/sh
# import the PGP key for the right environment
echo "$PRIVATE_GPG_KEY_TEST" > /tmp/test
cat /tmp/test | gpg --import
echo "PRIVATE_GPG_KEY_TEST" | gpg --import
#echo $PRIVATE_GPG_KEY_TEST | tr '_' '\n'
#echo $PRIVATE_GPG_KEY_TEST | tr '_' '\n' | gpg --import
# decrypt the secrets
SECRETS_PATH=$MODIFIED_IMAGE/secrets/encrypted-variables-$(echo $PICA_ENVIRONMENT | tr '[:upper:]' '[:lower:]')
echo $SECRETS_PATH
SANITIZED_KEY=$(cat -e key-test | sed 's/\$/\\n/g')
for $encrypted_secret in $SECRETS_PATH;
do
echo $encrypted_secret
done
\ No newline at end of file
......@@ -20,4 +20,4 @@ generalwhitelist:
CVE-2017-12424: shadow -> Pas de contre mesure
CVE-2018-6954: systemd -> Pas de contre mesure
CVE-2018-15686: systemd -> Pas de contre mesure
CVE-2018-6797: Perl est une dépendance du client mysql et la version non vulnérable dans stretch n'a pas été backportée -> Pas de contre-mesure
CVE-2018-6797: Perl est une dépendance du client mysql et la version non vulnérable dans stretch n'a pas été backportée -> Pas de contre-mesure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment