Panko Sample Policy¶
The following is a sample panko policy file that has been auto-generated from default policy values in code. If you’re using the default policies, then the maintenance of this file is not necessary, and it should not be copied into a deployment. Doing so will result in duplicate policy definitions. It is here to help explain which policy operations protect specific panko APIs, but it is not suggested to copy and paste into a deployment unless you’re planning on providing a different policy for an operation that is not the default.
The sample policy file can also be viewed in
file form
.
#"context_is_admin": "role:admin"
# Return the user and project the requestshould be limited to
# GET /v2/events
# GET /v2/events/{message_id}
#"segregation": "rule:context_is_admin"
# Return all events matching the query filters.
# GET /v2/events
#"telemetry:events:index": ""
# Return a single event with the given message id.
# GET /v2/events/{message_id}
#"telemetry:events:show": ""