For the complete documentation index, see llms.txt. This page is also available as Markdown.

weka security

Security-related commands.

weka security

weka security ca-cert

Manage trusted CA certificate for cluster.

weka security ca-cert

weka security ca-cert download

Download the cluster custom certificate.

weka security ca-cert download <path>
Parameter
Description

path*

Path to save the downloaded certificate.

weka security ca-cert reset

Unset custom CA signed certificate from cluster.

weka security ca-cert reset

weka security ca-cert set

Add a custom certificate to the certificates list. If a custom certificate is already set, this command updates it.

weka security ca-cert set --cert-file <string>
Parameter
Description

--cert-file <string>*

Path to certificate file.

weka security ca-cert status

Show the cluster CA certificate status and certificate.

weka security cors-trusted-sites

Manage the sites trusted for cross origin resource sharing.

weka security cors-trusted-sites add

Add a site to the set of sites trusted for cross origin resource sharing.

Parameter
Description

site*

Site to trust for cross origin resource sharing.

weka security cors-trusted-sites list

List the set of sites trusted for cross origin resource sharing.

Columns: _

weka security cors-trusted-sites remove

Remove a site from the set of sites trusted for cross origin resource sharing.

Parameter
Description

site*

Site to remove from the trusted list.

weka security cors-trusted-sites reset

Reset the set of sites trusted for cross origin resource sharing.

weka security gui-idle-timeout

Manage GUI session idle timeout settings.

weka security gui-idle-timeout reset

Reset the GUI session idle timeout to default values.

weka security gui-idle-timeout set

Set the GUI session idle timeout.

Parameter
Description

duration*

Idle time before automatic logout.

weka security gui-idle-timeout show

Show the GUI session idle timeout.

weka security kms

Show the currently configured key management service settings.

weka security kms reset

Reset external KMS configurations. Fails if any encrypted filesystems rely on the KMS unless --force or --allow-downgrade is specified.

Parameter
Description

--allow-downgrade

Allow downgrading encrypted filesystems to local encryption instead of a KMS.

-f, --force

For tenant KMS deletion, switch filesystems to the cluster-wide KMS. Requires cluster KMS to exist.

weka security kms rewrap

Rewrap all master filesystem keys using the configured KMS. Use this to rewrap with a rotated KMS key, or to change wrapping to the newly-configured KMS.

Parameter
Description

--all

Rewrap all filesystem keys.

--convert-to-cluster-key-on-fs

Convert all encrypted filesystems to use the cluster key.

-f, --force

Force action. Perform this action without further confirmation.

--new-key-uid <string>

Unique identifier for the new key to wrap filesystem keys with. KMIP only.

weka security kms scope

