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

Merge Attestation-Service and KBS #173

Merged
merged 165 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
b03fab2
Merge: move kbs into a separate dir
Xynnn007 Nov 3, 2023
70cb4e3
Initial commit
sameo Apr 25, 2022
7dcbc08
AS: The initial implementation
liangzhou121 Apr 27, 2022
849a743
AS: Add basic compile testing
liangzhou121 Jun 6, 2022
a1a555d
AS: Add a server application
liangzhou121 Jun 2, 2022
b3775d9
AS: Add the attestation server's client.
jialez0 Jun 17, 2022
f1aa638
Refactoring the integration logic of the policy engine
jialez0 Jul 15, 2022
a5cade6
Update the server app to adapt to changes in the Attestation Service.
jialez0 Jul 20, 2022
7c8906e
Update the AS ctl to adapt to changes in the Attestation Service.
jialez0 Jul 20, 2022
bb5aa4e
CI: Add OPA policy.rego fmt and check.
jialez0 Jul 22, 2022
7e33bcd
ci: Disable clippy lint check
stevenhorsman Aug 12, 2022
0664207
feat: initial implementation of RVPS
Jul 22, 2022
20e20b7
AS: Code layout cleanup
jialez0 Sep 20, 2022
d9bf7dc
AS: Add Makefile.
jialez0 Sep 20, 2022
5eef22b
AS: Add proper README
jialez0 Sep 20, 2022
651867b
AS: Rename binaries and update documentation
jialez0 Sep 21, 2022
ee6dc25
Update CI basic.yaml.
jialez0 Sep 21, 2022
ea69b69
fix: deserialize when the nanosecond of now is not zero
Xynnn007 Oct 20, 2022
8acfd49
fix: rename cache to store in RVPS
Xynnn007 Oct 20, 2022
53904c4
AS: Update the top APIs.
jialez0 Oct 21, 2022
2ad355a
gRPC Server: Update proto APIs
jialez0 Oct 21, 2022
e57278e
Document: Update README
jialez0 Oct 21, 2022
3fa2f28
feat: add local fs cache for rvps
Xynnn007 Sep 20, 2022
8fff1b8
AS: Modular policy engine to support alternative policy engines.
jialez0 Oct 21, 2022
4912294
gRPC AS: Remove Get and Set policy APIs to adapt the modular policy e…
jialez0 Oct 24, 2022
742a1cc
Documents: Update README to adapt modular policy engine.
jialez0 Oct 24, 2022
cd3ad87
CI: Change OPA default policy file path.
jialez0 Oct 24, 2022
e0fec7a
fix: CI error for unnecessary reference
Xynnn007 Nov 14, 2022
7aabf8f
Update KBS types
fitzthum Nov 22, 2022
8b06a62
AS: Integrated RVPS
jialez0 Nov 1, 2022
239d565
Cargo: Order the dependencies alphabetically
sameo Nov 29, 2022
4fd14e4
refactor: refactor rvps as a mod
Xynnn007 Nov 29, 2022
abc59dd
[RVPS] Add handler for in-toto
Xynnn007 Nov 29, 2022
08cc582
types: Add AttestationResults getters
sameo Nov 30, 2022
21777d7
AS: Fix a couple of clippy warnings
sameo Dec 8, 2022
0849d77
docs: update document of rust-c wrapper of golang-in-toto
Xynnn007 Dec 1, 2022
46bdb6e
AS: Sync with the kbs-types crate
sameo Dec 7, 2022
a7eccdd
AS: Enable the sample verifier exclusively
sameo Dec 8, 2022
b784a3d
gh: Run the CI against the beta and nightly toolchains
sameo Dec 9, 2022
381de20
build: Fix nightly linter errors
sameo Dec 14, 2022
0f5c8ec
AS: Switch to upstream shadow_rs
sameo Dec 14, 2022
b816241
AS: Switch to crates.io shadow-rs
sameo Dec 16, 2022
812b3cc
Update Sample Verifier and fix some bugs
jialez0 Jan 17, 2023
34880b1
fix: Sample verifier branch arm
Xynnn007 Jan 30, 2023
f37a7ab
RVPS: Add RVPS binary and proxy feature
Xynnn007 Jan 19, 2023
bbd35fd
docs: Documents for RVPS
Xynnn007 Jan 29, 2023
df04301
fix: `make install` is failed as `grpc-as-ctl` was removed
chendave Feb 15, 2023
a6b0246
fix: Build each binary with the needed features
chendave Feb 15, 2023
d506409
fix lint check
chendave Feb 15, 2023
b501e7d
Define new target `make clean` in the `Makefile`
chendave Feb 16, 2023
99ab258
AS: Add TDX Verifier
jialez0 Nov 28, 2022
ae85f95
CI: Intall TDX build dependencies
jialez0 Dec 1, 2022
fe73817
Update README.md for TDX verifier
jialez0 Feb 15, 2023
047d5ea
Update Cargo.toml `kbs-type` rev
jialez0 Feb 22, 2023
9dfcabd
Provides compilation features for TDX verifier
jialez0 Feb 28, 2023
96c37cd
refactor: make reference value fields public
Xynnn007 Mar 8, 2023
10e1dbe
feat: add sample provenance
Xynnn007 Mar 8, 2023
7f52a1f
RVPS: add rvps client for testing
Xynnn007 Mar 9, 2023
c222f37
fix: RVPS Extractors init
Xynnn007 Mar 9, 2023
e28fb06
refactor: add error context for sled
Xynnn007 Mar 9, 2023
15bd497
docs: update rvps docs
Xynnn007 Mar 9, 2023
c0378e9
feat: dockerfile for rvps
Xynnn007 Mar 10, 2023
350c364
dep: fixed rev for kbs-types
Xynnn007 Mar 11, 2023
71db104
Add Dockerfile for gRPC AS
jialez0 Mar 13, 2023
9aab8b6
Add CI for container image building
jialez0 Mar 13, 2023
400cf89
gRPC AS | Fixed lacking of RVPS server
jialez0 Mar 13, 2023
0498d02
Support specify config file path
jialez0 Mar 13, 2023
8b715cc
Add Sample TEE to gRPC enum
jialez0 Mar 14, 2023
56f9757
Extrat AS types as a separate package
jialez0 Mar 14, 2023
a3090a0
fix: remove ring dependency
Xynnn007 Mar 15, 2023
77cc8c8
RVPS: rename proxy to grpc, server to native
Xynnn007 Mar 15, 2023
8f3ab12
RVPS: update Makefile for new feature name
Xynnn007 Mar 15, 2023
35fa6f4
Dockerfile: update RVPS feature name
Xynnn007 Mar 15, 2023
1deb1c0
docs: update RVPS related documents
Xynnn007 Mar 15, 2023
b169850
Dockerfile: fix AS build
Xynnn007 Mar 20, 2023
be533ef
CC-KBC: get rid of sgx dep for tdx verifier
Xynnn007 Mar 21, 2023
5a912ca
Dockerfile: Optimize the build and decrease the image size
Xynnn007 Mar 21, 2023
c1155eb
TDX | Workaround for old TDEL format used by TDVF now
jialez0 Mar 29, 2023
0f48742
Update kbs-types to v0.2.0
mkulke Mar 27, 2023
2313f32
TDX verifier: revert ccel change
Xynnn007 Mar 29, 2023
da2d639
Fix for pointer type error
tnakaike Mar 28, 2023
0fa0ea8
TDX | Update CCEL parse logic to support both TDVF and TD-Shim
jialez0 Mar 31, 2023
2541c2d
ci: add automatical release workflow for AS and RVPS
Xynnn007 Apr 7, 2023
cd31941
Dockerfile: add label to bind package
Xynnn007 Apr 7, 2023
8e84852
as-types | Derive Clone trait for AttestationResults
jialez0 Apr 13, 2023
a34cb1e
cleanup: simplify the logic by re-use the `tee_evidence` struct
chendave Apr 18, 2023
1c1da50
feat: add SGX verifier
Xynnn007 Feb 21, 2023
c4c6b95
Add initial support for an azure SNP vTPM verifier
mkulke Mar 15, 2023
329d77b
Do not use openssl for hashing
mkulke Mar 29, 2023
37cd1ca
Update src/verifier/az_snp_vtpm/mod.rs
mkulke Mar 29, 2023
9fee5fe
Add remark about TEE claim provenance
mkulke Mar 30, 2023
6c47d08
Update to az-snp-vtpm 0.2
mkulke Apr 26, 2023
dec37f7
Bundle milan chain
mkulke Apr 26, 2023
943d63a
Added tests
mkulke Apr 26, 2023
b648e83
Specify verifier feature for az-snp-vtpm dep
mkulke Apr 26, 2023
0308901
AS: Add API to set policy
jialez0 May 6, 2023
cd37eb7
Update kbs-types to upstream v0.3
mkulke May 11, 2023
4ed4ade
Add CCA as todo TEE
mkulke May 11, 2023
5e40ac2
cgo: update in-toto-golang and opa version
Xynnn007 May 17, 2023
40003c7
RVPS: fix tests in in-toto
Xynnn007 May 17, 2023
ca7dc3b
refactor: code structure of attestation-service
Xynnn007 May 18, 2023
559bc2b
Dockerfile: update as and rvps dockerfile due to new code structure
Xynnn007 May 18, 2023
b448ff8
docs: fix rvps docs due to new code structure
Xynnn007 May 18, 2023
94671c0
ci: update rego check ci
Xynnn007 May 18, 2023
d5257e2
docs: fix docs for toml
Xynnn007 May 18, 2023
eae2408
github: Enable dependabot
sameo May 22, 2023
7e94fbb
build(deps): Bump actions/checkout from 2 to 3
dependabot[bot] May 22, 2023
3d70b34
build(deps): Bump linux-raw-sys from 0.3.7 to 0.3.8
dependabot[bot] May 22, 2023
1afea70
Initial SNP Verifier
fitzthum Dec 7, 2022
a96e0e3
Re-add az-snp-vtpm verifier
mkulke Jun 1, 2023
67f7e1a
build(deps): Bump github.com/open-policy-agent/opa
dependabot[bot] Jun 6, 2023
202cb0c
TDX Verifier: Add fine grained parsedclaims inside evidence
Xynnn007 Jun 13, 2023
cc3f882
attestation-service: Add a CODEOWNERS file
sameo Jun 15, 2023
3c82bc9
AS: flatten the parsed claims
Xynnn007 Jun 16, 2023
f58dba9
Update TDX verifier dependencies to DCAP_1.16
jialez0 Jun 15, 2023
40afd3a
attestation-service: Explicitly set resolver to 2
sameo Jun 15, 2023
4610922
attestation-service: Update base64 to 0.21
sameo Jun 15, 2023
cb4565e
build(deps): Bump tracing-attributes from 0.1.24 to 0.1.25
dependabot[bot] Jun 21, 2023
32ba598
Dockerfile: add TPM runtime dependency
octaviansima Jun 22, 2023
0637640
build(deps): Bump path-clean from 0.1.0 to 1.0.1
dependabot[bot] Jun 22, 2023
f4e7428
Add tee type prefix to flattened claims
jialez0 Jun 16, 2023
9370d18
TDX verifier: Added parsing of Quote Header
jialez0 Jun 16, 2023
2007b6e
build(deps): Bump github.com/open-policy-agent/opa
dependabot[bot] Jun 30, 2023
93e2d58
build(deps): Bump sev from 1.1.0 to 1.2.0
dependabot[bot] Jul 3, 2023
f1781bb
as/verifier: Adapt to virtee/sev 1.2
jepio Jun 29, 2023
653c675
as: Enable snp feature of virtee/sev
jepio Jun 29, 2023
2e84184
as: Switch to az-cvm-tooling v0.2.3
jepio Jun 29, 2023
ee41fe7
as: Drop strict version requirement for virtee/sev
jepio Jul 3, 2023
c6b4549
deps: update kbs-types to 0.4
katexochen Jul 6, 2023
88a998d
deps: relax base64 version
katexochen Jul 7, 2023
b12b88e
build(deps): Bump scroll_derive from 0.11.0 to 0.11.1
dependabot[bot] Jul 5, 2023
a63a28e
build(deps): Bump libc from 0.2.146 to 0.2.147
dependabot[bot] Jul 10, 2023
1504a66
build(deps): Bump github.com/open-policy-agent/opa
dependabot[bot] Jul 28, 2023
8027795
dockerfile: update the builder image to rust:latest
Xynnn007 Aug 11, 2023
843524e
Add initial support for a hygon csv verifier
BaoshunFang Aug 16, 2023
4afadae
Add Token broker module and config structure.
jialez0 Jul 19, 2023
a07d0fc
Change the return value of the evaluate API to token
jialez0 Jul 20, 2023
836bb91
Update README.md
jialez0 Aug 7, 2023
2b4eba6
Include the policy evaluation report in the Attestation Results Token
jialez0 Aug 11, 2023
52d04aa
snp: accept DER and non-DER encoding for hwID
katexochen Aug 28, 2023
c923e61
as: Update csv-rs dep to rev bcf3bcc.
BaoshunFang Sep 1, 2023
6b30d26
New tee type: CCA (Confidential Compute Architecture)
chendave Apr 10, 2023
9ebbe49
Update az-snp-vtpm version to avoid vendor openssl
jialez0 Sep 5, 2023
2c2329d
build(deps): Bump actions/checkout from 3 to 4
dependabot[bot] Sep 4, 2023
1ddfc27
build(deps): Bump github.com/open-policy-agent/opa
dependabot[bot] Sep 7, 2023
5154eb6
as: Update csv-rs dep to rev 05fbacd.
BaoshunFang Sep 8, 2023
7cd0c22
Bump az-snp-vtpm dep to v0.3.0
mkulke Oct 1, 2023
4e416ce
Update Docker base image version and install openssl
jialez0 Oct 8, 2023
1902ea0
Validate the freshness of session nonce
chendave Oct 10, 2023
34772d8
alphabetical order of the deps
chendave Oct 16, 2023
4493e44
Replace `from_utc` with `DateTime::from_naive_utc_and_offset`
chendave Oct 16, 2023
62f1d6b
refactor: move attestation-service into a directory
Xynnn007 Nov 3, 2023
3c65f5c
docs: add README to the new repo
Xynnn007 Nov 3, 2023
17d1cdf
git: fix gitignore
Xynnn007 Nov 3, 2023
ccfde0b
as: update csv-rs dep
Xynnn007 Nov 3, 2023
ec1b8e1
refactor: reolve dep import paths
Xynnn007 Nov 3, 2023
0f09d90
ci: fix ci tests
Xynnn007 Nov 3, 2023
ae677cf
docker: update paths for dockefiles
Xynnn007 Nov 3, 2023
e1a94cd
repo: fix CODEOWNERS and LICENSE
Xynnn007 Nov 3, 2023
9c475a2
ci: add link check
Xynnn007 Nov 3, 2023
d5a694b
docs: fix links in docs
Xynnn007 Nov 3, 2023
23a10a6
kbs/Makefile: enforce use the current Cargo.lock
Xynnn007 Nov 3, 2023
ea48a21
kbs/tools: update kbs_protocol
Xynnn007 Nov 3, 2023
a791fa9
Makefile: fix build target directory
Xynnn007 Nov 3, 2023
3db20a5
kbs: fix Makefile
Xynnn007 Nov 6, 2023
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
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ updates:
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
directory: "/attestation-service/attestation-service/src/cgo" # Location of go.mod
schedule:
interval: "daily"
open-pull-requests-limit: 1
89 changes: 89 additions & 0 deletions .github/workflows/as-basic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: attestation-service basic build and unit tests
on:
push:
branches:
- "main"
paths:
- 'attestation-service/**'
- '.github/workflows/as_basic.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'attestation-service/**'
- '.github/workflows/as_basic.yml'
- 'Cargo.toml'
create:

jobs:
basic_ci:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust:
- stable
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Install OPA command line tool
run: |
curl -L -o opa https://openpolicyagent.org/downloads/v0.42.2/opa_linux_amd64_static
chmod 755 ./opa && cp opa /usr/local/bin

- name: OPA policy.rego fmt and check
run: |
opa fmt -d ./attestation-service/attestation-service/src/policy_engine/opa/default_policy.rego | awk '{ print } END { if (NR!=0) { print "run `opa fmt -w <path_to_rego>` to fix this"; exit 1 } }'
opa check ./attestation-service/attestation-service/src/policy_engine/opa/default_policy.rego

- name: Install protoc
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev

- name: Install TPM build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtss2-dev

- name: Install TDX build dependencies
run: |
sudo curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
sudo echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
sudo apt-get update
sudo apt-get install -y libsgx-dcap-quote-verify-dev

- name: Install Rust toolchain (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy

- name: Build
working-directory: attestation-service
run: |
make

- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: -p attestation-service -p as-types -p grpc-as -p rvps -p rvps-client

- name: Run cargo fmt check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -p attestation-service -p as-types -p grpc-as -p rvps -p rvps-client --check

- name: Run rust lint check
uses: actions-rs/cargo@v1
with:
command: clippy
# We are getting error in generated code due to derive_partial_eq_without_eq check, so ignore it for now
args: -p attestation-service -p as-types -p grpc-as -p rvps -p rvps-client -- -D warnings -A clippy::derive_partial_eq_without_eq
35 changes: 35 additions & 0 deletions .github/workflows/as-dockerbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: AS & RVPS Container image build test
on:
push:
branches:
- "main"
paths:
- 'attestation-service/**'
- '.github/workflows/as-dockerbuild.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'attestation-service/**'
- '.github/workflows/as-dockerbuild.yml'
- 'Cargo.toml'
create:

jobs:
basic_ci:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Code checkout
uses: actions/checkout@v4

- name: Build gRPC AS Container Image
run: |
DOCKER_BUILDKIT=1 docker build -t attestation-service:latest . -f attestation-service/Dockerfile.as

- name: Build RVPS Container Image
run: |
Docker_BUILDKIT=1 docker build -t rvps:latest . -f attestation-service/Dockerfile.rvps
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- name: Code checkout
uses: actions/checkout@v4

- name: Build Container Image
- name: Build KBS Container Image
run: |
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as . -f docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-openssl --build-arg KBS_FEATURES=coco-as-builtin,openssl,resource,opa . -f docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-grpc . -f docker/Dockerfile.coco-as-grpc
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as . -f kbs/docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-openssl --build-arg KBS_FEATURES=coco-as-builtin,openssl,resource,opa . -f kbs/docker/Dockerfile; \
DOCKER_BUILDKIT=1 docker build -t kbs:coco-as-grpc . -f kbs/docker/Dockerfile.coco-as-grpc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: e2e
name: KBS e2e

on:
pull_request:
Expand Down Expand Up @@ -42,17 +42,17 @@ jobs:
key: rust-${{ hashFiles('./Cargo.lock') }}

- name: Install dependencies
working-directory: test
working-directory: kbs/test
run: sudo make install-dependencies

- name: Build bins
working-directory: test
working-directory: kbs/test
run: make bins

- name: Set cc_kbc sample attester env
if: matrix.tee == 'sample'
run: echo "AA_SAMPLE_ATTESTER_TEST=1" >> "$GITHUB_ENV"

- name: Run e2e test
working-directory: test
working-directory: kbs/test
run: sudo -E make e2e-test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Cut Release
name: Cut KBS Release

on:
release:
Expand All @@ -23,7 +23,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile
file: ./kbs/docker/Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/confidential-containers/key-broker-service:built-in-as-${{ github.ref_name }}
Expand All @@ -32,7 +32,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ./docker/Dockerfile.coco-as-grpc
file: ./kbs/docker/Dockerfile.coco-as-grpc
platforms: linux/amd64
push: true
tags: ghcr.io/confidential-containers/key-broker-service:${{ github.ref_name }}, ghcr.io/confidential-containers/key-broker-service:latest
21 changes: 18 additions & 3 deletions .github/workflows/rust.yml → .github/workflows/kbs-rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: rust tests
name: kbs rust tests

on:
push:
branches: [ "main" ]
branches:
- "main"
paths:
- 'kbs/**'
- '.github/workflows/kbs-rust.yml'
- 'Cargo.toml'
pull_request:
branches: [ "main" ]
paths:
- 'kbs/**'
- '.github/workflows/kbs-rust.yml'
- 'Cargo.toml'

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -53,22 +61,29 @@ jobs:
sudo apt-get install -y libtdx-attest-dev libsgx-dcap-quote-verify-dev

- name: KBS Build [Default]
working-directory: kbs
run: make

- name: KBS Build [Built-in CoCo AS, OpenSSL]
working-directory: kbs
run: make HTTPS_CRYPTO=openssl

- name: KBS Build [gRPC CoCo AS, RustTLS]
working-directory: kbs
run: make COCO_AS_INTEGRATE_TYPE=grpc

- name: build KBS with amber AS mode
working-directory: kbs
run: make AS_TYPE=amber-as

- name: Lint
working-directory: kbs
run: make lint

- name: Format
working-directory: kbs
run: make format

- name: Test
working-directory: kbs
run: make check
28 changes: 28 additions & 0 deletions .github/workflows/link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: check links

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
checklinks:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Check links
uses: lycheeverse/lychee-action@v1
with:
args: "--cache --max-cache-age 1d ."
fail: true
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Cut Attestation Service Release

on:
release:
types: [published]

jobs:
build-and-push-images:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
-
name: Build and push attestation-service
uses: docker/build-push-action@v4
with:
context: .
file: ./attestation-service/Dockerfile.as
platforms: linux/amd64
push: true
tags: ghcr.io/confidential-containers/attestation-service:latest, ghcr.io/confidential-containers/attestation-service:${{ github.ref_name }}
-
name: Build and push reference-value-provider-service
uses: docker/build-push-action@v4
with:
context: .
file: ./attestation-service/Dockerfile.rvps
platforms: linux/amd64
push: true
tags: ghcr.io/confidential-containers/reference-value-provider-service:latest, ghcr.io/confidential-containers/reference-value-provider-service:${{ github.ref_name }}
21 changes: 1 addition & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
# Generated by Cargo
# will have compiled files and executables
/target/

# These are backup files generated by rustfmt
**/*.rs.bk

# Added by cargo

/target

data

# test
test/*
!test/Makefile
!test/data/

config/private.key
config/public.pub
target
6 changes: 5 additions & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@kbs-maintainers
# Global owner for changes not matched by more specific rules
* @sameo

/kbs/ @kbs-maintainers
/attestation-service/ @attestation-service-maintainers
Loading
Loading