-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build the SPIRE Agent Docker image to run as root by default (#5227)
Signed-off-by: Agustín Martínez Fayó <[email protected]>
- Loading branch information
1 parent
e2e765c
commit 826a59f
Showing
6 changed files
with
19 additions
and
18 deletions.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
|
||
log-info "Test Delegated Identity API (for success)" | ||
docker-compose exec -u 1001:1000 -T spire-agent \ | ||
docker-compose exec -u 1001 -T spire-agent \ | ||
/opt/spire/conf/agent/delegatedidentityclient -expectedID spiffe://domain.test/workload || fail-now "Failed to check Delegated Identity API" | ||
|
||
log-info "Test Delegated Identity API (expecting permission denied)" | ||
docker-compose exec -u 1002:1000 -T spire-agent \ | ||
docker-compose exec -u 1002 -T spire-agent \ | ||
/opt/spire/conf/agent/delegatedidentityclient || fail-now "Failed to check Delegated Identity API" |
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