Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/pin-v0-23.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"seamless-cli": minor
---

New projects scaffold Seamless Auth API v0.23.0, the admin dashboard v0.14.0 and the starter templates v0.22.0, so a fresh project has roles and permissions in its tokens, the starters' permission guard demo, and the console's Roles and Integrations pages. Existing projects keep the images they were scaffolded with.
4 changes: 4 additions & 0 deletions scripts/cli-commands-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ seamless org members remove "$org_id" "$grace_id" --force >/dev/null
members | jq -e --arg g "$grace_id" 'any(.[]; .userId == $g) | not' >/dev/null ||
fail "members remove left the member in place."
seamless org members add "$org_id" --email grace@example.com --roles member >/dev/null
# Since auth server v0.23 a membership can only hold a role from the catalogue.
seamless roles create billing --description "Manages billing" >/dev/null
seamless roles list --kind organization --json | jq -e 'any(.[]; .name == "billing")' >/dev/null ||
fail "roles create did not add billing to the organization role catalogue."
seamless org members update "$org_id" "$grace_id" --roles member,billing >/dev/null
members | jq -e --arg g "$grace_id" \
'any(.[]; .userId == $g and (.roles | sort) == ["billing", "member"])' >/dev/null ||
Expand Down
16 changes: 8 additions & 8 deletions src/core/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ export const POSTGRES_IMAGE = "postgres:18";
// bumped, because a tag can be moved and what it names is then built and run on the
// developer's machine. Bump them together: `npm run check:templates-pin` (run in CI)
// checks every pin in this file against its tag and fails when one disagrees.
export const SEAMLESS_AUTH_API_VERSION = "v0.21.0";
export const SEAMLESS_AUTH_API_VERSION = "v0.23.0";

export const SEAMLESS_AUTH_API_COMMIT = "930d4dc812df051b948a5bd138871f625900f1eb";
export const SEAMLESS_AUTH_API_COMMIT = "afd4495c2af3f2be709d4f8802124870382a7716";

export const SEAMLESS_AUTH_API_IMAGE_DIGEST =
"sha256:5765de03b10d348da047e50407fcb7109f2a6dae64ddde86a1a6d0b92575dfa1";
"sha256:c32b2e84a32b2b5a2fd69112453090f62a89226e81f86cf2d06d49ec9fafc2c9";

export const SEAMLESS_AUTH_API_IMAGE = `ghcr.io/fells-code/seamless-auth-api:${SEAMLESS_AUTH_API_VERSION}@${SEAMLESS_AUTH_API_IMAGE_DIGEST}`;

export const SEAMLESS_AUTH_ADMIN_DASHBOARD_VERSION = "v0.13.0";
export const SEAMLESS_AUTH_ADMIN_DASHBOARD_VERSION = "v0.14.0";

export const SEAMLESS_AUTH_ADMIN_DASHBOARD_IMAGE_DIGEST =
"sha256:c6e4490d15e77f3c86d900f4a08c6ddf7f5f1da06613f6467ae325bf06a7ce97";
"sha256:78baccc3a240c7a9474e6b9a8bf48e65281e2fdd6fcff835043a379437427c90";

export const SEAMLESS_AUTH_ADMIN_DASHBOARD_IMAGE = `ghcr.io/fells-code/seamless-auth-admin-dashboard:${SEAMLESS_AUTH_ADMIN_DASHBOARD_VERSION}@${SEAMLESS_AUTH_ADMIN_DASHBOARD_IMAGE_DIGEST}`;

Expand All @@ -33,14 +33,14 @@ export const SEAMLESS_AUTH_ADMIN_DASHBOARD_REPO =

export const SEAMLESS_AUTH_ADMIN_DASHBOARD_REF = SEAMLESS_AUTH_ADMIN_DASHBOARD_VERSION;

export const SEAMLESS_AUTH_ADMIN_DASHBOARD_COMMIT = "a331a4a879a689892491ef2a62a735b295b8852b";
export const SEAMLESS_AUTH_ADMIN_DASHBOARD_COMMIT = "df2a8b78f7a8eb7adeec67e900d89cbd1937c6dd";

// The starter templates monorepo the CLI scaffolds from. The tag names the release;
// the download is pinned to the commit it resolved to when bumped. Override with
// SEAMLESS_TEMPLATES_REF (used as given, unpinned), or point at a local checkout with
// SEAMLESS_TEMPLATES_DIR.
export const SEAMLESS_TEMPLATES_REPO = "fells-code/seamless-templates";

export const SEAMLESS_TEMPLATES_REF = "v0.21.2";
export const SEAMLESS_TEMPLATES_REF = "v0.22.0";

export const SEAMLESS_TEMPLATES_COMMIT = "c8eef215133032ddf58f694e484a24b591405562";
export const SEAMLESS_TEMPLATES_COMMIT = "722881655f92c06b815e0591d8633d77e6b7f70f";
Loading