All skills
adding-project-secret-api-key-auth
Wire a PostHog viewset action to accept project secret API key (PSAK) authentication.
- Part of PostHog/posthog
- 148 installs
- Developer Tools · Backend
When to use it
You have a project-scoped endpoint that should be callable by a service token instead of a logged-in user, and it currently only accepts session or personal API key auth.
For example
You say
Add PSAK auth to the endpoint run action in my PostHog viewset so a phs_ token with endpoint:read scope can call it.
You get
- Scope allowlist entries
- Authenticator and allowed actions
- PSAK-aware throttles
How it works
- Synthetic user has no real id and always fails permission checks, so object-level RBAC must be skipped for it.
- Standard personal key throttles skip PSAK requests, so per-key and per-team PSAK throttles are needed.
More Backend skills
See all- golang-pro19.8kWrites concurrent Go services with goroutines, channels, gRPC or REST, and profiles performance.
- php-pro16.4kBuilds modern PHP applications with strict typing, Laravel or Symfony, tests and REST or GraphQL APIs.
- cuopt-routing-api-python2.3kBuilds and solves vehicle routing, traveling salesman, and pickup-delivery problems in Python with cuOpt.
- cuopt-server-api-python2.2kStarts the cuOpt REST server and calls its endpoints from Python or curl.
Also in this pack
- react-doctor511Diagnoses and fixes React codebase health issues, including performance problems, security gaps and code quality.
- hogli267Explains the PostHog developer CLI and repo tooling for running, building, testing, and linting.
- clickhouse-migrations266Writes and modifies ClickHouse database migrations following project rules.
- survey-sdk-audit255Audits survey SDK features and version requirements, then implements survey changes across backend, UI, and SDKs.