Skip to content

Feature request: improve export policies at the FlexVol level in the context of ONTAP-NAS-ECO #709

@YvosOnTheHub

Description

@YvosOnTheHub

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions