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§
- Credentials
Error - 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_ token Deprecated - init_
global_ action_ credentials - Initialize the global action credentials
- set_
global_ rpc_ secret - try_
get_ rpc_ token