Skip to content

feat(auth): faable auth webhooks — list, get, create, update, test, rotate-secret, rm - #14

Merged
boyander merged 1 commit into
mainfrom
feat/auth-webhooks-cli
Oct 14, 2026
Merged

boyander merged 1 commit into
mainfrom
feat/auth-webhooks-cli

Conversation

@boyander

Copy link
Copy Markdown
Member

Manage Faable Auth webhooks from the CLI. Until now it took the dashboard or raw Management API calls.

faable auth webhooks create --url https://app.example.com/api/webhooks/faable-auth -e user.created
faable auth webhooks test <id>          # signed ping; exit 1 if the endpoint does not answer 2xx
faable auth webhooks rotate-secret <id> # previous secret valid 24 h
faable auth webhooks update <id> --no-enabled
faable auth webhooks list | get <id> | rm <id>
  • The signing secret is printed once, with the warning that it is never shown again. --json returns it for scripts.
  • Unknown events are refused by the server, which lists the valid ones.
  • Email subscriptions share the resource and are left out of list.

Tested against the Staff project's tenant with a throwaway webhook pointed at example.com, deleted afterwards: create → list → get → test (HTTP 405 reported, exit 1) → update (paused) → unknown event refused → rotate-secret → rm.

First use: the Fundación signup sends its inscription email from a user.created webhook.

…otate-secret, rm

Webhooks (signed notifications of tenant events such as user.created) could
only be managed from the dashboard or raw Management API calls. Now:

- create --url https://… -e user.created prints the signing secret once
  (--json for scripts), --secret to bring your own;
- test sends a signed ping and exits 1 when the endpoint does not answer 2xx;
- rotate-secret keeps the previous secret valid 24 h and says so;
- update --url / -e / --[no-]enabled, rm with confirmation.

Email subscriptions share the resource and are left out of list.
@boyander
boyander merged commit e56b959 into main Oct 14, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@boyander
boyander deleted the feat/auth-webhooks-cli branch October 14, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant