Skip to content

Messaging service of the OpenRMF tool that tracks and stores all auditable actions across the tool.

License

Notifications You must be signed in to change notification settings

Cingulara/openrmf-msg-audit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Core Build and Test

openrmf-msg-audit

Messaging service to listen for and record all auditable actions across OpenRMF.

  • openrmf.audit.> means any audit record we will read and save

Running the NATS docker images

  • docker run --rm --name nats-main -p 4222:4222 -p 6222:6222 -p 8222:8222 nats:2.1.2-linux
  • this is the default and lets you run a NATS server version 2.x (as of 12/2019)
  • just runs in memory and no streaming (that is separate)

What is required

  • .NET Core 3.x
  • running dotnet add package NATS.Client to add the package
  • dotnet restore to pull in all required libraries
  • The C# NATS client library available at https://github.com/nats-io/csharp-nats

Making your local Docker image

  • make build
  • make latest

creating the database user

  • ~/mongodb/bin/mongo 'mongodb://root:myp2ssw0rd@localhost'
  • use admin
  • db.createUser({ user: "openrmfaudit" , pwd: "openrmf1234!", roles: ["readWriteAnyDatabase"]});
  • use openrmfaudit
  • db.createCollection("Audits");

connecting to the database collection straight

~/mongodb/bin/mongo 'mongodb://openrmfaudit:openrmf1234!@localhost/openrmfaudit?authSource=admin'

List out the Audits you have inserted/updated

db.Audits.find();

About

Messaging service of the OpenRMF tool that tracks and stores all auditable actions across the tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published