Skip to content

Commit

Permalink
remove security whitelist for centos scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Sep 23, 2019
1 parent 6c99985 commit a1c01b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 36 deletions.
27 changes: 0 additions & 27 deletions tests/centos7-clair-whitelist.yaml

This file was deleted.

18 changes: 9 additions & 9 deletions tests/clairscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ else
echo 'using existing clair-scanner...'
fi

#ensure whitelist file (temporary)
if [ ! -s ./centos7-clair-whitelist.yaml ]; then
echo 'downloading whitelist file...'
curl -s -L -o ./centos7-clair-whitelist.yaml https://github.internet2.edu/raw/docker/shib-idp/3.4.4_20190801/tests/centos7-clair-whitelist.yaml
else
echo 'using existing whitelist file...'
fi
#if needed, ensure whitelist file
#if [ ! -s ./centos7-clair-whitelist.yaml ]; then
# echo 'downloading whitelist file...'
# curl -s -L -o ./centos7-clair-whitelist.yaml https://github.internet2.edu/raw/docker/shib-idp/3.4.4_20190801/tests/centos7-clair-whitelist.yaml
#else
# echo 'using existing whitelist file...'
#fi

#ensure DB container
echo 'ensuring a fresh clair-db container...'
Expand Down Expand Up @@ -54,8 +54,8 @@ echo 'sending ip addr' ${clairip} 'to clair-scan server...'

#run scan
echo 'running scan...'
./clair-scanner -w centos7-clair-whitelist.yaml --ip ${clairip} $1
#./clair-scanner --ip ${clairip} $1
#./clair-scanner -w centos7-clair-whitelist.yaml --ip ${clairip} $1
./clair-scanner --ip ${clairip} $1
retcode=$?

#eval results
Expand Down

0 comments on commit a1c01b3

Please sign in to comment.