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

New features to demo ota-community-edition #7

Open
wants to merge 5 commits into
base: v2
Choose a base branch
from

Conversation

d80ep08th
Copy link

  • configured https
  • new domain uptanedemo.org
  • Gateway to services via dgw.uptanedemo.org

- configured https for all services: director, deviceregistry etc.
- access to services via dgw.uptanedemo.org
- modified bash scripts to adapt to new configuration
- configured docker compose file
- nginx container to serve landing page
- added configuration for server in ota-ce dir
Copy link
Member

@tkfu tkfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't put all this demo-server-specific stuff in here; people still need to be able to run it themselves, locally, the way you did when you were starting the project. We talked about this weeks ago: you can do it with templating, or environment variables, or whatever. It doesn't matter the method, but you can't break the self-hosted community edition/ota-lith just to make the demo server work.

Comment on lines +1 to +19
server {
error_log /var/log/nginx/error.log info;
listen 7443 ssl;
server_name uptanedemo.org;
ssl_certificate /etc/ssl/gateway/server.chain.pem;
ssl_certificate_key /etc/ssl/gateway/server.key;
ssl_verify_client on;
ssl_verify_depth 10;
ssl_client_certificate /etc/ssl/gateway/ca.crt;

if ($ssl_client_s_dn ~ "CN=(.*)$") {
set $deviceUuid $1;
}
if ($ssl_client_s_dn !~ "CN=(.*)$") {
set $deviceUuid $ssl_client_s_dn;
}
set $deviceNamespace "default";

}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unique to the demo server--it doesn't belong in this repo.

@@ -18,7 +18,7 @@ openssl pkcs8 -topk8 -nocrypt -in "${device_dir}/pkey.ec.pem" -out "${device_dir
openssl req -new -key "${device_dir}/pkey.pem" \
-config <(sed "s/\$ENV::DEVICE_UUID/${DEVICE_UUID}/g" "${CWD}/certs/client.cnf") \
-out "${device_dir}/${device_id}.csr"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's generally considered polite to put whitespace/formatting changes in their own PR.

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.

2 participants