Skip to main content

Crate auth

Crate auth 

Source

Modules§

common 🔒
error
permission 🔒
user_info 🔒
user_provider 🔒

Structs§

DefaultPermissionChecker
The default permission checker implementation. It checks the permission mode of DefaultUserInfo.
PermissionAction
A named permission action.
PermissionTableTarget
A user-visible table target for permission checks.
PgScramSha256Verifier
StaticUserProvider

Enums§

AccessMode
The access mode of a named permission action.
Identity
Password
Authentication information sent by the client.
PermissionReq
PermissionResp
PermissionTableTargets
The result of resolving every table target in a permission request.
PgAuthInfo

Constants§

ALL_ACTIONS
All permission actions built into GreptimeDB.
DASHBOARD_DELETE
DASHBOARD_QUERY
DASHBOARD_SAVE
DEFAULT_PBKDF2_SHA256_ITERATIONS
DEFAULT_PBKDF2_SHA256_SALT_LEN
INFLUXDB_WRITE
JAEGER_QUERY
LOG_QUERY
LOG_WRITE
MAX_PBKDF2_SHA256_ITERATIONS
MAX_PBKDF2_SHA256_SALT_LEN
OPENTSDB_WRITE
OTLP_WRITE
PBKDF2_SHA256_HASH_LEN
PG_SCRAM_SHA256_KEY_LEN
PIPELINE_DELETE
PIPELINE_INSERT
PIPELINE_QUERY
PROMQL_QUERY
PROM_STORE_READ
PROM_STORE_WRITE
SEMANTIC_GRAPH_QUERY
Reading a telemetry table through the entity-graph derivation (greptime_private.semantic_entities / semantic_relationships); checked once per candidate source table with that table as the target.

Traits§

PermissionChecker
UserInfo
UserProvider

Functions§

auth_mysql
format_mysql_native_password_verifier
format_pbkdf2_sha256_password_verifier
format_pg_scram_sha256_password_verifier
mysql_native_password_hash
static_user_provider_from_option
user_provider_from_option
userinfo_by_name
construct a UserInfo impl with name use default username greptime if None is provided

Type Aliases§

HashedPassword
PermissionCheckerRef
UserInfoRef
pub type alias
UserProviderRef