Issue Summary
This is reproducible on Data Center: (yes)
Steps to Reproduce
- 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
Disablingcurl -u <username:password> -X PUT http://bamboo-url:8085/rest/api/latest/agent/<agentid>/disable
- 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.