Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
api
|
|
|
copilot
Package copilotmanifest exposes the canonical Qeet ID copilot tool manifest as an embedded byte slice.
|
Package copilotmanifest exposes the canonical Qeet ID copilot tool manifest as an embedded byte slice. |
|
cmd
|
|
|
migrate
command
Command migrate is a thin wrapper around the golang-migrate CLI that reads the database URL from the environment (same as the server) and provides structured exit codes for use in Kubernetes init containers and Docker Compose one-shots.
|
Command migrate is a thin wrapper around the golang-migrate CLI that reads the database URL from the environment (same as the server) and provides structured exit codes for use in Kubernetes init containers and Docker Compose one-shots. |
|
scheduler
command
Command scheduler runs the Qeet ID scheduled maintenance jobs.
|
Command scheduler runs the Qeet ID scheduled maintenance jobs. |
|
seed
command
Command seed populates the database with a realistic, production-shaped set of workspaces so the admin UI has data to browse.
|
Command seed populates the database with a realistic, production-shaped set of workspaces so the admin UI has data to browse. |
|
server
command
|
|
|
worker
command
Command worker runs the Qeet ID background worker process.
|
Command worker runs the Qeet ID background worker process. |
|
domains
|
|
|
access/authentication
Package auth handles login, refresh, logout, and session storage.
|
Package auth handles login, refresh, logout, and session storage. |
|
access/authorization/abac
Package abac is the attribute-based access control (ABAC) engine for Qeet ID.
|
Package abac is the attribute-based access control (ABAC) engine for Qeet ID. |
|
access/authorization/authpolicy
Package authpolicy stores a tenant's authentication policy β password complexity rules and which login methods are permitted β and enforces the password rules on tenant-scoped password changes.
|
Package authpolicy stores a tenant's authentication policy β password complexity rules and which login methods are permitted β and enforces the password rules on tenant-scoped password changes. |
|
access/authorization/authzen
Package authzen implements the OpenID AuthZEN standard's core Policy Decision Point API β POST /access/v1/evaluation β as a thin, spec-shaped facade over Qeet ID's existing authorization engines (RBAC and ReBAC).
|
Package authzen implements the OpenID AuthZEN standard's core Policy Decision Point API β POST /access/v1/evaluation β as a thin, spec-shaped facade over Qeet ID's existing authorization engines (RBAC and ReBAC). |
|
access/authorization/policy
Package policy stores per-tenant security policy and offers an IP allow/deny middleware.
|
Package policy stores per-tenant security policy and offers an IP allow/deny middleware. |
|
access/authorization/rbac
Package rbac models permissions, per-tenant roles, role->permission bindings, and user assignments.
|
Package rbac models permissions, per-tenant roles, role->permission bindings, and user assignments. |
|
access/authorization/rebac
Package rebac is fine-grained, relationship-based authorization (ReBAC), a Zanzibar/OpenFGA-style subset: relationship tuples plus a recursive Check.
|
Package rebac is fine-grained, relationship-based authorization (ReBAC), a Zanzibar/OpenFGA-style subset: relationship tuples plus a recursive Check. |
|
access/mfa
Package mfa implements TOTP enrollment and verification plus a small set of recovery codes.
|
Package mfa implements TOTP enrollment and verification plus a small set of recovery codes. |
|
access/passkeys
Package passkey implements WebAuthn passkey registration and login on top of go-webauthn.
|
Package passkey implements WebAuthn passkey registration and login on top of go-webauthn. |
|
access/recovery
Package recovery handles forgot-password and magic-link login.
|
Package recovery handles forgot-password and magic-link login. |
|
access/risk/ipallow
Package ipallow manages per-tenant IP allow/deny rules (CIDR) and evaluates an address against them.
|
Package ipallow manages per-tenant IP allow/deny rules (CIDR) and evaluates an address against them. |
|
access/threat-detection/bot
Package bot scores incoming auth requests for bot-likeness and records the verdicts surfaced in the admin "Threats β Bots" screen.
|
Package bot scores incoming auth requests for bot-likeness and records the verdicts surfaced in the admin "Threats β Bots" screen. |
|
access/threat-detection/risk
Package risk aggregates bot-detection, impossible-travel, and device-reputation signals into a per-request risk level.
|
Package risk aggregates bot-detection, impossible-travel, and device-reputation signals into a per-request risk level. |
|
access/threat-detection/threat
Package threat records and surfaces security anomalies (the admin "Threats β Anomalies" screen).
|
Package threat records and surfaces security anomalies (the admin "Threats β Anomalies" screen). |
|
developer/agents
Package agent provides first-class AI-agent identities: non-human principals that authenticate with a secret and receive SHORT-LIVED, scoped access tokens marked actor_type="agent" (plus an agent_id claim).
|
Package agent provides first-class AI-agent identities: non-human principals that authenticate with a secret and receive SHORT-LIVED, scoped access tokens marked actor_type="agent" (plus an agent_id claim). |
|
developer/api-keys
Package apikey issues long-lived bearer tokens for programmatic access.
|
Package apikey issues long-lived bearer tokens for programmatic access. |
|
developer/auth-hooks
Package authhook implements synchronous Auth Actions/Hooks: a tenant plugs a policy endpoint into the login flow.
|
Package authhook implements synchronous Auth Actions/Hooks: a tenant plugs a policy endpoint into the login flow. |
|
developer/credentials/secrets
Package secret is a per-tenant secrets vault.
|
Package secret is a per-tenant secrets vault. |
|
developer/credentials/tokenvault
Package tokenvault is a per-tenant encrypted store for third-party OAuth tokens (Slack, GitHub, Google, or any custom OAuth2 provider an admin registers).
|
Package tokenvault is a per-tenant encrypted store for third-party OAuth tokens (Slack, GitHub, Google, or any custom OAuth2 provider an admin registers). |
|
developer/credentials/vc
Package vc issues and verifies W3C Verifiable Credentials in the JWT serialization (JWT-VC).
|
Package vc issues and verifies W3C Verifiable Credentials in the JWT serialization (JWT-VC). |
|
developer/service-accounts
Package principal manages OAuth-style service principals β non-human callers that authenticate via client_credentials grant and receive a short-lived service JWT scoped to a single tenant.
|
Package principal manages OAuth-style service principals β non-human callers that authenticate via client_credentials grant and receive a short-lived service JWT scoped to a single tenant. |
|
developer/webhooks
Package webhook lets tenants subscribe to domain events and receive a signed POST.
|
Package webhook lets tenants subscribe to domain events and receive a signed POST. |
|
federation/adminportal
Package adminportal implements a WorkOS-style "Admin Portal": a unique, time-limited, capability-scoped link a tenant admin can hand to their own IT admin β someone with no Qeet ID account and no console credentials at all β so that person can configure the tenant's SAML connection and/or rotate its SCIM provisioning token directly, without ever logging in.
|
Package adminportal implements a WorkOS-style "Admin Portal": a unique, time-limited, capability-scoped link a tenant admin can hand to their own IT admin β someone with no Qeet ID account and no console credentials at all β so that person can configure the tenant's SAML connection and/or rotate its SCIM provisioning token directly, without ever logging in. |
|
federation/ldap
Package ldap bridges on-prem Active Directory / LDAPv3 directories.
|
Package ldap bridges on-prem Active Directory / LDAPv3 directories. |
|
federation/oidc
Package oidc implements the OpenID Connect provider role for Qeet.
|
Package oidc implements the OpenID Connect provider role for Qeet. |
|
federation/saml
IdP side of SAML 2.0: Qeet ID acting as an identity **provider** (an SSO source) for downstream Service Providers.
|
IdP side of SAML 2.0: Qeet ID acting as an identity **provider** (an SSO source) for downstream Service Providers. |
|
federation/scim
SCIM 2.0 Groups (RFC 7643 Β§4.2, RFC 7644).
|
SCIM 2.0 Groups (RFC 7643 Β§4.2, RFC 7644). |
|
federation/social
Package social manages tenant-configured external identity providers (Google, Microsoft, Okta, ...) and the externally-issued identity rows that link to a Qeet user.
|
Package social manages tenant-configured external identity providers (Google, Microsoft, Okta, ...) and the externally-issued identity rows that link to a Qeet user. |
|
identity/domains
Package domainverify lets a tenant claim and prove ownership of an email domain (B2B SSO onboarding).
|
Package domainverify lets a tenant claim and prove ownership of an email domain (B2B SSO onboarding). |
|
identity/groups
Package group provides org/team hierarchy inside a tenant.
|
Package group provides org/team hierarchy inside a tenant. |
|
identity/invitations
Package invite lets a tenant admin invite an email address into a tenant with a pre-assigned role.
|
Package invite lets a tenant admin invite an email address into a tenant with a pre-assigned role. |
|
identity/organizations/branding
Package branding stores per-tenant theming and custom-domain settings.
|
Package branding stores per-tenant theming and custom-domain settings. |
|
identity/users
IdP migration adapters: teams leaving Auth0, AWS Cognito, or Azure AD B2C can feed that vendor's own user-export file straight into the bulk-import pipeline (runBulkImport in bulk.go) instead of hand-converting it to the generic BulkUserInput shape first.
|
IdP migration adapters: teams leaving Auth0, AWS Cognito, or Azure AD B2C can feed that vendor's own user-export file straight into the bulk-import pipeline (runBulkImport in bulk.go) instead of hand-converting it to the generic BulkUserInput shape first. |
|
identity/verification
Package verification handles "send-a-code, prove-you-own-it" flows for email and phone.
|
Package verification handles "send-a-code, prove-you-own-it" flows for email and phone. |
|
operations/activity
Package activity provides the Live Activity backend: a real-time SSE event stream and a cursor-paginated history endpoint sourced from two places:
|
Package activity provides the Live Activity backend: a real-time SSE event stream and a cursor-paginated history endpoint sourced from two places: |
|
operations/analytics
Package analytics powers the admin dashboard's KPI cards and charts.
|
Package analytics powers the admin dashboard's KPI cards and charts. |
|
operations/audit
Package audit records actor-visible mutations to audit.events.
|
Package audit records actor-visible mutations to audit.events. |
|
operations/audit/anomaly
Package anomaly scores the existing hash-chained audit.events log against a per-(tenant, actor) behavioral baseline, flagging deviations β a first-time action type, an unusual hour, a brand-new IP β for admin review.
|
Package anomaly scores the existing hash-chained audit.events log against a per-(tenant, actor) behavioral baseline, flagging deviations β a first-time action type, an unusual hour, a brand-new IP β for admin review. |
|
operations/billing
Package billing is an internal (no external processor) subscription model: a platform-managed plan catalogue with per-currency pricing, one subscription per tenant in a chosen currency, and internally-generated invoices.
|
Package billing is an internal (no external processor) subscription model: a platform-managed plan catalogue with per-currency pricing, one subscription per tenant in a chosen currency, and internally-generated invoices. |
|
operations/compliance
Evidence generation for SOC 2 and ISO 27001 compliance frameworks.
|
Evidence generation for SOC 2 and ISO 27001 compliance frameworks. |
|
operations/copilot
Package copilot is the AI copilot inference service for the admin console.
|
Package copilot is the AI copilot inference service for the admin console. |
|
operations/email-templates
Package emailtemplate manages per-tenant transactional email templates.
|
Package emailtemplate manages per-tenant transactional email templates. |
|
operations/notifications
Package notification is the in-app notification inbox shown in the admin header bell.
|
Package notification is the in-app notification inbox shown in the admin header bell. |
|
operations/ratelimits
Package ratelimits exposes per-tenant rate limit overrides over HTTP.
|
Package ratelimits exposes per-tenant rate limit overrides over HTTP. |
|
operations/retention
Package retention enforces per-tenant data-retention policy.
|
Package retention enforces per-tenant data-retention policy. |
|
operations/search
Package search is the universal cross-resource search service for the Qeet ID admin console.
|
Package search is the universal cross-resource search service for the Qeet ID admin console. |
|
operations/siem
Package siem streams a tenant's audit events to an external collector (Splunk HEC, Datadog logs, or a generic HTTP endpoint).
|
Package siem streams a tenant's audit events to an external collector (Splunk HEC, Datadog logs, or a generic HTTP endpoint). |
|
platform
|
|
|
ai
Package ai defines the provider-neutral inference abstraction for the AI copilot feature.
|
Package ai defines the provider-neutral inference abstraction for the AI copilot feature. |
|
ai/anthropic
Package anthropic is a thin streaming client for the Anthropic Messages API.
|
Package anthropic is a thin streaming client for the Anthropic Messages API. |
|
ai/openai
Package openai is a streaming OpenAI Chat Completions client that implements ai.Provider.
|
Package openai is a streaming OpenAI Chat Completions client that implements ai.Provider. |
|
api/rest/codes
Package codes generates short numeric codes (for OTP-by-email) and long random URL-safe tokens (for password-reset and magic links).
|
Package codes generates short numeric codes (for OTP-by-email) and long random URL-safe tokens (for password-reset and magic links). |
|
api/rest/errs
Package errs defines the canonical error vocabulary for qeet-id.
|
Package errs defines the canonical error vocabulary for qeet-id. |
|
api/rest/httpx
Package httpx provides reusable HTTP middleware and response helpers.
|
Package httpx provides reusable HTTP middleware and response helpers. |
|
api/rest/paging
Package paging holds shared helpers for opaque cursor-based pagination.
|
Package paging holds shared helpers for opaque cursor-based pagination. |
|
cache/ratelimit
Package ratelimit ships a token-bucket limiter keyed by string, used for in-process protection of unauth endpoints (login, magic link) and per-tenant / per-user / per-api-key throttling on authenticated endpoints.
|
Package ratelimit ships a token-bucket limiter keyed by string, used for in-process protection of unauth endpoints (login, magic link) and per-tenant / per-user / per-api-key throttling on authenticated endpoints. |
|
database/postgres
Package db owns the single pgx pool shared by every module.
|
Package db owns the single pgx pool shared by every module. |
|
database/postgres/dbutil
Package dbutil holds small helpers shared by repositories β JSONB decoding and dynamic UPDATE assembly β so each domain doesn't re-implement them.
|
Package dbutil holds small helpers shared by repositories β JSONB decoding and dynamic UPDATE assembly β so each domain doesn't re-implement them. |
|
database/postgres/pgxerr
Package pgxerr translates PostgreSQL driver errors into domain errs values so repositories don't each hand-roll pgconn error-code checks.
|
Package pgxerr translates PostgreSQL driver errors into domain errs values so repositories don't each hand-roll pgconn error-code checks. |
|
database/rlsctx
Package rlsctx carries the tenant scope for Postgres Row-Level Security through the request context.
|
Package rlsctx carries the tenant scope for Postgres Row-Level Security through the request context. |
|
events/outbox
Package outbox is the shared transactional outbox helper.
|
Package outbox is the shared transactional outbox helper. |
|
messaging/notifier
Package notifier delivers user-facing notifications (email, SMS).
|
Package notifier delivers user-facing notifications (email, SMS). |
|
observability/buildinfo
Package buildinfo exposes the binary's build metadata.
|
Package buildinfo exposes the binary's build metadata. |
|
observability/health
Package health exposes Kubernetes-shaped liveness and readiness probes.
|
Package health exposes Kubernetes-shaped liveness and readiness probes. |
|
observability/logging
Package logger provides a coloured slog handler for local development.
|
Package logger provides a coloured slog handler for local development. |
|
observability/metrics
Package metrics exposes Prometheus instrumentation: an HTTP middleware that records request count + latency (labelled by the chi route pattern, not the raw path, to keep cardinality bounded) and a /metrics handler.
|
Package metrics exposes Prometheus instrumentation: an HTTP middleware that records request count + latency (labelled by the chi route pattern, not the raw path, to keep cardinality bounded) and a /metrics handler. |
|
observability/tracing
Package tracing wires OpenTelemetry distributed tracing for the service.
|
Package tracing wires OpenTelemetry distributed tracing for the service. |
|
security/encryption
Package password hashes and verifies secrets with Argon2id β the modern, memory-hard default β while still verifying legacy bcrypt hashes so existing credentials keep working.
|
Package password hashes and verifies secrets with Argon2id β the modern, memory-hard default β while still verifying legacy bcrypt hashes so existing credentials keep working. |
|
security/encryption/totp
Package totp implements TOTP (RFC 6238) with HMAC-SHA1 and 6-digit codes.
|
Package totp implements TOTP (RFC 6238) with HMAC-SHA1 and 6-digit codes. |
|
security/hibp
Package hibp implements breached-password detection against the Have I Been Pwned "Pwned Passwords" range API using k-anonymity, so the plaintext password never leaves the process.
|
Package hibp implements breached-password detection against the Have I Been Pwned "Pwned Passwords" range API using k-anonymity, so the plaintext password never leaves the process. |
|
security/tokens
Package tokens issues and verifies the access & ID JWTs and the opaque refresh tokens.
|
Package tokens issues and verifies the access & ID JWTs and the opaque refresh tokens. |
|
workers
Package worker runs a set of named background workers with coordinated startup and graceful shutdown, so adding a worker is one Register call instead of hand-managing a WaitGroup.
|
Package worker runs a set of named background workers with coordinated startup and graceful shutdown, so adding a worker is one Register call instead of hand-managing a WaitGroup. |
|
tests
|
|
|
tools
|
|
|
benchmarks/jwt_signing
command
Benchmark JWT signing throughput.
|
Benchmark JWT signing throughput. |
|
openapi-split
command
Command openapi-split decomposes the canonical OpenAPI document into five self-contained, bounded-context specs under api/openapi/ β and merges them back into a single document for tooling (codegen) that wants one file.
|
Command openapi-split decomposes the canonical OpenAPI document into five self-contained, bounded-context specs under api/openapi/ β and merges them back into a single document for tooling (codegen) that wants one file. |
|
qa/route-audit
command
Command route-audit diffs every backend call-site in the console/login frontends against the authoritative OpenAPI route inventory, catching the bug class where a frontend calls a path the backend never registered (e.g.
|
Command route-audit diffs every backend call-site in the console/login frontends against the authoritative OpenAPI route inventory, catching the bug class where a frontend calls a path the backend never registered (e.g. |
Click to show internal directories.
Click to hide internal directories.