Describe the solution you'd like
Trident provides 3 possibilities to manage Export policies
- dynamically with autoExportCIDRs & autoExportPolicy backend parameters
- explicitly with the exportPolicy backend parameter
- default value (ie: use export policy default)
When managing export policies dynamically, both the Qtrees & the parent FlexVol are assigned the same policy. Not issue here.
However when using the 2 other methods, only the Qtrees are assigned the export policy provided by the admin, or the default one. Here, the parent FlexVol will be linked to a policy created by Trident called trident_qtree_pool_export_policy.
This FlexVol policy is wide open => 0.0.0.0/0 & ::/0
This means that someone could mount the FlexVol & list all the Qtrees/PVC. He may not be able to mount these Qtrees, but seeing their name could be interpreted as a lack of security.
Describe alternatives you've considered
If the parameter exportPolicy is specified by the admin, it should be used for the parent Flexvol also.
if the default policy is used, it should also be assigned to the FlexVol.
If this is not feasible, documentation could be updated to reflect this behavior
Additional context
I also noticed that if several ontap-nas-eco backends are configured with the same prefix, PVC/Qtrees from both backends will be created in the same FlexVol.
Describe the solution you'd like
Trident provides 3 possibilities to manage Export policies
When managing export policies dynamically, both the Qtrees & the parent FlexVol are assigned the same policy. Not issue here.
However when using the 2 other methods, only the Qtrees are assigned the export policy provided by the admin, or the default one. Here, the parent FlexVol will be linked to a policy created by Trident called trident_qtree_pool_export_policy.
This FlexVol policy is wide open => 0.0.0.0/0 & ::/0
This means that someone could mount the FlexVol & list all the Qtrees/PVC. He may not be able to mount these Qtrees, but seeing their name could be interpreted as a lack of security.
Describe alternatives you've considered
If the parameter exportPolicy is specified by the admin, it should be used for the parent Flexvol also.
if the default policy is used, it should also be assigned to the FlexVol.
If this is not feasible, documentation could be updated to reflect this behavior
Additional context
I also noticed that if several ontap-nas-eco backends are configured with the same prefix, PVC/Qtrees from both backends will be created in the same FlexVol.