Code Monkey home page Code Monkey logo

datawave-audit-service's Introduction

Audit Service

Apache License Build Status

The audit service is a DATAWAVE microservice that provides query audit capabilities.

Root Context

https://host:port/audit/v1/

User API

Method Operation Description Request Body
POST /audit Sends an audit request [AuditRequest]

Getting Started

  1. 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).
  2. 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
    
  3. Ensure that the PKI Dir is checked out locally somewhere, and set in the environment variable PKI_DIR.

  4. 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

datawave-audit-service's People

Contributors

brianloss avatar jwomeara avatar fineanddandy avatar ivakegg avatar lbschanno avatar tomnelson avatar

Watchers

James Cloos avatar

Forkers

thexdesk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.