-
In the VAST Web UI, select Element Store from the left navigation menu and then select View Policies.
-
To add a new view policy, click Create Policy.
-
The Add Policy dialog opens with the General tab open.
-
In the Name field, enter a unique name for the policy.
-
From the Security Flavor dropdown, choose a 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. For more information about security flavors, see Controlling File and Directory Permissions Across Protocols. In brief, the options are:
-
NFS security flavor:
-
Supports NFSv3, SMB, and S3. Supports NFSv4.1 without support for NFSv4 ACLs.
-
Access checks are done according to the NFS access check algorithm.
-
NFS clients can set permission mode bits on files and directories when creating new files and directories or modifying existing files and directories.
-
Files and directories created by SMB and S3 clients receive default initial permission mode bits set in the view policy unless POSIX mode bits are set on the parent directory and enabled in the view policy, in which case they are inherited.
-
-
SMB security flavor:
-
Supports SMB and NFSv3. Does not support NFSv4.1 or S3.
-
Access checks are done using the SMB access check algorithm.
-
SMB clients can set permissions on files and directories.
-
Attempts by NFS clients to set permission bits are ignored.
-
Files and directories created by NFS clients inherit permissions set on the parent directory by the SMB client.
-
-
S3 Native security flavor:
-
Supports S3 and NFSv3. Does not support NFSv4.1 or SMB.
-
Access checks are done using the S3 access check algorithm.
-
Permissions can be changed by S3 clients using S3 ACLs.
-
New buckets receive a default initial S3 bucket ACL, which gives the bucket owner FullControl. New objects receive a default initial S3 object ACL, which gives the owner FullControl.
-
-
Mixed Last Wins security flavor:
-
Supports NFSv3, NFSv4.1 and SMB. Does not support S3.
-
Access checks are done using the SMB access check algorithm.
-
Permissions can be set and modified by any client using its own protocol's permission setting system.
-
As far as possible, this flavor is designed such that whenever a user changes permissions via a given protocol, the permission change that is applied in vast permissions is as the user intended.
-
Caution
Switching security flavors for views that have S3 Buckets enabled is not allowed. The flavor specified in the policy when the view is created must remain.
-
-
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.
-
From the Group Membership Source dropdown, select the source to trust for users' group memberships during the permission checking process:
-
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.
-
-
Optionally modify Advanced settings:
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).
Default: 0, which means no atime updates.
NFS Posix ACL
Enables full support of extended POSIX Access Control Lists (ACL) for NFSv3 clients. 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, we recommend reading 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
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.
-
-
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.
A '*' acts as a wildcard to represent all IPs of all hosts:
To add host-based access restrictions:
-
Click the +Add new IP button for the access type you want to add hosts to.
The IPs list for the access type becomes editable.
-
Add hosts using any of the following expressions in a comma separated list:
-
A single IP.
-
(NFS only) A netgroup key, which starts with '@'. This is supported for NIS netgroups if NIS is configured. For information about how to use netgroups, see Using NIS Netgroups to Authorize Host Access to NFS Exports for more information.
-
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.*.*.
The access types comprise these categories:
-
Under NFS, SMB and S3, access types to control read and write operations:
-
Read / Write. Read/write access.
-
Read Only. Read only access.
-
-
For NFS, controlling squash policy, which is relevant only to NFSv3 hosts:
-
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.
-
-
For NFS, controlling access to the trash folder from NFSv3 hosts:
-
Trash Access. This option does not appear here by default. It appears only if Enable trash folder access is enabled on 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 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 Add or press the ENTER key on your keyboard.
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, select the NFS 4.1 tab and optionally change the Minimal Protection Level:
-
Kerberos Auth-only. Allows client mounts with Kerberos authentication only (using the RPCSEC_GSS authentication service).
-
System. Allows client mounts using either the AUTH_SYS RCP security flavor (the traditional default NFS authentication scheme) or with Kerberos authentication
-
None. Allows client mounts with the AUTH_NONE (anonymous access), or AUTH_SYS RCP security flavors, or with Kerberos authentication.
-
-
If you selected NFS as the security flavor, open the Default POSIX modebits section. Here, you can 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, select the S3 tab and set 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.
-
-
In the Auditing tab, you can enable any auditing settings that are not enabled globally that you want to enable in the view policy.
Note
Before you can set any auditing settings in a view policy, minimal global auditing settings must be configured first.
Any auditing settings that are enabled in global auditing settings are automatically enabled on all views.
-
From the Protocols dropdown, select each protocol that you want to enable auditing for. You can enable one or both:
-
NFSv3. Enables auditing of NFSv3 operations.
-
SMB. Enables auditing of SMB operations.
-
-
Select the categories of operations that you want to be audited:
Category of Operations to audit
Description
NFSv3 Operations Included (provided NFSv3 protocol is enabled for auditing)
SMB Operations included (provided SMB protocol is enabled for auditing)
Create/Delete Files/Dirs/Objects
Operations that create, delete files and directories.
CREATE, when it creates a file
MKDIR
LINK
SYMLINK
MKNOD
REMOVE
RMDIR
RENAME
CREATE, if it creates a new file/directory or opens an existing file in delete-on-close mode
SET_INFO, if it is used for delete on close
SET_INFO, if it renames a file/directory
Modify data/MD
Operations that modify data (this includes operations that change the file size) and metadata.
CREATE, when it truncates a file
WRITESETATTR
SETACL
CREATE - if it truncates an existing file
WRITEIOCTL, on a file or directory, if it modifies data/metadata
SET_INFO, if it changes metadata
Read data
Operations that read data and metadata.
READ
READDIR
READDIRPLUS
GETACL
READ
QUERY_DIRECTORY
Session create/close
Available and relevant for SMB only.
Session creation and closing operations.
N/A
SESSION_SETUP
LOGOFF
-
Optionally change the Audit record options:
-
-
Click Create.
The view policy is created and added to the list.
Use the viewpolicy create command to create a new view policy.
Comments
0 comments
Article is closed for comments.