The mesh-audit-logger container goes with its Dockerfile, build bases and bus credential: its one entrypoint is a load of one bundle, which subscribes to every event through the runtime and writes the trail at the host path the container used to mount.
43 lines
678 B
JSON
43 lines
678 B
JSON
{
|
|
"module": "audit-logger",
|
|
"version": "1",
|
|
"slug": "audit",
|
|
"consumes": [
|
|
"**"
|
|
],
|
|
"build": {
|
|
"artifacts": [
|
|
{
|
|
"name": "code",
|
|
"kind": "bundle",
|
|
"language": "typescript",
|
|
"entrypoints": [
|
|
"index.js"
|
|
],
|
|
"loads": [
|
|
"index.js"
|
|
],
|
|
"env": {
|
|
"AUDIT_LOG": "${dir:trail}/audit.log"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"resources": [
|
|
{
|
|
"id": "state",
|
|
"type": "directory",
|
|
"mode": "0700",
|
|
"place": "."
|
|
},
|
|
{
|
|
"id": "trail",
|
|
"type": "directory",
|
|
"mode": "0700"
|
|
}
|
|
],
|
|
"capabilities": [
|
|
"container-runtime"
|
|
]
|
|
}
|