Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.31 KB

README_security.md

File metadata and controls

35 lines (28 loc) · 1.31 KB

gateleen-security

Schema validation

Updating the acl (Access Control List) resources requires a validation against a schema to be positive. Check the schema gateleen_security_schema_acl

Log acl configuration changes

To log the payload of changes to the acl configurations, the RequestLogger can be used.

Make sure to instantiate the RequestLoggingConsumer by calling

RequestLoggingConsumer requestLoggingConsumer = new RequestLoggingConsumer(vertx, loggingResourceManager);

To enable the logging of the acl configurations, make sure the url to the acl configuration is enabled in the logging resource.

Example:

{
  "headers": [],
  "payload": {
    "filters": [
      {
        "url": "/playground/server/security/v1/acls/.*",
        "method": "PUT"
      }
    ]
  }
}

Also you have to enable the logging on the Authorizer by calling

authorizer.enableResourceLogging(true);