Documentation ¶
Overview ¶
Package opa provides a methods for approving or denying requests to docker via an opa policy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerHandler ¶
type DockerHandler interface { ValidateRequest(r *http.Request) (bool, error) ValidateDockerFile(r *http.Request, dockerFile string) (bool, error) }
DockerHandler validates either a regular request or a build request (with supplied dockerfile)
type DockerOpaHandler ¶
DockerOpaHandler contains the policy files for authorizing requests
func (DockerOpaHandler) ValidateDockerFile ¶
ValidateDockerFile validate the dockerfile passed through the given request verifies against the DockerfilePolicyFile using the path data.docker.build.allow
func (DockerOpaHandler) ValidateRequest ¶
func (p DockerOpaHandler) ValidateRequest(r *http.Request) (bool, error)
ValidateRequest validates a standard docker request (not build) verifies against the ProxyPolicyFile using the path data.docker.authz.allow
Click to show internal directories.
Click to hide internal directories.