The audit service is a DATAWAVE microservice that provides query audit capabilities.
Method | Operation | Description | Request Body |
---|---|---|---|
POST |
/audit | Sends an audit request | [AuditRequest] |
-
First, refer to services/README for launching the config and authorization services.
- The authorization service should be launched with the
mock
profile to leverage test PKI materials and associated user configuration (see authorization-mock.yml).
- The authorization service should be launched with the
-
Launch this service as follows, with the
remoteauth
profile to enable client cert authentication...java -jar service/target/audit-service*-exec.jar --spring.profiles.active=dev,remoteauth,mock
-
Ensure that the PKI Dir is checked out locally somewhere, and set in the environment variable
PKI_DIR
. -
Submit an audit request using curl.
curl -q -k --cacert $PKI_DIR/ca.pem -E $PKI_DIR/user.pem \ --data-urlencode "auditUserDN=testUser" \ --data-urlencode "auditType=LOCALONLY" \ --data-urlencode "query=no query--testing the audit service" \ --data-urlencode "queryDate=1514764800000" \ --data-urlencode "auditColumnVisibility=USER" \ --data-urlencode "logicClass=EventQuery" \ --data-urlencode "auths=TEST" \ https://localhost:8743/audit/v1/audit
See sample_configuration/audit-dev.yml and configure as desired