Developer library

Deploy Agent DNS in your stack

Guides per agent runtime and environment, the management API, and webhooks.

No SDK in the agent. Set the resolver, handle a held destination in code if you choose to, and drive scope through the API.

Integration levels

Four levels of integration

LEVEL 0

Assign the resolver

A VPC DHCP option, a CoreDNS forward, a dnsConfig on the pod, or a DoH URL in the runtime. Configuration only; no code changes.

Platform, DevOps

LEVEL 1

Handle a held destination in code

Held and blocked names resolve to the policy's block page address. A short guard lets tool code distinguish a held destination from an unavailable service and escalate instead of retrying.

Agent developers

LEVEL 2

Manage scope through the API

Create policies and sites, approve held names, push IOCs, publish and roll back. Scoped API keys (13 scopes) for automation; a JWT for the endpoints that have no scope.

Platform, MLOps

LEVEL 3

Consume events

Six signed webhook events. Verify the signature, then open a case, page on-call staff, or approve from a chat integration.

Security engineering

Held destinations as seen by application code

A destination the policy has not previously resolved, or one it blocks, answers with the policy's block page address. Application code receives a successful lookup to a Securd address rather than a timeout. Each Level 1 sample resolves the hostname, compares the answer, and raises a typed exception so the agent escalates instead of retrying.

Every configuration in this library assumes one policy per agent role and one identity per agent instance. A compartment (a company in Securd) holds policies; each policy maintains its own first-seen baseline and lists; identities and static sites bind to a policy and share its baseline.

The block page address is displayed in the console on the site. Set it in SECURD_BLOCK_ADDRS for the samples below.

pod.yaml
# Level 0 for a Kubernetes pod
spec:
  dnsPolicy: "None"
  dnsConfig:
    nameservers: ["<your compartment resolver IPs>"]

Evaluate Agent DNS with your own agent traffic

Deploy on a single policy in learning mode and review the recorded destinations with your team.