Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2034

[Docs] Add note in docs about possible unintended effects of trying to mount a file into an execution environment

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 2.5
    • docs-product
    • False
    • Hide

      None

      Show
      None
    • False

      It's possible to configure the Paths to expose to isolated jobs list in the UI. The docs refer to this setting in two places:

      The docs are a bit misleading in suggesting that the only supported entries are of the form HOST-DIR[:CONTAINER-DIR[:OPTIONS]]. Users that are familiar with podman and bind mounts are also apt to try and mount one single file from the host into the execution environment. Something like:

      /tmp/dummy.txt:/tmp/dummy.txt
      /tmp/dummy.txt:/tmp/

      But if they do this, ansible-runner in fact strips off the filename and would just bind mount the whole host directory into the execution environment. This could be considered a security problem since that directory may contain files that should not be mounted in the EE.

      I'm requesting a change to the docs to make users aware of this behavior. Something like:

      "Note: If a path to a specific file is entered, then the whole directory containing that will be mounted inside the execution environment."

              lmaynard@redhat.com Lynne Maynard
              rhn-support-jbreitwe Jason Breitweg
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: