Signing from Containers
How a Docker container or Kubernetes pod on the notary's host signs through it, and how to register a binary the container sees.
A process in a container on the notary’s host can sign through the notary like any other local process. What changes is how the notary identifies it, and that depends on the transport.
Over the Unix socket
Mount the notary’s socket directory into the container and sign over the Unix socket. The kernel reports the caller’s PID across PID and network namespaces, so the notary identifies the container process and signs with its binary’s key.
# Kubernetes pod spec excerpt
volumeMounts: [{ name: notary, mountPath: /var/run/eqty-notary }]
volumes: [{ name: notary, hostPath: { path: /var/run/eqty-notary, type: Directory } }]With Docker, -v /var/run/eqty-notary:/var/run/eqty-notary. The credential the notary issues for
a caller in a container is a VCompContainerV1, naming the container rather than the process’s
command line. See Credentials.
Over TCP
Inside a container, 127.0.0.1 is the container’s own loopback, not the host’s. The well-known
address 100.100.100.200:8066 does reach the host notary, but the caller then arrives from
another network namespace, often behind NAT.
On Linux the package sets EQTY_ACCEPT_NETNS_PEERS=1: the notary finds a caller from another
network namespace on this host, such as a Kubernetes pod reaching the well-known address from its
pod IP, by looking its socket up in that namespace’s table. Without it, only loopback callers in
the host namespace are resolved. Callers on other hosts are never resolved: /v1/isReady and the
other public endpoints answer them, but /v1/sign returns 403.
Register a container’s binary
With auto-registration on, a container process gets its key on first use and nothing below is needed. With it off, register the binary by content hash and the inode the container sees. Exec tracking matches by inode first, so a copy of the same binary on the host does not match.
From the host, with $PID any process in the container:
F=/proc/$PID/root/usr/local/bin/python3.13 # the binary inside the container
HASH=$(b3sum --no-names "$F") # BLAKE3 content hash
curl -s -X POST http://127.0.0.1:8066/v1/registrations \
-H 'content-type: application/json' \
-d "{\"hash\":\"$HASH\",\"inode\":$(stat -L -c %i "$F")}"Or with the command line: eqty-notaryctl register --hash "$HASH" --inode "$(stat -L -c %i "$F")".
Registrations live in the daemon’s memory. After a restart the key blobs persist, but the observer’s filter is empty, so re-register at daemon start. Auto-registration avoids this.
What a verifier can tell
A VCompContainerV1 says which notary the call reached, which container made it and which binary
(binaryCid), not which of several processes in that container. Its keyScope says who holds the
key:
container(the default): the key belongs to this binary in this container. Another container running the same image gets a different key and DID. Processes in one container that run the same binary share it.binary(EQTY_KEY_SCOPE=binary): every process running this binary on this notary, in any container or on the host, shares the key.
For separate identities within one container, use separate binaries.