-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New scenario with keylime tenant in container
New scenario with keylime tenant in container. Add new limecon function which prepare, build and manage tenant container.
- Loading branch information
Showing
4 changed files
with
320 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM quay.io/centos/centos:stream9 | ||
COPY id_*.pub /root/ | ||
COPY lime_con_start.sh /usr/local/bin/lime_con_start | ||
RUN dnf install -y keylime-agent-rust util-linux-core openssh openssh-server which && \ | ||
dnf clean all && \ | ||
ssh-keygen -A && mkdir -p /root/.ssh && \ | ||
cat /root/id_*.pub > /root/.ssh/authorized_keys && \ | ||
chmod 700 /root/.ssh/authorized_keys && \ | ||
chmod a+x /usr/local/bin/lime_con_start |
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
28 changes: 28 additions & 0 deletions
28
container/functional/keylime_all_in_container-basic-attestation/main.fmf
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
summary: Tests basic keylime attestation scenario for all keylime component in containers | ||
description: | | ||
Running agents,verifier and registrar and tenant in containers. | ||
Every container uses certificates generated by keylime verifier. | ||
Build container image for agent, verifier,registrar and tenant. | ||
Starts verifier, registrar in container. | ||
Setup agent conf for agent. | ||
Run container with agent. | ||
Register agent by verifier. | ||
Verifiers that container passed with agent attestation. | ||
Do changes in scripts monitored by agent and confirm that agent fail attestation accordingly. | ||
contact: Patrik Koncity <[email protected]> | ||
tag: | ||
- container | ||
component: | ||
- keylime | ||
test: ./test.sh | ||
framework: beakerlib | ||
require: | ||
- yum | ||
- podman | ||
- nmap | ||
recommend: | ||
- keylime | ||
duration: 10m | ||
enabled: true | ||
extra-nitrate: TC#0614624 | ||
id: d36f0263-0c8a-4615-bdf4-7b80bf870fe3 |
Oops, something went wrong.