Skip to content

Integrate KBS API#2

Open
iroykaufman wants to merge 7 commits into
mainfrom
split-commites
Open

Integrate KBS API#2
iroykaufman wants to merge 7 commits into
mainfrom
split-commites

Conversation

@iroykaufman

Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Add kbs-client and sync reference values to KBS using the admin API.
Introduce TRUSTEE_RV_MAP ConfigMap, trustee deployment sync controller,
and remove file-based RVPS storage.

note:
1. Admin access is currently set to insecure, but this will be updated in later commits. This temporary setup simplifies development, as the mechanism changed slightly between v0.17.0 and v0.20.0.
2. The ring dependency will be removed in a future commit when bumping to v0.20.0, as a native TLS version is available.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Send resource.rego to KBS via the admin API instead of mounting it
as a file in the trustee deployment.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Send tpm.rego to KBS via the admin API. Remove the attestation-policy
ConfigMap and its volume mount from the trustee deployment.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Upgrade Trustee to v0.20.0 with JWT-authenticated admin API.
Replace volume-based secret mounting with send_secret/delete_secret,
and register attestation keys via the KBS API.

note: I removed several irrelevant unit tests, and I will add tests for the new functions in a future commit.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
test_luks_key_sync - verify the initial LUKS key upload, re-sync after trustee restart,
and LUKS key deletion on machine removal.

test_attestation_key_sync - verify that attestation keys are registered with the KBS and re-registered after trustee restarts.

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Tested functions:
- sync_all_machine_luks_key
- update_attestation_keys

Signed-off-by: Roy Kaufman <rkaufman@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant