Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kas registry fix #177

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 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
1 change: 1 addition & 0 deletions .github/workflows/xtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
with:
repository: opentdf/tests
path: otdftests # use different name bc other repos might have tests directories
ref: kas-registry-fix
- name: Set up Node 20
uses: actions/setup-node@v3
with:
Expand Down
3 changes: 1 addition & 2 deletions xtest/abac.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ def kas_registry_create(self, url: str, key: str) -> KasEntry:
else:
with open(key, "r") as file:
keydata = file.read()
cmd += [f"--public-key-local={keydata}"]

cmd += [f'--public-keys={{"cached": {{"keys": [{{"pem": "{keydata}", "kid": "r1", "alg": 1}}]}}}}']
dmihalcik-virtru marked this conversation as resolved.
Show resolved Hide resolved
logger.info(f"kr-create [{' '.join(cmd)}]")
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
code = process.wait()
Expand Down
Loading