Documentation
¶
Overview ¶
Package caddyopenappsec is the root package of the caddy-openappsec module. It imports internal packages so their init-time registration runs when this module is compiled as part of a Caddy build.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
caddy
command
Command caddy builds a Caddy server with the caddy-openappsec module compiled in.
|
Command caddy builds a Caddy server with the caddy-openappsec module compiled in. |
|
mockengine
command
Command mockengine runs the scriptable mock open-appsec engine as a standalone process for local E2E. It serves the engine over the transport chosen with -transport: the default "memory" mode listens on an in-memory address (a plain registry key — no sockets, no shared memory), while "socket" mode binds a real TCP listener for cross-process E2E. Either way it answers the two-phase registration handshake, and replies to requests per the chosen scenario:
|
Command mockengine runs the scriptable mock open-appsec engine as a standalone process for local E2E. It serves the engine over the transport chosen with -transport: the default "memory" mode listens on an in-memory address (a plain registry key — no sockets, no shared memory), while "socket" mode binds a real TCP listener for cross-process E2E. Either way it answers the two-phase registration handshake, and replies to requests per the chosen scenario: |
|
internal
|
|
|
app
Package app implements the caddy.App lifecycle for the caddy-openappsec module.
|
Package app implements the caddy.App lifecycle for the caddy-openappsec module. |
|
body
Package body provides body-handling primitives for the openappsec Caddy attachment: request-body decompression for inspection, chunking of the decompressed stream into protocol BODY_CHUNK payloads, response-side buffering with a passthrough policy, and response re-compression.
|
Package body provides body-handling primitives for the openappsec Caddy attachment: request-body decompression for inspection, chunking of the decompressed stream into protocol BODY_CHUNK payloads, response-side buffering with a passthrough policy, and response re-compression. |
|
config
Package config defines the configuration types for the caddy-openappsec module.
|
Package config defines the configuration types for the caddy-openappsec module. |
|
handler
Package handler implements the HTTP request handler that integrates with the open-appsec engine.
|
Package handler implements the HTTP request handler that integrates with the open-appsec engine. |
|
mock
Package mock implements a scriptable stand-in for the open-appsec engine, served over any transport.Listener.
|
Package mock implements a scriptable stand-in for the open-appsec engine, served over any transport.Listener. |
|
protocol
Package protocol encodes and decodes the open-appsec attachment wire protocol.
|
Package protocol encodes and decodes the open-appsec attachment wire protocol. |
|
transport
Package transport defines the byte-oriented channel between the Caddy attachment and the open-appsec engine, plus an in-process implementation used by unit tests and the mock engine.
|
Package transport defines the byte-oriented channel between the Caddy attachment and the open-appsec engine, plus an in-process implementation used by unit tests and the mock engine. |
|
transport/linux
Package linux is the production transport between the Caddy attachment and the open-appsec engine, for linux builds.
|
Package linux is the production transport between the Caddy attachment and the open-appsec engine, for linux builds. |
|
transport/memory
Package memory implements the transport interfaces with in-process pipes, addressed by a string that stands in for the engine socket path of the future linux implementation.
|
Package memory implements the transport interfaces with in-process pipes, addressed by a string that stands in for the engine socket path of the future linux implementation. |
|
transport/socket
Package socket implements the transport interfaces over real TCP sockets, so the Caddy process and a mock engine process can talk cross-process.
|
Package socket implements the transport interfaces over real TCP sockets, so the Caddy process and a mock engine process can talk cross-process. |
Click to show internal directories.
Click to hide internal directories.