The Simplest Way to Make Activemq and Teamcity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Using activemq and teamcity together lets build jobs send and read event messages across services. A build agent runs tests or deploys code and posts status updates to message queues. Teams use this setup to trigger downstream tasks after a build finishes. Other apps listen to the queue and start test runs or send alerts. This keeps the build server fast and separates job runs from external systems. How activemq and teamcity share data and permissions The build server runs jobs on worker nod

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Using activemq and teamcity together lets build jobs send and read event messages across services. A build agent runs tests or deploys code and posts status updates to message queues.

Teams use this setup to trigger downstream tasks after a build finishes. Other apps listen to the queue and start test runs or send alerts. This keeps the build server fast and separates job runs from external systems.

How activemq and teamcity share data and permissions

The build server runs jobs on worker nodes called agents. During a job, the agent opens a network path to the message service. It logs in with a user name and key or a digital cert.

Once logged in, the agent sends build events to a named queue or topic. The message service checks the role of that user before it accepts the data. Each role defines which queues the build agent can read from or write to.

Downstream workers also log in with their own roles to read those messages. Some teams do the reverse and start a build when a new message arrives. In both flows, clear role rules keep one project from reading another team's queue.

Common failure modes in build and queue setups

Many teams use one shared admin account for every build agent. If one build script leaks that key, an attacker can read every queue. A broad role also lets a broken test job delete live queues by mistake.

Static keys stored in build settings create another big risk. Engineers copy these keys into local scripts to debug failed runs. Over time, nobody knows which app or person is using that shared login.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged queue actions make audits very hard during an incident. When ten build agents share one login, the queue logs show only one name. You cannot tell which specific build job or developer sent a bad message.

Scoping roles and network paths between systems

Start by creating a separate queue user for each project or build group. Give each user write access only to the specific topic it needs. Never give build agents admin rights to create or delete main system queues.

Lock down the network path between the build agents and the message servers. Allow traffic only from known agent IP ranges on the secure message port. Turn on TLS so keys and message payloads stay encrypted on the wire.

Check your queue payloads for sensitive data before the build agent sends them. If a test log holds emails or card numbers, mask those fields in results. Rotate agent keys on a set schedule and remove unused accounts right away.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How should build agents log in to the message queue?

Give each project its own service user with a scoped role. Use TLS certs or short-lived keys instead of one shared admin password.

How do we stop test builds from writing to live queues?

Split your test and live queues into separate groups with distinct roles. Restrict test build agents so their network rules and roles only reach test queues.

What should we log when build jobs send messages?

Record the build job ID, the project name, the user role, and the target queue. This audit trail helps you trace any bad message back to a single run.

The query runs. The emails stay hidden.