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

Dockerize the auth0-simulator #180

Open
dagda1 opened this issue Feb 3, 2022 · 2 comments
Open

Dockerize the auth0-simulator #180

dagda1 opened this issue Feb 3, 2022 · 2 comments
Assignees

Comments

@dagda1
Copy link
Contributor

dagda1 commented Feb 3, 2022

Having to install the auth0-simulator as a dev dependency is something we should try and avoid.

Creating a downloadable docker image that we could run something like this would make things a lot easier.

docker run -i --rm --security-opt seccomp=$HOME/chrome.json \
    -v myvol:/app \
    --name auth0-simulator \
    frontside/auth-simulator:latest

We could try something like this to make ssl configuration easier.

@cowboyd
Copy link
Member

cowboyd commented Feb 4, 2022

What does the user story look like for getting setup with SSL and a complete simulator?

@dagda1
Copy link
Contributor Author

dagda1 commented Feb 6, 2022

@cowboyd I linked to something I would like to spike in the above issue

https://dev.to/istarkov/fast-and-easy-way-to-setup-web-developer-certificates-450e

TLDR;

  • Register a DNS A record somewhere, something like A auth0-simulator.com 127.0.0.1
  • Use certbot to download the certs from letsencrypt
  • Point to these certs in https.ts rather than the mkcert certs.
      let ssl: SSLOptions = {
        key: fs.readFileSync(
          paths.ssl.keyFile
        ),
        cert: fs.readFileSync(paths.ssl.pemFile),
      } as const;

I think we need some way of being able to configure the certs and by either defaulting to mkcert or letsencrypt certs.

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

No branches or pull requests

2 participants