Team City server plugin to automatically authorize agents on register
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
resources
src
.gitignore
LICENSE.md
README.md
build.properties
build.xml
server.iml
teamcity-common.xml
teamcity-plugin.xml
teamcitysampleplugin.xml

README.md

team-city-agent-auto-auth

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.

Installation

  1. 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)
  2. Restart your TeamCity server
  3. Add the following to your agent properties (located at $agentDir/conf/buildAgent.properties): auto_authorize=true
  4. Start your build agent
  5. Note that as soon as it's registered, it will also be authorized.

Lastest Build

AutoAuthorize.zip