Skip to content

Commit

Permalink
prod adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
maceip committed Oct 4, 2024
1 parent d576cf2 commit 315a64f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
24 changes: 24 additions & 0 deletions crates/notary/server/fixture/tee/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#tlsnotary server for testing <> gramine sgx
### notaryserverbuilds.azurecr.io/prod/sgx-notary

FROM notaryserverbuilds.azurecr.io/prod/gramine-deps AS teesdk

ARG TOOLCHAIN=1.81.0
ENV PATH=/root/.cargo/bin:/usr/local/musl/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

RUN set -eux \
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TOOLCHAIN \
&& rustup target add \
x86_64-unknown-linux-gnu


ARG TLSN_TAG=quote-presentation
ARG TLSN_FT=tee_quote
RUN git clone --depth 1 -b $TLSN_TAG https://github.com/tlsnotary/tlsn /tlsn && \
cargo build --release --bin notary-server --features $TLSN_FT --color always --manifest-path /tlsn/Cargo.toml
RUN cd tlsn/crates/notary/server/fixture/tee && gramine-sgx-gen-private-key && SGX=1 make

FROM notaryserverbuilds.azurecr.io/builder/gramine AS teetime
COPY --from=teesdk tlsn/crates/notary/server/fixture/tee tee
RUN mkdir /tee/config && cp /tee/config.yaml /tee/config/
ENTRYPOINT ["gramine-sgx", "/tee/notary-server"]
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ loader.env.RUST_BACKTRACE = "full"
fs.mounts = [
{ path = "/lib", uri = "file:{{ gramine.runtimedir() }}" },
{ path = "{{ arch_libdir }}", uri = "file:{{ arch_libdir }}" },
{ path = "/config/config.yaml", uri = "file:config.yaml" },
{ path = "/config/config.yaml", uri = "file:/tee/config.yaml" },
{ type = "encrypted", path = "/vault", uri = "file:vault", key_name = "_sgx_mrenclave" },

]
Expand All @@ -31,12 +31,10 @@ sgx.remote_attestation = "dcap"
sgx.max_threads = 64
sgx.enclave_size = "2G"
sys.disallow_subprocesses = true
#### turn this off in prod,
sys.enable_sigterm_injection = true


#### tlsn rev
sgx.isvprodid = 7
#### E
sgx.isvsvn = 45
#### F
sgx.isvsvn = 46

0 comments on commit 315a64f

Please sign in to comment.