Skip to content

Commit

Permalink
receipe: new recipe for audit service
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Sep 6, 2023
1 parent fb35284 commit 146b400
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkg/recipe/audit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: audit
description: "satellite audit service"
add:
- name: satellite-audit
label:
- storj
- core
image: img.dev.storj.io/storjup/storj:1.83.2
command:
- satellite
- run
- auditor
- --defaults=dev
- '--identity-dir={{ Environment .This "identityDir" }}'
persistence:
- /var/lib/storj/.local/share/storj
config:
STORJ_DATABASE: '{{ Environment "cockroach" "main" }}'
STORJ_METAINFO_DATABASE_URL: '{{ Environment "cockroach" "metainfo" }}'
STORJ_DEBUG_ADDR: '{{ Host .This "listen" }}:{{ Port .This "debug"}}'
STORJ_ORDERS_ENCRYPTION_KEYS: '0100000000000000=0100000000000000000000000000000000000000000000000000000000000000'
STORJ_LOG_LEVEL: debug
STORJ_METRICS_APP_SUFFIX: sim
environment:
STORJ_WAIT_FOR_SATELLITE: 1
STORJ_DEFAULTS: dev
STORJ_IDENTITY_DIR: '{{ Environment .This "identityDir" }}'
STORJ_USE_PREDEFINED_IDENTITY: 1
4 changes: 4 additions & 0 deletions pkg/recipe/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ var uplink []byte
//go:embed repair.yaml
var repair []byte

//go:embed audit.yaml
var audit []byte

// Defaults is a map for recipes included in the binary.
var Defaults = map[string][]byte{
"minimal": minimal,
Expand All @@ -57,4 +60,5 @@ var Defaults = map[string][]byte{
"ranged-loop": rangedLoop,
"uplink": uplink,
"repair": repair,
"audit": audit,
}
3 changes: 3 additions & 0 deletions pkg/runtime/compose/compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ func NewCompose(dir string) (*Compose, error) {
"satellite-repair": {
"identityDir": "/var/lib/storj/.local/share/storj/identity/satellite-api/",
},
"satellite-audit": {
"identityDir": "/var/lib/storj/.local/share/storj/identity/satellite-api/",
},
"linksharing": {
"webDir": "/var/lib/storj/pkg/linksharing/web/",
"staticDir": "/var/lib/storj/pkg/linksharing/web/static",
Expand Down
3 changes: 3 additions & 0 deletions pkg/runtime/nomad/nomad.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func NewNomad(dir string, name string) (*Nomad, error) {
"satellite-repair": {
"identityDir": "/var/lib/storj/identities/1",
},
"satellite-audit": {
"identityDir": "/var/lib/storj/identities/1",
},
"linksharing": {
"webDir": "/var/lib/storj/pkg/linksharing/web/",
"staticDir": "/var/lib/storj/pkg/linksharing/web/static",
Expand Down
1 change: 1 addition & 0 deletions pkg/runtime/runtime/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var basePorts = map[string]int{
"satellite-admin": 10400,
"satellite-rangedloop": 10500,
"satellite-repair": 10600,
"satellite-audit": 10700,
"storagenode": 30000,
"gateway-mt": 20000,
"authservice": 21000,
Expand Down
1 change: 1 addition & 0 deletions pkg/runtime/standalone/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ var runnerSupported = map[string]string{
"satellite-api": "storj",
"satellite-rangedloop": "storj",
"satellite-repair": "storj",
"satellite-audit": "storj",
"satellite-gc": "storj",
"satellite": "storj",
"storagenode": "storj",
Expand Down

0 comments on commit 146b400

Please sign in to comment.