Skip to content

Commit

Permalink
debug cert permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Sep 9, 2024
1 parent c2737e8 commit 848679a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cont-init.d/50_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ echo "Current User: $(whoami)"
# 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)"

# Check existing uids/gids
cat /etc/passwd

# chmod 600 "$CERT_FILE_KEY"
echo "$CERT_FILE_KEY permissions"
ls -l "$CERT_FILE_KEY"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
restart: always
secrets:
- source: certificate_private_key
mode: 0600
mode: 0644
uid: tedge
gid: tedge
- source: certificate_public_key
Expand Down

0 comments on commit 848679a

Please sign in to comment.