Documentation
¶
Overview ¶
Package authzmatrix loads the authn/authz expectation matrix kept in docs/security/authz-matrix.json and applies a role's credentials to a test request. The services' conformance tests use it to check every route against the documented allow and deny outcome for anonymous, user, admin and ingest callers.
Index ¶
Constants ¶
View Source
const ( RoleAnon = "anon" RoleUserKey = "user-key" RoleAdminKey = "admin-key" RoleIngestKey = "ingest-key" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Row ¶
type Row struct {
Service string `json:"service"`
Path string `json:"path"`
Method string `json:"method"`
Role string `json:"role"`
Expect int `json:"expect,omitempty"`
ExpectAuthenticated bool `json:"expect_authenticated,omitempty"`
}
Row is one authn/authz expectation from docs/security/authz-matrix.json.
Click to show internal directories.
Click to hide internal directories.