Skip to content

Commit

Permalink
fix clients and attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethhealy committed Dec 18, 2024
1 parent 6a64561 commit f5dc3a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/roundtrip/encrypt-decrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ _nano_test() {
--kasEndpoint http://localhost:65432/api/kas \
--allowList http://localhost:65432 \
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
--auth tdf-client:123-456 \
--auth opentdf:secret \
--output sample.txt.ntdf \
encrypt "${plain}" \
--attributes https://example.com/attr/Classification/value/S,https://example.com/attr/COI/value/PRX
--attributes https://example.com/attr/attr1/value/value1

[ -f sample.txt.ntdf ]

npx "$2" --log-level DEBUG \
--kasEndpoint http://localhost:65432/api/kas \
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
--auth tdf-client:123-456 \
--auth opentdf:secret \
--output sample_out.txt \
decrypt sample.txt.ntdf

Expand All @@ -44,18 +44,18 @@ _tdf3_test() {
npx "$1" --log-level DEBUG \
--kasEndpoint http://localhost:65432/api/kas \
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
--auth tdf-client:123-456 \
--auth opentdf:secret \
--output sample.txt.tdf \
encrypt "${plain}" \
--containerType tdf3 \
--attributes https://example.com/attr/Classification/value/S,https://example.com/attr/COI/value/PRX
--attributes https://example.com/attr/attr1/value/value1

[ -f sample.txt.tdf ]

npx "$2" --log-level DEBUG \
--kasEndpoint http://localhost:65432/api/kas \
--oidcEndpoint http://localhost:65432/auth/realms/opentdf \
--auth tdf-client:123-456 \
--auth opentdf:secret \
--output sample_out.txt \
--containerType tdf3 \
decrypt sample.txt.tdf
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/roundtrip/wait-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ _init_platform() {
echo "[INFO] retrying in ${sleep_for} seconds... ( ${i} / $limit ) ..."
sleep ${sleep_for}
done

if ! go run "${svc}" provision fixtures; then
echo "[ERROR] unable to provision fixtures"
return 1
fi
}

if ! _configure_app; then
Expand Down

0 comments on commit f5dc3a1

Please sign in to comment.