Skip to content

New features to demo ota-community-edition#7

Open
d80ep08th wants to merge 5 commits into
uptane:v2from
d80ep08th:feature-gsoc22
Open

New features to demo ota-community-edition#7
d80ep08th wants to merge 5 commits into
uptane:v2from
d80ep08th:feature-gsoc22

Conversation

@d80ep08th
Copy link
Copy Markdown

  • 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
Copy Markdown
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 thread ota-ce/landing-page.conf
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
Copy Markdown
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.

Comment thread scripts/gen-device.sh
-config <(sed "s/\$ENV::DEVICE_UUID/${DEVICE_UUID}/g" "${CWD}/certs/client.cnf") \
-out "${device_dir}/${device_id}.csr"

Copy link
Copy Markdown
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