Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-2215

New Policy Cache Mode: Downloaded policies are not cleaned when servers goes down

    Details

    • Story Points:
      3
    • Sprint:
      2019.6 - Agents, 2019.7 - Agents, 2019.8 - Agents, 2020.04 - Agents

      Description

      Bug description

      New Policy Cache Mode: Downloaded policies are not cleaned when servers goes down

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)

      1. Create policy in AM
      2. Enable new policy mod
        export AM_POLICY_CACHE_DIR=/opt/cache
        export AM_POLICY_CACHE_MODE=on
        Note: variables need to be set in conf file on nginx
      3. Start web server
      4. Hit the agent's protected page
      5. Observe policies directory (/opt/cache) and be sure policies were downloaded
      # ls -l /opt/cache/
      total 4
      -rw-r--r-- 1 www-data www-data 683 DecĀ  7 19:40 policy_3263908671.json
      
      1. Stop web server
      Expected behaviour
      Policy file (e.g policy_3263908671.json) should be deleted
      Current behaviour
      Policy file (e.g policy_3263908671.json) is NOT deleted 
      

      Work around

      delete file by hand or automate it with script

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nick.james Nicholas James
                Reporter:
                richard.hruza Richard Hruza
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: