buckets

package
v0.2.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: GPL-2.0, GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package buckets is the single owner of the AUTH-domain bbolt bucket names shared by the two packages that operate on one database file: the core store (internal/boltstore) bootstraps every bucket in its schema, and the auth store (internal/authstore) builds keys inside these. Both alias the constants here, so the former "MUST match" comment pair is now a by-construction guarantee instead of reviewer discipline (S15).

The core-domain bucket names stay in internal/boltstore/keys.go: they have exactly one consumer, so a shared home would be indirection without a second reader. If a third package ever needs them, they move here too.

Index

Constants

View Source
const (
	AuthUsers    = "auth_users"    // be64(id) -> userRec
	AuthPasskeys = "auth_passkeys" //nolint:gosec // G101: bbolt bucket name, not a credential
	AuthAPIKeys  = "auth_api_keys" //nolint:gosec // G101: bbolt bucket name, not a credential
)

Auth primary buckets.

View Source
const (
	IxUserName    = "ix_user_name"    // lower(username) -> be64(user_id)
	IxUserOIDC    = "ix_user_oidc"    // issuer 0x00 sub -> be64(user_id)
	IxPasskeyUser = "ix_passkey_user" // be64(user_id) 0x00 credential_id -> (empty)
	IxAPIKeyUser  = "ix_apikey_user"  //nolint:gosec // G101: bbolt bucket name, not a credential
)

Auth secondary (index) buckets.

Variables

This section is empty.

Functions

func Auth

func Auth() []string

Auth lists every auth-domain bucket, primaries then indexes — the set the core store bootstraps and the auth store's foundation test asserts exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL