Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22080

Enabling/Disabling agents via REST API is not being registered on Bamboo Audit Logs

XMLWordPrintable

      Issue Summary

      This is reproducible on Data Center: (yes)

      Steps to Reproduce

      1. Using the Bamboo REST API to enable/disable agents. See the example below:
        Enabling
        curl -u <username:password> -X PUT http://bamboo-url:8085/rest/api/latest/agent/<agentid>/enable
        
        Disabling
        curl -u <username:password> -X PUT http://bamboo-url:8085/rest/api/latest/agent/<agentid>/disable
        
      2. Looking at Bamboo UI >> cog icon >> Overview >> System >> Audit log, the 'PUT' above doesn't appear. But it's possible to see it inside the <Bambo-home-folder>/logs/atlassian-bamboo-access.log:
        2023-01-20 16:35:59,151 INFO [http-nio-8085-exec-19] [AccessLogFilter] <username> PUT http://bamboo-url:8085/rest/api/latest/agent/<agentid>/enable 466818kb
        
        2023-01-20 16:36:45,821 INFO [http-nio-8085-exec-5] [AccessLogFilter] <username> PUT http://bamboo-url:8085/rest/api/latest/agent/<agentid>/disable 462917kb

        Note: When changing the agent status through the Bamboo UI, it's possible to see it on Audit logs and in atlassian-bamboo-access.log:

        2023-01-20 16:41:53,321 INFO [http-nio-8085-exec-10] [AccessLogFilter] <username> POST http://bamboo-url:8085/admin/agent/configureAgents!reconfigure.action 434767kb
        

      Expected Results

      Modifying agent status via Bamboo REST API should be registered on Audit logs.

      Actual Results

      If changing the Bamboo agent status through REST API, the modification doesn't show up on the Audit logs.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available but for now, it should be possible to see the API calls through <Bambo-home-folder>/logs/atlassian-bamboo-access.log.

              0ecd005f55dd Krzysztof Podsiadło
              a87f315b12b5 Kerilen Serra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: