Skip to content

ci: prune Docker publish workflows and telemetry secrets - #7699

Merged
kanadgupta merged 5 commits into
developfrom
kanad-claude/cli-secrets-audit-293866
Nov 19, 2026
Merged

kanadgupta merged 5 commits into
developfrom
kanad-claude/cli-secrets-audit-293866

Conversation

@kanadgupta

@kanadgupta kanadgupta commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Reduces the Actions secrets these workflows need.

  • Deletes publish-migra.yml and publish-pg-prove.yml, leaving the DOCKER_USERNAME and DOCKER_PASSWORD secrets unused on this branch. This is a trade-off. The workflows last pushed supabase/migra:3.0.1663481299 and supabase/pg_prove:3.36 to Docker Hub on 2024-01-02, and their run history has since expired. After this change the repo can no longer rebuild either image. The mirror workflow still copies the existing tags to public.ecr.aws, which supabase test db pulls. Neither image has changed in about two years, so we accept that. The Dependabot config comment now says those two images stay at their current pins.
  • Reads POSTHOG_ENDPOINT from a repository variable instead of a secret. The build bakes the endpoint into the published CLI, so it isn't sensitive. POSTHOG_API_KEY stays a secret.
  • Stops passing SENTRY_DSN to the build. Nothing has read it since the Go binary was removed.

Backport

#7701 brings the same cleanup to v2.x, with one difference: SENTRY_DSN stays a secret there. The v2 Go binary uses it to send an error report to Sentry when a user passes --create-ticket.

Linked issue

Part of CLI-3161

🤖 Generated with Claude Code

Remove the never-run migra and pg_prove Docker Hub publish workflows,
read the PostHog endpoint from a repository variable, and stop passing
the Sentry DSN that no current build reads.

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 AI Review

CLI reference prose guidance: not applicable (no reference sources changed).

Both reviewers identified the same release configuration issue. The fallback is confirmed, and the checkout does not show whether the new Actions variable has been provisioned. Coordinate the endpoint migration with the active v2.x maintenance branch, which still reads the endpoint secret and uses SENTRY_DSN in its Go build.

Findings

Severity Location Category Sources Claim
🟡 MINOR .github/workflows/build-cli-artifacts.yml:52 release-config claude+codex If POSTHOG_ENDPOINT is configured only as a secret, release builds succeed with an empty embedded endpoint. Without a runtime host override, the CLI silently uses https://eu.i.posthog.com, so opted-in telemetry can be sent to a different host than intended.

Stats

Claude findings: 1 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

@Coly010 Coly010 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

approving to unblock, just a couple of things

the publish workflows did actually run. supabase/migra:3.0.1663481299 and supabase/pg_prove:3.36 were pushed to Docker Hub on 2024-01-02, and the run history has just expired since then. mirror-image.yml only copies images from docker.io, so after this we've no way in the repo to rebuild either image, and test db still pulls pg_prove:3.36. i think that's probably fine since neither has changed in ~2 years, but can we reword the description so it reads as a trade-off rather than unused workflows?

if we're happy with that, the comment in .github/dependabot.yml about Dependabot bumping migra and pg_prove should probably change too, since nothing will publish new versions for it to find

not blocking: docs/telemetry.md still describes Sentry, with a SENTRY_DSN, as phase 1 "now". feel free to leave that for another PR

docs/telemetry.md described Sentry as the live telemetry backend. Analytics
and tracing are documented in apps/cli/docs, so ADR 0002 now links there.

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit c7112c1 against develop at 6a2e55a · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 230 ms 244 ms no real change (+6%, within normal variation)
supabase --help help 259 ms 254 ms no real change
supabase init init 225 ms 237 ms no real change (+6%, within normal variation)
supabase migration new bench migration-new 209 ms 222 ms no real change (+6%, within normal variation)
supabase config convert config-convert 217 ms 225 ms no real change
supabase config validate config-validate 215 ms 212 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 206 ms 215 ms no real change
supabase projects list projects-list 190 ms 189 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 211 ms 208 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.2 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 217-288 ms 199-345 ms +15 ms (+6%) within noise
supabase --help help 234-382 ms 226-321 ms -5 ms (-2%) within noise
supabase init init 206-377 ms 206-362 ms +13 ms (+6%) within noise
supabase migration new bench migration-new 194-239 ms 187-320 ms +13 ms (+6%) within noise
supabase config convert config-convert 180-276 ms 181-250 ms +8 ms (+4%) within noise
supabase config validate config-validate 192-267 ms 190-269 ms -3 ms (-1%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 193-229 ms 189-256 ms +10 ms (+5%) within noise
supabase projects list projects-list 174-281 ms 175-226 ms -1 ms (-1%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 192-267 ms 191-238 ms -3 ms (-1%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

kanadgupta and others added 2 commits November 19, 2026 10:53
This reverts commit c7112c1.

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
@kanadgupta kanadgupta changed the title ci: prune unused Docker publish workflows and telemetry secrets ci: prune Docker publish workflows and telemetry secrets Nov 19, 2026
@kanadgupta
kanadgupta enabled auto-merge November 19, 2026 19:08
kanadgupta added a commit that referenced this pull request Nov 19, 2026
… v2.x (#7701)

## Summary

Backports #7699 to `v2.x`, with one
difference.

- Deletes `cli-go-publish-migra.yml` and `cli-go-pg-prove.yml`, the
`v2.x` names for the Docker Hub publish workflows removed on `develop`.
This is the same trade-off as on `develop`: the images they last pushed
on 2024-01-02 (`supabase/migra:3.0.1663481299` and
`supabase/pg_prove:3.36`) stay published, but the repo can no longer
rebuild them.
- Reads `POSTHOG_ENDPOINT` from a repository variable instead of a
secret. `POSTHOG_API_KEY` stays a secret.
- **Difference:** `SENTRY_DSN` stays a secret here. The v2 Go binary
gets it at build time and uses it to send an error report to Sentry when
a user passes `--create-ticket`.

## Linked issue

Part of CLI-3161

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
@kanadgupta

Copy link
Copy Markdown
Member Author

the publish workflows did actually run. supabase/migra:3.0.1663481299 and supabase/pg_prove:3.36 were pushed to Docker Hub on 2024-01-02, and the run history has just expired since then. mirror-image.yml only copies images from docker.io, so after this we've no way in the repo to rebuild either image, and test db still pulls pg_prove:3.36. i think that's probably fine since neither has changed in ~2 years, but can we reword the description so it reads as a trade-off rather than unused workflows?

if we're happy with that, the comment in .github/dependabot.yml about Dependabot bumping migra and pg_prove should probably change too, since nothing will publish new versions for it to find

@Coly010 updated this PR to reflect these, thanks!

docs/telemetry.md still describes Sentry, with a SENTRY_DSN, as phase 1 "now". feel free to leave that for another PR

opened up #7725 to address this

@kanadgupta
kanadgupta added this pull request to the merge queue Nov 19, 2026
Merged via the queue into develop with commit 40711af Nov 19, 2026
41 checks passed
@kanadgupta
kanadgupta deleted the kanad-claude/cli-secrets-audit-293866 branch November 19, 2026 19:15
TFSebben pushed a commit to TFSebben/supabase_cli that referenced this pull request Nov 19, 2026
## Summary

Split out from supabase#7699, which stops
passing `SENTRY_DSN` to the build. Review there noted that this doc
still describes Sentry, with a `SENTRY_DSN`, as the current telemetry
backend.

- Removes `docs/telemetry.md`, an early design doc that described Sentry
and Grafana as the telemetry backends, along with collection and consent
designs the CLI never shipped. `apps/cli/docs/analytics.md` and
`apps/cli/docs/tracing-monitoring.md` document how analytics and tracing
work today.
- Points the "See Also" link in ADR 0002 at those two docs. The ADR's
decision text is unchanged.
- Drops a line in `analytics.md` that described Sentry as a current
telemetry system.

## Linked issue

Part of CLI-3161

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
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