Registry Mirror
Skip to content

Conversation

@muskanbandta23

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes the ZopDay button I added in #801. It did not start a working instance, and a user who clicked it on 24 Nov got a failed deploy.

Two things were wrong with the old link:

  • It pointed at quay.io/authorizer/authorizer:latest, which is now v2. v2 reads its settings only from command-line flags (per MIGRATION.md), and a deploy button can only pass an image, a port and env vars, so the container prints its help text and exits.
  • It used port 8000, while the image serves on 8080.

The new link deploys quay.io/authorizer/authorizer:1.4.4 (the last release that reads env vars) on port 8080, with DATABASE_TYPE=sqlite and DATABASE_URL=data.db preset, so it starts with no extra setup. I tested the exact link: the instance comes up and opens the admin dashboard, and /health returns OK.

SQLite inside the container is meant for trying Authorizer out. For production, set DATABASE_TYPE / DATABASE_URL to a real database in the deploy screen before deploying. Once ZopDay can pass start arguments, I will send a follow-up that moves the button to v2.

Try it out: https://zop.dev/zopday/app/deploy?utm_source=github&utm_medium=one_click_pr&utm_content=authorizer

One-Click Deploy with ZopDay: https://zop.dev/zopday/oss?utm_source=github&utm_medium=one_click_pr&utm_content=authorizer

Which issue(s) does this PR fix?

None filed. It fixes the button from #801.

If this PR affects any API reference documentation, please share the updated endpoint references

No API change. README.md only, one line changed.

@lakhansamani

Copy link
Copy Markdown
Contributor

Thank you @muskanbandta23 for tracking this down and testing the exact link! You're right that :latest (v2) can't start from a deploy button, since v2 is configured only through CLI flags. Merging this so the button works again today. We'll follow up with a separate PR to move it to a v2 image, because 1.4.x no longer receives security fixes. 🙏

@lakhansamani
lakhansamani merged commit bb9979b into authorizerdev:main Nov 26, 2026
3 checks passed
@lakhansamani

Copy link
Copy Markdown
Contributor

Follow-up landed in #935: the ZopDay button now uses a v2 image, ghcr.io/authorizerdev/authorizer-oneclick (https://github.com/authorizerdev/authorizer-oneclick), which maps env vars to v2's CLI flags so a deploy button can start it. Thanks again @muskanbandta23 for flagging the broken button!

@lakhansamani

Copy link
Copy Markdown
Contributor

Hi @muskanbandta23, a quick update on the approach we've taken for ZopDay, since your PR started it.

Why not pin 1.4.x: 1.4.4 is affected by several published advisories (for example GHSA-h29v-hj44-q8cv, GHSA-29rf-f4vv-pvq6 and GHSA-845v-5ggv-pwfp), so a one-click button shouldn't start it. We still merged your fix first so the button worked in the meantime.

What we did instead: v2 can only be configured through CLI flags, and ZopDay's deploy link can only set an image, a port and env vars. So we published a small wrapper image in a new repo, authorizerdev/authorizer-oneclick:

  • ghcr.io/authorizerdev/authorizer-oneclick:<version>, built FROM quay.io/authorizer/authorizer:<version> for amd64 and arm64.
  • It maps env vars to v2's flags, using the same names as our Railway and Render templates.
  • With no env vars at all it starts on SQLite. On first boot it generates the client ID and secret, JWT secret, encryption key and admin secret, and stores them next to the database so restarts keep working. The generated admin secret is printed once, with a warning to change it. No secrets ever go in the public link.
  • Set AUTHORIZER_URL to the deployment's public URL. Until then, email links and OIDC discovery point at localhost.
  • It's bumped on every Authorizer release by our release script, starting with 2.4.9.

The README button now points at it (#935, which credits your original fix). If you're in touch with the ZopDay team: the button would be even nicer if the link could pre-fill AUTHORIZER_URL with the deployment's public URL. Thanks again for flagging this! 🙏

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