Print the effective KMS type and scope (Cluster or Tenant) for the specified tenant (defaults to the current user's tenant).

weka security kms set

Configure the active key management service.

weka security kms set kmip

Configure the active key management service to use an external KMIP service.

Parameter
Description

address*

Server address, usually a hostname:port or URL.

key-identifier*

Key UID to secure the filesystems with.

--client-cert <string>*

Path to the client certificate PEM file.

--client-key <string>*

Path to the client key PEM file.

--ca-cert <string>

Path to a CA certificate PEM file for the KMIP server.

--convert-to-cluster-key-on-fs

Convert all encrypted filesystems to use the cluster key.

--network-space-id <uint16>

Network space ID in which to run the KMS connector. Defaults to the host network namespace.

weka security kms set vault

Configure the active key management service to use an external HashiCorp Vault.

Parameter
Description

address*

Server address, usually a hostname:port or URL.

key-name*

Key name to secure the filesystems.

--auth-path <string>

Custom auth path URL prefix.

--convert-to-cluster-key-on-fs

Convert all encrypted filesystems to use the cluster key.

--kubernetes-role <string>

Kubernetes role for Vault authentication.

--namespace <string>

Namespace in the Vault.

--network-space-id <uint16>

Network space ID in which to run the KMS connector. Defaults to the host network namespace.

--role-id <string>

Role ID to access the KMS.

--secret-id <string>

Secret ID to access the KMS (required with --role-id).

--token <string>

API token to access the KMS.

--transit-path <string>

Custom transit path URL prefix.

weka security lockout-config

Manage the account lockout parameters, used when a user fails logging in too many times.

weka security lockout-config reset

Reset the number of failed attempts before lockout and the duration of lock to defaults.

weka security lockout-config set

Configure the number of failed attempts before lockout and the duration of lock.

Parameter
Description

--failed-attempts <uint8>

Maximum failed attempts. Number of consecutive failed logins before user account locks out.

--lockout-duration <duration>

Lockout duration. How long the account should be locked out for after failed logins.

weka security lockout-config show

Show the number of failed attempts before lockout and the duration of lock.

Columns: lockout_duration, num_failed_logins

weka security login-banner

Manage the login banner displayed before authenticating.

weka security login-banner disable

Disable the login banner.

weka security login-banner enable

Enable the login banner.

weka security login-banner reset

Reset the login banner back to default state (empty).

weka security login-banner set

Set the login banner text.

Parameter
Description

text*

Text banner to be displayed before the user authenticates.

weka security login-banner show

Show the current login banner.

weka security policy

Manage security policies, used for controlling access to cluster resources.

weka security policy add

Add a new security policy.

Parameter
Description

name*

Name of the new security policy.

--action <security-action>

Whether access is granted or denied when the security policy matches. Valid values: allow, deny.

--anon-gid <uint32>

Anonymous group ID to which accesses are squashed.

--anon-uid <uint32>

Anonymous user ID to which accesses are squashed.

--description <string>

Security policy description.

--ips <strings>…

IPs (or ranges of IPs) to which the security policy applies. Multiple values may be supplied separated by commas, or the option may be repeated.

--read-only <on-off>

The security policy allows read-only mounts only.

--roles <user-roles>…

User roles to which the security policy applies. Used only for administrative interfaces. Multiple values may be supplied separated by commas, or the option may be repeated. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

--squash-mode <squash-mode>

Dictates whether user and group IDs accessing mounted filesystems are squashed. If 'root' then converts accesses by root (UID 0/GID 0) to the anonymous UID and GID. If 'all', then converts all accesses. Valid values: none, root, all.

weka security policy duplicate

Duplicates an existing security policy, creating a new one.

Parameter
Description

policy*

Policy ID or name of the policy to clone.

new-name*

Name for the new policy.

weka security policy join

Manage security policies enforced when containers join the cluster.

weka security policy join attach

Add security policies to those applied when containers join the cluster.

Parameter
Description

policies*…

Security policies to apply, by name or ID.

-b, --backend

Apply to backend containers.

-c, --client

Apply to client containers.

-f, --force

Bypass safeguards when updating. May disrupt cluster members.

weka security policy join detach

Remove security policies from those applied when containers join the cluster.

Parameter
Description

policies*…

Security policies to apply, by name or ID.

-b, --backend

Apply to backend containers.

-c, --client

Apply to client containers.

-f, --force

Bypass safeguards when updating. May disrupt cluster members.

weka security policy join list

List security policies applied when containers join the cluster.

Parameter
Description

-b, --backend

Apply to backend containers.

-c, --client

Apply to client containers.

Columns: mode, position, uid, id, name

weka security policy join reset

Remove all join security policies for the specified container mode.

Parameter
Description

-b, --backend

Apply to backend containers.

-c, --client

Apply to client containers.

weka security policy join set

Replace all join security policies for the specified container mode.

Parameter
Description

policies*…

Security policies to apply, by name or ID.

-b, --backend

Apply to backend containers.

-c, --client

Apply to client containers.

-f, --force

Bypass safeguards when updating. May disrupt cluster members.

weka security policy list

Show the list of security policies.

Parameter
Description

--action <security-action>

Only show policies that match a specific action. Valid values: allow, deny.

--ips <ip-ranges>…

Only show policies include specific IP address ranges. Multiple values may be supplied separated by commas, or the option may be repeated.

--roles <user-roles>…

Only show policies naming these user roles. Multiple values may be supplied separated by commas, or the option may be repeated. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

Columns: uid, id, name, ref_count, description, action, roles, ips, read_only, squash_mode, anon_uid, anon_gid, created_by, created_at, modified_by, modified_at

weka security policy remove

Removes an existing security policy.

Parameter
Description

policy*

Policy ID or name of the policy to remove.

-f, --force

Force action. Perform this action without further confirmation.

weka security policy show

Displays information about a specific security policy.

Parameter
Description

policy*

Name or ID of security policy to show.

Columns: uid, id, name, ref_count, description, action, roles, ips, read_only, squash_mode, anon_uid, anon_gid, created_by, created_at, modified_by, modified_at

weka security policy test

Simulates the effect of one or more security policies against a proposed access.

Parameter
Description

policies*…

Policies to evaluate, with access verified in the order listed.

--ip <ip>

Use this IP address to evaluate as the source address.

--join

Simulate effect of policies when joining the cluster.

--role <user-role>

Simulate effect of policies on API access from the given user role. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

weka security policy update

Updates the settings of an existing security policy.

Parameter
Description

policy*

Policy ID or name of policy to update.

--action <security-action>

Whether access is granted or denied when the security policy matches. Valid values: allow, deny.

--add-ips <ip-ranges>…

IP addresses or ranges to add to the end of the security policy. Multiple values may be supplied separated by commas, or the option may be repeated.

--add-roles <user-roles>…

These user roles are added to the security policy. Multiple values may be supplied separated by commas, or the option may be repeated. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

--anon-gid <uint32>

Anonymous group ID to which accesses are squashed.

--anon-uid <uint32>

Anonymous user ID to which accesses are squashed.

--description <string>

Security policy description.

-f, --force

Force action. Perform this action without further confirmation.

--ips <ip-ranges>…

IPs (or ranges of IPs) to which the security policy applies. Multiple values may be supplied separated by commas, or the option may be repeated.

--new-name <string>

New name of security policy.

--read-only <on-off>

The security policy allows read-only mounts only.

--remove-ips <ip-ranges>…

IP addresses or IP address ranges to remove from the security policy. Multiple values may be supplied separated by commas, or the option may be repeated.

--remove-roles <user-roles>…

These user roles are removed from the security policy. Multiple values may be supplied separated by commas, or the option may be repeated. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

--roles <user-roles>…

User roles to which the security policy applies. Used only for administrative interfaces. Multiple values may be supplied separated by commas, or the option may be repeated. Valid values: clusteradmin, tenantadmin, regular, readonly, s3, csi.

--squash-mode <squash-mode>

Dictates whether user and group IDs accessing mounted filesystems are squashed. If 'root' then converts accesses by root (UID 0/GID 0) to the anonymous UID and GID. If 'all', then converts all accesses. Valid values: none, root, all.

weka security tls

TLS-related commands.

weka security tls download

Download the cluster TLS certificate.

Parameter
Description

destination-path

Path to save the downloaded certificate.

weka security tls local

Manage TLS local configuration.

weka security tls local reset

Remove local TLS configuration.

Parameter
Description

--all

Change applies to all backend containers.

--ca-cert

Remove local TLS CA certificate.

--container-ids <container-ids>…

Change applies to specified containers. Multiple values may be supplied separated by commas, or the option may be repeated.

--private-key

Remove private key and certificate.

weka security tls local set

Enable and set local TLS configuration.

Parameter
Description

--all

Change applies to all backend containers.

--ca-cert <string>

Path to TLS CA certificate PEM file.

--certificate <string>

Path to TLS certificate PEM file.

--container-ids <container-ids>…

Change applies to specified containers. Multiple values may be supplied separated by commas, or the option may be repeated.

--private-key <string>

Path to TLS private key PEM file.

weka security tls purge

Remove all pinned TLS certificates from the profile, or with --global from the machine-wide store used by unattended operations.

Parameter
Description

--global

Use the machine-wide certificate store (/etc/wekaio/certs) instead of the profile's. The machine-wide store is shared by all users and consulted by unattended operations such as mounting a stateless client; writing it typically requires root.

weka security tls reset

Disable TLS certificate and key.

weka security tls set

Enable and set TLS certificate and key.

Parameter
Description

--certificate <string>*

Path to TLS certificate PEM file.

--private-key <string>*

Path to TLS private key PEM file.

weka security tls status

Show the cluster TLS status and certificate.

weka security tls trust

Pin (trust on first use) the TLS certificate a host presents, so later connections verify against it. Typically run at install time to trust a backend's distribution server before the first mount; use --global there, so the pin is found regardless of the invoking user and environment.

Parameter
Description

--from <string>*

Host to fetch and trust the certificate from (host or host:port; port defaults to 14000).

-f, --force

Force action. Perform this action without further confirmation.

--global

Use the machine-wide certificate store (/etc/wekaio/certs) instead of the profile's. The machine-wide store is shared by all users and consulted by unattended operations such as mounting a stateless client; writing it typically requires root.

weka security tls untrust

Remove a certificate previously pinned with 'security tls trust', so the next connection to that host runs trust-on-first-use again.

Parameter
Description

--from <string>*

Host whose trusted certificate to remove (host or host:port; port defaults to 14000).

--global

Use the machine-wide certificate store (/etc/wekaio/certs) instead of the profile's. The machine-wide store is shared by all users and consulted by unattended operations such as mounting a stateless client; writing it typically requires root.

Last updated