Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
sockguard
command
|
|
|
internal
|
|
|
admin
Package admin implements sockguard's in-band admin HTTP endpoints.
|
Package admin implements sockguard's in-band admin HTTP endpoints. |
|
apipath
Package apipath holds the request classification sockguard's policy, ownership, visibility and response-filtering layers all have to agree on: the canonical view of a Docker or libpod API path, and the path-shape predicates read off that view.
|
Package apipath holds the request classification sockguard's policy, ownership, visibility and response-filtering layers all have to agree on: the canonical view of a Docker or libpod API path, and the path-shape predicates read off that view. |
|
approvals
Package approvals holds the registry behind operator approval of held requests: asks, their states, the caps that keep a flood of them bounded, and the keyed fingerprint a retried request is matched on.
|
Package approvals holds the registry behind operator approval of held requests: asks, their states, the caps that keep a flood of them bounded, and the keyed fingerprint a retried request is matched on. |
|
banner
Package banner renders the sockguard startup banner.
|
Package banner renders the sockguard startup banner. |
|
bodycodec
Package bodycodec turns an upstream response body back into the identity-encoded bytes a JSON decoder can read.
|
Package bodycodec turns an upstream response body back into the identity-encoded bytes a JSON decoder can read. |
|
buildkitproto
Package buildkitproto holds pinned, vendored protobuf message types for the subset of BuildKit's (and its transitive fsutil/gRPC-health) schemas sockguard's BuildKit gRPC mediator needs — see issue #185.
|
Package buildkitproto holds pinned, vendored protobuf message types for the subset of BuildKit's (and its transitive fsutil/gRPC-health) schemas sockguard's BuildKit gRPC mediator needs — see issue #185. |
|
buildkitproxy
Package buildkitproxy — this file carries Phase 4 (issue #185)'s HTTP- orchestration layer for the EndpointSession RPCs mediated at the per-message level: moby.filesync.v1.Auth's four RPCs, moby.buildkit.secrets.v1.Secrets/GetSecret, and moby.sshforward.v1.SSH's CheckAgent/ForwardAgent.
|
Package buildkitproxy — this file carries Phase 4 (issue #185)'s HTTP- orchestration layer for the EndpointSession RPCs mediated at the per-message level: moby.filesync.v1.Auth's four RPCs, moby.buildkit.secrets.v1.Secrets/GetSecret, and moby.sshforward.v1.SSH's CheckAgent/ForwardAgent. |
|
buildkitrunner
Package buildkitrunner runs an external frontend with every gateway request routed through an authenticated Sockguard connection.
|
Package buildkitrunner runs an external frontend with every gateway request routed through an authenticated Sockguard connection. |
|
bytesize
Package bytesize parses and formats byte counts written as size strings such as "32MiB".
|
Package bytesize parses and formats byte counts written as size strings such as "32MiB". |
|
certmatch
Package certmatch holds small helpers used by both the TLS server-cert validator (internal/config/tls.go) and the per-client cert profile matcher (internal/clientacl/middleware.go).
|
Package certmatch holds small helpers used by both the TLS server-cert validator (internal/config/tls.go) and the per-client cert profile matcher (internal/clientacl/middleware.go). |
|
compliance
Package compliance turns a Sockguard configuration into a CIS Docker Benchmark configuration report.
|
Package compliance turns a Sockguard configuration into a CIS Docker Benchmark configuration report. |
|
dockerclient
Package dockerclient provides a shared *http.Client for side-channel calls to the upstream Docker daemon (ownership inspection, client ACL resolution, visibility label look-ups).
|
Package dockerclient provides a shared *http.Client for side-channel calls to the upstream Docker daemon (ownership inspection, client ACL resolution, visibility label look-ups). |
|
dockerfileinspect
Package dockerfileinspect holds the Dockerfile-content heuristics classic POST /build inspection (internal/filter/build.go) and BuildKit gRPC mediation's Dockerfile hold-and-inspect (internal/buildkitproxy, issue #185 phase 5) both need: detecting a BuildKit syntax frontend override, and detecting a RUN (or ONBUILD RUN) instruction.
|
Package dockerfileinspect holds the Dockerfile-content heuristics classic POST /build inspection (internal/filter/build.go) and BuildKit gRPC mediation's Dockerfile hold-and-inspect (internal/buildkitproxy, issue #185 phase 5) both need: detecting a BuildKit syntax frontend override, and detecting a RUN (or ONBUILD RUN) instruction. |
|
dockerfilters
Package dockerfilters decodes Docker's `filters` query parameter into one normalized shape so every middleware that rewrites filters (ownership's owner-label injection, visibility's label selectors) shares a single, audited decoder.
|
Package dockerfilters decodes Docker's `filters` query parameter into one normalized shape so every middleware that rewrites filters (ownership's owner-label injection, visibility's label selectors) shares a single, audited decoder. |
|
dockerresource
Package dockerresource defines the canonical set of Docker resource kinds that ownership and visibility middlewares use to describe inspectable objects.
|
Package dockerresource defines the canonical set of Docker resource kinds that ownership and visibility middlewares use to describe inspectable objects. |
|
glob
Package glob converts the sockguard glob dialect to a regex string.
|
Package glob converts the sockguard glob dialect to a regex string. |
|
h2conn
Package h2conn runs cleartext HTTP/2 with prior knowledge over a single net.Conn the caller already holds, as either end, on net/http alone.
|
Package h2conn runs cleartext HTTP/2 with prior knowledge over a single net.Conn the caller already holds, as either end, on net/http alone. |
|
headercredential
Package headercredential holds the wire format, parser, generator and digest for the client credential carried in the X-Sockguard-Credential header, and the carrier layer that strips that header before any other code can see it.
|
Package headercredential holds the wire format, parser, generator and digest for the client credential carried in the X-Sockguard-Credential header, and the carrier layer that strips that header before any other code can see it. |
|
imagefetch
Package imagefetch resolves a container image reference to its manifest digest, discovers the cosign signatures attached to it in the OCI registry, and reconstructs a sigstore-go verification bundle for each signature so the internal/imagetrust verifier can check it against the operator's configured keys or keyless identities.
|
Package imagefetch resolves a container image reference to its manifest digest, discovers the cosign signatures attached to it in the OCI registry, and reconstructs a sigstore-go verification bundle for each signature so the internal/imagetrust verifier can check it against the operator's configured keys or keyless identities. |
|
imagetrust
Package imagetrust implements cosign-backed signature verification for container images referenced in POST /containers/create requests.
|
Package imagetrust implements cosign-backed signature verification for container images referenced in POST /containers/create requests. |
|
inbound
Package inbound stamps every accepted connection with a non-spoofable listener identity — which configured listener (main or admin) the connection arrived on — and threads it through the request context.
|
Package inbound stamps every accepted connection with a non-spoofable listener identity — which configured listener (main or admin) the connection arrived on — and threads it through the request context. |
|
lookupbudget
Package lookupbudget caps how many upstream inspects one request may spend naming the members of a network or pod.
|
Package lookupbudget caps how many upstream inspects one request may spend naming the members of a network or pod. |
|
otlp
Package otlp is a stdlib-only, opt-in OTLP/HTTP JSON trace exporter.
|
Package otlp is a stdlib-only, opt-in OTLP/HTTP JSON trace exporter. |
|
policybundle
Package policybundle verifies signed policy bundles before sockguard accepts them as authoritative configuration.
|
Package policybundle verifies signed policy bundles before sockguard accepts them as authoritative configuration. |
|
queryparam
Package queryparam reads the query parameters a policy decision depends on.
|
Package queryparam reads the query parameters a policy decision depends on. |
|
ratelimit
Package ratelimit provides per-client token-bucket rate limiting and concurrency capping for the sockguard proxy.
|
Package ratelimit provides per-client token-bucket rate limiting and concurrency capping for the sockguard proxy. |
|
reload
Package reload implements sockguard's hot-reload pipeline.
|
Package reload implements sockguard's hot-reload pipeline. |
|
sdnotify
Package sdnotify implements the small part of systemd's sd_notify protocol sockguard needs: READY=1, WATCHDOG=1 and STOPPING=1 sent as datagrams to the unix socket named by NOTIFY_SOCKET.
|
Package sdnotify implements the small part of systemd's sd_notify protocol sockguard needs: READY=1, WATCHDOG=1 and STOPPING=1 sent as datagrams to the unix socket named by NOTIFY_SOCKET. |
|
sigverify
Package sigverify holds the sigstore-go primitives shared by internal/imagetrust (signed-image verification) and internal/policybundle (signed-config-bundle verification).
|
Package sigverify holds the sigstore-go primitives shared by internal/imagetrust (signed-image verification) and internal/policybundle (signed-config-bundle verification). |
|
testhelp
Package testhelp provides shared test utilities for the sockguard internal packages.
|
Package testhelp provides shared test utilities for the sockguard internal packages. |
|
testhelp/podmanspec
Package podmanspec holds the test helpers that derive a Podman request-body field set from Podman's own Go source: fetch a file at a ref, parse its struct declarations with go/ast, and flatten the embedded structs the way encoding/json does.
|
Package podmanspec holds the test helpers that derive a Podman request-body field set from Podman's own Go source: fetch a file at a ref, parse its struct declarations with go/ast, and flatten the embedded structs the way encoding/json does. |
|
tlsbootstrap
Package tlsbootstrap provisions the certificate material for sockguard's mutual-TLS listener: one CA, one server certificate and one client certificate per named client.
|
Package tlsbootstrap provisions the certificate material for sockguard's mutual-TLS listener: one CA, one server certificate and one client certificate per named client. |
|
ui
Package ui provides stdlib-only terminal styling helpers that respect NO_COLOR, FORCE_COLOR, and TTY detection.
|
Package ui provides stdlib-only terminal styling helpers that respect NO_COLOR, FORCE_COLOR, and TTY detection. |
|
upstream
Package upstream resolves and dials the Docker daemon sockguard proxies to.
|
Package upstream resolves and dials the Docker daemon sockguard proxies to. |
|
upstreamflavor
Package upstreamflavor identifies which container engine sits behind the upstream socket.
|
Package upstreamflavor identifies which container engine sits behind the upstream socket. |
Click to show internal directories.
Click to hide internal directories.