Skip to content

Commit

Permalink
try manually setting the file permissions of the device certs
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Sep 9, 2024
1 parent 184e495 commit 8446e93
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cont-init.d/50_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
set -e
echo "Current User: $(whoami)"

# CERT_FILE_KEY="$(tedge config get device.key_path)"
# chmod 600 "$CERT_FILE_KEY"
# Note: Workaround for lack of docker compose functionality
# secrets `uid`, `gid` and `mode` are not supported, they will be ignored
CERT_FILE_KEY="$(tedge config get device.key_path)"
chmod 600 "$CERT_FILE_KEY"

# CERT_FILE_PUB="$(tedge config get device.cert_path)"
# chmod 644 "$CERT_FILE_PUB"
CERT_FILE_PUB="$(tedge config get device.cert_path)"
chmod 644 "$CERT_FILE_PUB"

# Support variable set by go-c8y-cli
if [ -n "$C8Y_DOMAIN" ] && [ -z "${TEDGE_C8Y_URL:-}" ]; then
Expand Down

0 comments on commit 8446e93

Please sign in to comment.