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

📌 use mse-base 20230810124352 #32

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion data_anonymization_s3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
2 changes: 1 addition & 1 deletion data_anonymization_s3/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-anonymization:20230721121707"
docker = "ghcr.io/cosmian/mse-anonymization:20230810125234"
secrets = "secrets.json"
2 changes: 1 addition & 1 deletion digit_recognition/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "Flask==2.2.2" \
Expand Down
6 changes: 3 additions & 3 deletions digit_recognition/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<form>
<h1 class="h3 mb-3 fw-bold">Confidential Digit Recognition</h1>
<div class="form-floating mb-3">
<input type="text" class="form-control" id="url" value="xxx.cosmian.app" />
<input type="text" class="form-control" id="url" value="xxx.cosmian.io" />
<label for="url">Domain name of your deployed app</label>
</div>
<div class="form-floating mb-3">
Expand Down Expand Up @@ -114,7 +114,7 @@ <h1 class="h3 mb-3 fw-bold">Confidential Digit Recognition</h1>
body: JSON.stringify({
data: data,
domain_name: $("#url").val(),
}),
}),
headers: {
"Content-Type": "application/json",
},
Expand All @@ -141,4 +141,4 @@ <h1 class="h3 mb-3 fw-bold">Confidential Digit Recognition</h1>
crossorigin="anonymous"></script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion digit_recognition/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-tensorflow:20230720104852"
docker = "ghcr.io/cosmian/mse-tensorflow:20230810125236"
2 changes: 1 addition & 1 deletion fastapi_helloworld/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "fastapi==0.92.0"
2 changes: 1 addition & 1 deletion fastapi_helloworld/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-fastapi:20230720104850"
docker = "ghcr.io/cosmian/mse-fastapi:20230810125234"
2 changes: 1 addition & 1 deletion helloworld/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
2 changes: 1 addition & 1 deletion helloworld/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-flask:20230720104849"
docker = "ghcr.io/cosmian/mse-flask:20230810125234"
2 changes: 1 addition & 1 deletion merge_join/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
6 changes: 3 additions & 3 deletions merge_join/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ If you want to test with MSE:

```console
$ # write SGX self-signed certificate to /tmp
$ openssl s_client -showcerts -connect XXX.cosmian.app:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/tmp/cert.pem
$ openssl s_client -showcerts -connect XXX.cosmian.io:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/tmp/cert.pem
$ # install intel-sgx-ra to do remote attestation
$ pip3 install intel-sgx-ra
$ sgx-ra-verify certificate --path /tmp/cert.pem # SGX Remote Attestation
$ # run with self-signed certificate as CA bundle
$ deno run --cert /tmp/cert.pem --allow-net --allow-read --allow-write client.ts https://XXX.cosmian.app
$ deno run --cert /tmp/cert.pem --allow-net --allow-read --allow-write client.ts https://XXX.cosmian.io
```

*/
Expand All @@ -33,7 +33,7 @@ async function push(url: string, filePath: string) {
const f = await Deno.readFile(filePath);
const file = new File([f], fileName);
const form = new FormData();

form.append("file", file, fileName);

const response = await fetch(url, {
Expand Down
2 changes: 1 addition & 1 deletion merge_join/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-ds:20230720104849"
docker = "ghcr.io/cosmian/mse-ds:20230810125234"
2 changes: 1 addition & 1 deletion path/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
2 changes: 1 addition & 1 deletion path/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-flask:20230720104849"
docker = "ghcr.io/cosmian/mse-flask:20230810125234"
secrets = "secrets.json"
2 changes: 1 addition & 1 deletion sentiment_analysis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "Flask==2.2.2" \
Expand Down
2 changes: 1 addition & 1 deletion sentiment_analysis/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-nlp:20230720104849"
docker = "ghcr.io/cosmian/mse-nlp:20230810125235"
2 changes: 1 addition & 1 deletion yaos_millionaires/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
6 changes: 3 additions & 3 deletions yaos_millionaires/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ If you want to test with MSE:

```console
$ # write SGX self-signed certificate to /tmp
$ openssl s_client -showcerts -connect XXX.cosmian.app:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/tmp/cert.pem
$ openssl s_client -showcerts -connect XXX.cosmian.io:443 </dev/null 2>/dev/null | openssl x509 -outform PEM >/tmp/cert.pem
$ # install intel-sgx-ra to do remote attestation
$ pip3 install intel-sgx-ra
$ sgx-ra-verify certificate --path /tmp/cert.pem # SGX Remote Attestation
$ # run with self-signed certificate as CA bundle
$ deno run --cert /tmp/cert.pem --allow-net client.ts https://XXX.cosmian.app
$ deno run --cert /tmp/cert.pem --allow-net client.ts https://XXX.cosmian.io
```

*/

interface Maximum {
readonly max: number,
readonly max: number,
}

async function reset(url: string) {
Expand Down
2 changes: 1 addition & 1 deletion yaos_millionaires/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-flask:20230720104849"
docker = "ghcr.io/cosmian/mse-flask:20230810125234"
2 changes: 1 addition & 1 deletion yaos_millionaires_trust_owner/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/cosmian/mse-base:20230720095554
FROM ghcr.io/cosmian/mse-base:20230810124352

RUN . /opt/venv/bin/activate && \
pip3 install "flask==2.2.2" \
Expand Down
6 changes: 3 additions & 3 deletions yaos_millionaires_trust_owner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ In that scenario, the app owner provides the SSL certificate related to its doma
[certificate]
private_key="key.pem"
certificate="cert.pem"
domain_name="demo.owner.app"
domain_name="demo.owner.io"
```

You need a valid certificate signed by a trust authority if you want your microservice to work in web browsers.

As an example, you can use ACME protocol and DNS-01 method with Let's Encrypt to get a trusted certificate:

```console
$ sudo certbot certonly --dns-ovh --dns-ovh-credentials ovhapi.conf -d demo.owner.app -m [email protected] -n --agree-tos
$ sudo certbot certonly --dns-ovh --dns-ovh-credentials ovhapi.conf -d demo.owner.io -m [email protected] -n --agree-tos
```

Also add a new `CNAME` record in your DNS registry for `demo.owner.app` to `proxy.cosmian.com` prior to the app deployment.
Also add a new `CNAME` record in your DNS registry for `demo.owner.io` to `proxy.cosmian.com` prior to the app deployment.
This domain name will be used for `mse deploy`.

## Deploy your application
Expand Down
4 changes: 2 additions & 2 deletions yaos_millionaires_trust_owner/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<form>
<h1 class="h3 mb-3 fw-bold">Confidential Yaos Millionaires</h1>
<div class="form-floating mb-3">
<input type="text" class="form-control" id="url" value="demo.cosmian.app" />
<input type="text" class="form-control" id="url" value="demo.cosmian.io" />
<label for="url">Insert your domain name</label>
</div>
<div class="form-floating mb-3">
Expand Down Expand Up @@ -129,4 +129,4 @@ <h1 class="h3 mb-3 fw-bold">Confidential Yaos Millionaires</h1>
crossorigin="anonymous"></script>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion yaos_millionaires_trust_owner/mse.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ project = "default"
hardware = "4g-eu-001"
code = "mse_src"
tests = "tests"
docker = "ghcr.io/cosmian/mse-flask:20230720104849"
docker = "ghcr.io/cosmian/mse-flask:20230810125234"

[cloud.ssl]
domain_name = "demo.owner.com"
Expand Down