Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/xtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ jobs:
platform/sdk/go.sum

######## SPIN UP BACKEND #############
- run: |
.github/scripts/init-temp-keys.sh
cp opentdf-dev.yaml opentdf.yaml
- run: .github/scripts/init-temp-keys.sh
working-directory: platform
- run: >-
<opentdf-dev.yaml >opentdf.yaml yq e '
(.services.kas.keyring = [{"kid":"ec1","alg":"ec:secp256r1"},{"kid":"r1","alg":"rsa:2048"}])
| (.server.cryptoProvider.standard.keys = [{"kid":"ec1","alg":"ec:secp256r1","private":"kas-ec-private.pem","cert":"kas-ec-cert.pem"},{"kid":"r1","alg":"rsa:2048","private":"kas-private.pem","cert":"kas-cert.pem"}])
'
working-directory: platform
- name: Added Trusted Certs
run: |
Expand Down Expand Up @@ -193,7 +197,7 @@ jobs:
name: start another KAS server in background
with:
run: >
<opentdf.yaml >opentdf-beta.yaml yq e '
<opentdf-dev.yaml >opentdf-beta.yaml yq e '
(.server.port = 8282)
| (.mode = ["kas"])
| (.sdk_config = {"endpoint":"http://localhost:8080","plaintext":true,"client_id":"opentdf","client_secret":"secret"})
Expand Down
2 changes: 1 addition & 1 deletion xtest/test_tdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_tdf(encrypt_sdk, decrypt_sdk, pt_file, tmp_dir, container):
with open(ct_file, "rb") as f:
envelope = nano.parse(f.read())
assert envelope.header.version.version == 12
assert envelope.header.kas.kid
assert envelope.header.kas.kid == b"ec1" + b"\0" * 5
cipherTexts[container_id] = ct_file
ct_file = cipherTexts[container_id]
assert os.path.isfile(ct_file)
Expand Down