-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a script to run at container start via kolla_start to update the container environment for trusted CAs (TLS-E). Also adds the cloud-admin user to the kolla group to be allowed to run kolla* commands as root. This is required to get the openstackclient CA trust updated for tls endpoints. Jira: OSP-26299 Jira: OSP-26849
- Loading branch information
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Copy custom CA certificates to system trusted CA certificates folder | ||
# and run CA update utility | ||
|
||
# Remove old certificates | ||
rm -f /usr/local/share/ca-certificates/ng-customca-* \ | ||
/etc/pki/ca-trust/source/anchors/ng-customca-* | ||
|
||
if [[ -d /var/lib/config-data/ca-certificates ]] && \ | ||
[[ ! -z "$(ls -A /var/lib/config-data/ca-certificates/)" ]]; then | ||
# CentOS | ||
for cert in /var/lib/config-data/ca-certificates/*; do | ||
file=$(basename "$cert") | ||
cp $cert "/etc/pki/ca-trust/source/anchors/ng-customca-$file" | ||
done | ||
update-ca-trust | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters