The Simplest Way to Make AWS Secrets Manager and Checkmk Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair aws secrets manager and checkmk to pull fresh login keys for health checks. This setup lets monitoring agents check servers and databases without storing plain text passwords. Checkmk needs valid keys to poll cloud hosts, databases, and web apps every minute. Storing those keys inside monitoring rules creates a big risk when it is time to rotate them. Linking your cloud vault with your monitoring server solves this problem for good. The monitoring server pulls the newest secret befor

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.

Teams pair aws secrets manager and checkmk to pull fresh login keys for health checks. This setup lets monitoring agents check servers and databases without storing plain text passwords.

Checkmk needs valid keys to poll cloud hosts, databases, and web apps every minute. Storing those keys inside monitoring rules creates a big risk when it is time to rotate them. Linking your cloud vault with your monitoring server solves this problem for good. The monitoring server pulls the newest secret before it runs a check against a target.

How aws secrets manager and checkmk share keys and permissions

The workflow between aws secrets manager and checkmk relies on cloud roles and local password stores. First, an admin stores a database password or API token inside the cloud vault. Next, you assign an IAM role to the host that runs your Checkmk site.

That IAM role needs a strict policy that only allows reading specific secret names. When Checkmk runs a special agent or active check, it calls the cloud API. The cloud API checks the host role and returns the secret value in memory. Checkmk then uses that value to log in to the target app and gather metrics.

You can also sync vault secrets into the internal Checkmk password store on a schedule. This step keeps your active checks fast and avoids hitting cloud API rate limits. Every cloud read event writes an entry to your cloud audit logs for review.

Common failure modes and how to scope roles

Many teams make the mistake of using one broad IAM role for all checks. If an attacker compromises the monitoring server, they can read every secret in the cloud account. Shared service accounts also make it hard to see which check used a secret.

Another common issue happens when a cloud vault rotates a key on a timer. If Checkmk caches the old password for too long, health checks fail and trigger false alerts. Even worse, fast retries with a bad password can lock out the monitoring user account.

AWS Secrets Manager + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these issues by scoping IAM roles down to the exact secrets needed. Group your monitoring secrets by app or team using clear tags and path prefixes. Deny write permissions so the monitoring host can only read values and never change them.

Restrict network paths so only the Checkmk server IP can reach the target hosts. Set your secret sync timer to run right after the vault finishes a key rotation. Finally, review your cloud logs each week to spot strange secret reads from monitoring hosts.

Handling human checks when alerts fire

Automated polling is only half of the story when you run a monitoring tool. When Checkmk fires a critical alert, an on-call engineer must step in to fix it. That engineer often needs the same database password or host key stored in the vault.

Handing out raw vault read rights to every on-call user breaks your clean security model. Teams need a safe way to run diagnostic queries and fix broken services during an outage. Masking rules can also rewrite sensitive fields like emails, phone numbers, card numbers, or national IDs in query results.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How does Checkmk authenticate to AWS Secrets Manager without static keys?

Run your Checkmk server on a cloud instance with an attached IAM role. The host uses short-lived instance metadata credentials to read secrets from the vault API.

Why do Checkmk database checks fail right after a secret rotation?

Checkmk might still hold the old password in its local cache or password store. Refresh the synced password right after the vault rotates the secret to stop false alerts.

How can we limit which secrets a Checkmk site can read?

Write an IAM policy that restricts read calls to a specific secret path or tag. Attach that narrow policy only to the role used by that specific Checkmk site.

The query runs. The emails stay hidden.