Skip to main content

Crate rustfs_credentials

Crate rustfs_credentials 

Source

Structs§

Credentials
Credentials structure
Masked
A wrapper struct for masking sensitive strings in Debug implementations. It avoids allocating a new String just for formatting.

Enums§

CredentialsError
Error type for credentials operations

Constants§

DEFAULT_ACCESS_KEY
Default Access Key Default value: rustfsadmin Environment variable: RUSTFS_ACCESS_KEY Command line argument: –access-key Example: RUSTFS_ACCESS_KEY=rustfsadmin Example: –access-key rustfsadmin
DEFAULT_SECRET_KEY
Default Secret Key Default value: rustfsadmin Environment variable: RUSTFS_SECRET_KEY Command line argument: –secret-key Example: RUSTFS_SECRET_KEY=rustfsadmin Example: –secret-key rustfsadmin
EMBEDDED_POLICY_TYPE
IAM Policy Types Used to differentiate between embedded and inherited policies Example: “embedded-policy” or “inherited-policy” Default value: “embedded-policy”
ENV_RPC_SECRET
Environment variable for RPC authentication token Used to set the authentication token for RPC communication Example: RUSTFS_RPC_SECRET=your_token_here Default value: No default value. RUSTFS_SECRET_KEY value is recommended.
IAM_POLICY_CLAIM_NAME_SA
IAM Policy Claim Name for Service Account Used to identify the service account policy claim in JWT tokens Example: “sa-policy” Default value: “sa-policy”
INHERITED_POLICY_TYPE
IAM Policy Types Used to differentiate between embedded and inherited policies Example: “embedded-policy” or “inherited-policy” Default value: “inherited-policy”
RPC_SECRET_REQUIRED_MESSAGE
Public error returned when RPC authentication is not safely configured.
RPC_SECRET_REQUIRED_OPERATOR_MESSAGE
Operator-facing guidance for configuring RPC authentication safely.

Functions§

gen_access_key
Generates a random access key of the specified length.
gen_secret_key
Generates a random secret key of the specified length.
get_global_access_key
Get the global access key
get_global_access_key_opt
Get the global access key
get_global_action_cred
Get the global action credentials
get_global_secret_key
Get the global secret key
get_global_secret_key_opt
Get the global secret key
get_rpc_tokenDeprecated
init_global_action_credentials
Initialize the global action credentials
set_global_rpc_secret
try_get_rpc_token