Skip to content

Commit 03340ed

Browse files
NRL-1595 Experimenting with cert envs needed to deploy account changes
1 parent 3c0c778 commit 03340ed

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

scripts/truststore.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function _truststore_help() {
2525
echo " pull-ca-key <ca> - Pull the certificate authority private key"
2626
echo " pull-client <env> - pull the files needed for a client connection"
2727
echo " pull-server <env> - pull the files needed for a server connection"
28+
echo " pull-all-for-account <acc> - pull all the truststore files for all environments in a given account"
2829
echo " pull-all <env> - pull all the truststore files for an environment"
2930
echo " push-all <env> - push all the truststore files for an environment"
3031
echo " rotate-ca <env> - rotate the certificate authority, archiving the previous one"
@@ -321,10 +322,14 @@ function _truststore_pull_all_for_account() {
321322
echo "Pulling certs for environments ${envs_array[@]} in ${account} account"
322323

323324
for env in ${envs_array[@]}; do
324-
echo "⏳ Pulling ${env} truststore certs"
325-
_truststore_pull_ca $env
326-
_truststore_pull_client $env
327-
_truststore_pull_server $env
325+
# don't need to pull dev-sandbox etc certs
326+
if [[ $env != *"-sandbox" ]];
327+
then
328+
echo "⏳ Pulling ${env} truststore certs"
329+
_truststore_pull_ca $env
330+
_truststore_pull_client $env
331+
_truststore_pull_server $env
332+
fi
328333
done
329334

330335
echo -e "✅ Successfully pulled all ${account} truststore files from s3://${BUCKET}"

0 commit comments

Comments
 (0)