-
From the left navigation menu, select Element Store and then View Policies.
-
Click
to open the Actions menu for the view policy you want to edit and select Edit.
-
On the General tab, change these settings as needed:
Name
The name of the policy.
Security Flavor
The security flavor determines which protocol's access check algorithm is used and which protocol(s) is/are allowed to set permissions on files and directories.
Brief descriptions of the flavors are described in the list below. For more extensive information about security flavors, see Controlling File and Directory Permissions Across Protocols.
Select an option from the dropdown:
-
NFS. Treats NFS as a native protocol and treats the other protocols as non-native protocols. Supports NFSv3, SMB, and S3. Supports NFSv4.1 without support for NFSv4 ACLs.
-
SMB. Treats SMB as a native protocol and NFS as a non-native protocol. Supports SMB and NFSv3. Does not support NFSv4.1 or S3.
-
S3 Native. Treats S3 as a native protocol and NFS as a non native protocol. Supports S3 and NFSv3. Supports NFSv4.1 without support for NFSv4 ACLs. Does not support SMB.
-
Mixed Last Wins. Allows file and directory permissions to be set and modified by all clients. Includes support for NFSv4.1 clients to set NFSv4.1 ACLs. Supports NFSv3, NFSv4.1 and SMB. Does not support S3.
Note
There is an advanced setting available which can block either NFSv4.1 or SMB from setting file permissions. This setting is available via the VAST CLI and is called access-flavor. However, it is not advised to change this setting when it is already in effect on a view that is being used by clients. This could lead to unexpected behavior.
Vip Pools
To limit access to specific VIP pools, select those VIP pool(s) in the VIP Pools dropdown.
If no VIP pools are selected, all VIP pools can access all views that are attached to this view policy.
Group Membership Source
Determines the source to trust for users' group memberships during the permission checking process:
Possible values:
-
Client. Groups declared in the RPC as the user's leading group and auxiliary groups are trusted and provider-sourced groups are not considered.
This option is supported only for views that are exposed exclusively to NFSv3.
-
Providers. Group memberships retrieved from authorization providers are considered as the user's group memberships (as for SMB-only and multiprotocol views). The GIDs declared in the RPC are ignored.
This option must be used for views that have SMB enabled.
Similarly, where NFSv4.1 is enabled in the view, if Minimal Protection Level is set to Kerberos Auth-only, then this option must be used.
-
Client and Providers. Groups declared in the RPC and group memberships retrieved from authorization providers are considered. If the GID provided by the client does not match the GID retrieved from the authorization provider, the GID from the client is set.
Path Length Limit
Affects the maximum limit of file path component name length. Choose between:
-
Lowest Common Denominator (default). Imposes the lowest common denominator file length limit of all VAST Cluster-supported protocols, regardless of the specific protocol enabled on a specific view.
-
Native Protocol Limit. Imposes no limitation beyond that of the client protocol.
Caution
If you select this mode in a view policy and then in the future expose a view using this policy to a previously not exposed protocol, that view might contain files that won't be accessible by the newly added protocol, due to the limitations of that protocol.
Allowed Characters
Determines which characters are allowed in file names. Choose between:
-
Lowest Common Denominator (default). Allows only characters allowed by all VAST Cluster-supported protocols, regardless of the specific protocol enabled on a specific view. WIth this (default) option, the limitation on the length of a single component of the path is 255 characters.
-
Native Protocol Limit. Imposes no limitation beyond that of the client protocol.
Atime Frequency
atime is a metadata attribute of NFS files that represents the last time the file was updated. atime is updated on read operations if the difference between the current time and the file's atime value is greater than the configured atime frequency. Consider that a very low value might have a performance impact if high numbers of files are being read.
Specify ATIME_FREQUENCY as an integer followed by a unit of time (s = seconds, m= minutes, h=hours, d=days).
Posix ACL
For NFSv3 clients, this option enables full support of extended POSIX Access Control Lists (ACL). By default, VAST Cluster supports the traditional POSIX file system object permission mode bits, (minimal ACL mode) in which each file has three ACL entries defining the permissions for the owner, owning group, and others, respectively. To learn more about POSIX ACL, see https://linux.die.net/man/5/acl.
If NFS security flavor is enabled, any POSIX ACLs set on directories are inherited by files created in the directory by SMB and S3 clients rather than the permission mode bits set in the view policy.
Note
The Posix ACL setting is supported only with the NFS security flavor.
Note
The
setfacl
Linux command is blocked if this option is not enabled.Note
-
NFSv4.1 does not support POSIX ACLs.
-
If clients have created files and directories with POSIX ACLs using NFSv3 and then they start to access those files and directories via NFSv4.1, the POSIX ACLs will have no effect.
-
If this setting is enabled, POSIX ACLs may be used via NFSv3 only. They cannot be used via NFSv4.1.
-
Support for NFSv4.1 ACLs requires Mixed Last Wins security flavor and is not supported concurrently with POSIX ACLs for NFSv3.
Use 32-bit File IDs
Sets the VAST Cluster's NFS server to use 32bit file IDs. This setting supports legacy 32-bit applications running over NFSv3.
This setting is disabled by default.
This setting is not supported for views that are enabled for NFSv4.1.
SMB continuous availability
This option is for use in view policies intended for SMB3-enabled views.
When enabled, the SMB share exposed by the view is set as continuously available, which allows SMB3 clients to request use of persistent file handles and keep their connections to this share in case of a failover event.
Note
This option requires that the client uses SMBv3.
NFSv4.1 Case Insensitivity
When enabled, VAST Cluster does not honor case in the names of files or directories accessed through NFSv4.1.
Caution
Toggling this option on or off for an existing view may have unpredictable results.
Accessible .snapshot Folder In Subdirectories
This setting enables accessible .snapshot directories under all directories in the view. In subdirectories of protected paths, these directories provide links to any existing snapshots of parent directories even if there is no protected path on the subdirectory itself. This provides easier access from each directory to snapshots of parent directories.
If disabled, access to a .snapshot directory under each directory is only enabled if the directory has a protected path on it.
Visible .snapshot Folder In SMB Subdirectories
Makes a .snapshot directory visible via SMB within every directory in the view, even if there is no snapshot that was taken on the directory itself. These .snapshot directories will contain links to any existing snapshots of parent directories. As with all .snapshot directories, these are hidden directories and will appear in directory listings only for SMB clients.
-
-
Optionally, use the Host-Based Access tab to restrict access to the view on a host basis per protocol. The default configuration does not restrict host access.
You can restrict different access types. The NFS access types that you can restrict include read/write and read-only access that apply to NFSv3 and NFSv4.1, as well as squash permissions and trash folder permission that are only relevant to NFSv3.
Tip
An asterisk ('*') shown to the right of the + Add New Rule button is a wildcard representing all IPs of all hosts:
.
To add host-based access restrictions:
-
Under NFS, SMB or S3, find the Access Type category for which you want to add hosts:
-
Read / Write. Read/write access.
-
Read Only. Read-only access.
-
Squash control (for NFSv3 only):
-
No Squash. All operations are supported. Use this option if you trust the root user not to perform operations that will corrupt data.
-
Root Squash. The root user is mapped to nobody for all file and folder management operations on the export. This enables you to prevent the strongest super user from corrupting all user data on the VAST Cluster.
-
All Squash. All client users are mapped to nobody for all file and folder management operations on the export.
-
-
Trash folder control (for NFSv3 only):
-
Trash Access. This option is displayed if Enable trash folder access is on in the Settings page. Granting this permission gives hosts the ability to delete files by moving them into a trash folder, from which they are automatically deleted. Requires also No Squash. For more information, see Trash Folder (for Rapid Parallel File Deletion).
-
You can add hosts to any and all of the access types, but within each category no more than one type will be applied to any given host. If a host is specified with multiple entries in mutually exclusive types, the conflict is resolved as follows:
-
-
Click the +Add New Rule button for the access type you want to add hosts to.
The IP list for the access type becomes editable.
-
In the Enter IPs popup, add hosts using any of the following expressions in a comma-separated list:
-
A single IP address.
-
A subnet indicated by CIDR notation. For example: 1.1.1.1/24.
-
A range of IPs indicated by an IP address with '*' as a wildcard in place of any of the 8-bit fields in the address. For example, 3.3.3.*, or 3.3.*.*.
-
(NFS only) A netgroup, prefixed with an '@'. For information about using netgroups, see Using Netgroups to Authorize Hosts.
-
-
Click Add or press Enter.
The entries are added.
To remove an entry, hover to the right of the entry until a removal button appears and click it:
-
-
If you intend to use this policy for NFSv4.1-enabled views, go to the NFS 4.1 tab and set the following:
-
Minimal Protection Level determines the minimum NFSv4.1 security level to allow for NFSv4.1 mounts:
-
System. Allows client mounts using either the AUTH_SYS RCP security flavor (the traditional default NFS authentication scheme) or with any of the three Kerberos security modes (krb5, krb5i, or krb5p).
-
None. Allows client mounts with the AUTH_NONE (anonymous access), or AUTH_SYS RCP security flavors, or with any of the three Kerberos security modes (krb5, krb5i, or krb5p).
-
Kerberos Auth. Allows client mounts with Kerberos authentication only and allows any of the three Kerberos security modes (krb5, krb5i, or krb5p).
-
Kerberos Integrity. Allows client mounts only if they use either Kerberos 5 authentication with privacy checking (krb5p) or Kerberos 5 authentication with integrity (krb5i).
-
Kerberos Privacy. Allows client mounts only if they use Kerberos 5 authentication with privacy checking (krb5p), the highest level Kerberos security mode.
-
-
Enforce TLS. Enable this setting if you want to enforce TLS encryption between the NFS4.1 client and the cluster. When this setting is enabled, the Minimal Protection Level must be set to System or None.
Note
TLS encryption requires further setup in addition to this view policy setting. For details, see Configuring TLS Encryption with NFSv4.1.
-
-
If you selected NFS as the security flavor, optionally go to the Default POSIX modebits tab to change the file mode permission bits and the directory mode permission bits that are applied to files and directories when they are created by protocols other than NFS.
To learn more about permissions and how they are transposed between the protocols, see Controlling File and Directory Permissions Across Protocols.
-
If you intend to use this policy for S3-enabled views, go to the S3 tab and set the following:
-
Bucket listing permissions:
-
In the Bucket listing permission (users) field, enter any user names of users who should be able to list buckets that are created using this policy.
When an S3 user sends a bucket listing request, the command returns a list of all buckets the user owns and all buckets that they have listing permission for, even if they do not have permission to access those buckets.
-
In the Bucket listing permission (groups) field, enter any group names of user groups who should be able to list buckets that are created using this policy.
-
-
Enable S3 special chars support: Allows or prohibits S3 object names containing character combinations that are not compatible with other access protocols, such as names containing
//
or/../
.
-
-
In the Auditing tab, you can enable any auditing settings that are not enabled globally that you want to enable for the view policy.
Note
Before you can configure any auditing settings in a view policy, minimal global auditing settings must be configured first.
Any auditing settings that are enabled globally are automatically enabled on all views.
-
From the Protocols dropdown, select one or more protocols to enable auditing of protocol operations. The following protocols are supported: NFSv3, NFSv4.1, SMB and S3.
-
Under Operations to audit, choose one or more categories of operations to be audited for the protocol(s) for which auditing is enabled:
-
Create/Delete Files/Dirs/Objects. Operations that create or delete files, directories, or objects:
NFSv3
NFSv4.1
SMB
S3
CREATE, when it creates a file
MKDIR
LINK
SYMLINK
MKNOD
REMOVE
RMDIR
RENAME
CREATE
OPEN, when it creates a file
LINK
REMOVE
RENAME
CREATE, when it creates a new file or directory, or opens an existing file in delete-on-close mode
SET_INFO, when it is used for delete on close or when it renames a file or directory
Bucket-level operations:
Object-level operations:
-
Modify data/MD. Operations that modify data (this includes operations that change the file size) and metadata:
-
Read data. Operations that read data and metadata:
-
-
Optionally change the Audit record options:
-
-
Click Update to save your changes.
To modify a view policy via the VAST CLI, use the viewpolicy modify command.
Comments
0 comments
Article is closed for comments.