Source: field feedback (module quality / security default).
New-PfbFilesystem currently does more than the caller asks on creation:
- Creates
array_server SMB and NFS exports regardless of whether they are enabled. default_exports should default to empty unless the caller explicitly requests exports.
- Creates the snapshot directory even when
-SnapshotDirectoryEnabled is not passed.
- The auto-created SMB export defaults to full-open permissions (
_smb_client_allow_everyone, effectively "Everyone read"). A wide-open SMB policy applied implicitly is a security concern for a default.
Asks
Acceptance
Creating a filesystem with defaults produces no exports, no snapshot directory, and no open SMB policy. A Pester test covers each default. NFS/SMB parity: anything settable for NFS on creation is settable for SMB.
Source: field feedback (module quality / security default).
New-PfbFilesystemcurrently does more than the caller asks on creation:array_serverSMB and NFS exports regardless of whether they are enabled.default_exportsshould default to empty unless the caller explicitly requests exports.-SnapshotDirectoryEnabledis not passed._smb_client_allow_everyone, effectively "Everyone read"). A wide-open SMB policy applied implicitly is a security concern for a default.Asks
default_exportsempty by default).-SnapshotDirectoryEnabledis passed.Acceptance
Creating a filesystem with defaults produces no exports, no snapshot directory, and no open SMB policy. A Pester test covers each default. NFS/SMB parity: anything settable for NFS on creation is settable for SMB.