Sebastian Unterschütz and Claude Opus 5.5
00658d49a2
feat(store): add monitors, regions, agents and check result hypertable
...
check_results has no row-level security because TimescaleDB refuses
compression and continuous aggregates on such tables. Every results
query takes org_id as a parameter, which a test enforces.
Refs #10 , #13
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 01:12:53 +01:00
Sebastian Unterschütz and Claude Opus 5.5
da128c5081
feat(store): add token lifetime limit and tokens.manage permission
...
The built-in Admin role gains tokens.manage.
Refs #48
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:55:14 +01:00
Sebastian Unterschütz and Claude Opus 5.5
ee09c497de
feat(store): add roles, role assignments, api tokens and invitations
...
Built-in roles are seeded with fixed ids and are read-only for every org.
Existing non-owner members receive the Viewer role.
Refs #6 , #7 , #8 , #9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:49:35 +01:00
Sebastian Unterschütz and Claude Opus 5.5
dbea42e7a5
feat(auth): add single-use totp recovery codes
...
Codes are stored as SHA-256 hashes and consumed with one conditional
update, so concurrent use of the same code succeeds at most once.
Refs #40
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:35:20 +01:00
Sebastian Unterschütz and Claude Opus 5.5
d1976ed57a
feat(store): add per-organization sso providers and linked identities
...
Identities are keyed by provider and subject. Both tables are tenant
scoped; org_id_by_slug resolves a slug before sign-in without opening a
broader scope.
Refs #4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:30:43 +01:00
Sebastian Unterschütz and Claude Opus 5.5
d20225982a
refactor: follow the google go style guide
...
Document every package and exported identifier, return the log level
from NewLogger instead of keeping it in a package variable, and stop
tests from mutating the argon2 parameters.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:18:02 +01:00
Sebastian Unterschütz and Claude Opus 5.5
dde7b890b8
feat(auth): persist preferred language per user and session
...
Refs #42
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-22 00:07:00 +01:00
Sebastian Unterschütz and Claude Opus 5.5
99e9b1e57d
feat(store): add totp columns, org totp policy and global scope
...
Orgs are created inside their own tenant scope, so signup needs no
system scope.
Refs #3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:55:23 +01:00
Sebastian Unterschütz and Claude Opus 5.5
ccc0fe58b8
feat(tenant): enforce tenant isolation with row-level security
...
Every query runs inside a transaction carrying app.org_id, app.user_id
or the explicit system scope. Without a scope no rows are visible.
Closes #2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:48:02 +01:00
Sebastian Unterschütz and Claude Opus 5.5
95da376ac1
feat(store): add users and org memberships with single owner per org
...
Refs #1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:48:02 +01:00
Sebastian Unterschütz and Claude Opus 5.5
018b24948e
feat(migrations): embed goose migrations with advisory locking
...
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
2026-11-21 23:33:28 +01:00