Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1446

In access rules, a trailing slashdot "/." should signify a directory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: cf-serverd
    • Labels:
      None
    • Platform:
      Any

      Description

      During server initialisation, with entries in "bundle server access_rules" we admit/deny recursive or single access to an entry, depending on whether this is a directory or not. However for an entry like the following, we don't know until connection time, since the unexpanded path simply does not exist:

      <pre>
      "/root/config/$(connection.key)"
      admit_keys =>

      { "$(connection.key)" };
      </pre>

      In these cases, we must manually append a trailing slash in order to signify recursive access. This ticket is about support trailing slashdot in order to be consistent with CFEngine legacy, as pointed out by Product Management. So the proper way to signify recursive access would be:

      <pre>
      "/root/config/$(connection.key)/"
      admit_keys => { "$(connection.key)" }

      ;
      </pre>
      OR
      <pre>
      "/root/config/$(connection.key)/."
      admit_keys =>

      { "$(connection.key)" }

      ;
      </pre>

      CC'ing Product Management to verify the validity of this ticket, CC'ing Kevin to somehow stress this in the documentation of "bundle server access_rules" (please contact me for more details).

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel