Team City server plugin to automatically authorize agents on register
For organizations that heavily automate their build agent infrastructure, the manual step of authorizing and unauthorizing agents can become an issue. For example, agents setup in an AWS Auto Scaling Group could appear and disappear multiple times a day.
"Agent Auto Authorize" listens for agent registrations and automatically authorizes them if they have the auto_authorize
agent property. Additionally, if they become unregistered for any reason, they will also be unauthorized.
NOTE: Because this plugin circumvents the manual agent authorization step which is guarded by TeamCity authentication, only use this if your TeamCity server is inaccessible to the public Internet.
- Upload
AutoAuthorize.zip
to your TeamCity plugin directory. (If you're doing this through the UI, you can find it at https://your-teamcity/admin/admin.html?item=plugins) - Restart your TeamCity server
- Add the following to your agent properties (located at
$agentDir/conf/buildAgent.properties
):auto_authorize=true
- Start your build agent
- Note that as soon as it's registered, it will also be authorized.