Skip to content

Commit defbd24

Browse files
author
Mike Vanbuskirk
committed
rename to logwarden.
- expose port 8080 on the container
1 parent f9b49d8 commit defbd24

File tree

12 files changed

+29
-28
lines changed

12 files changed

+29
-28
lines changed

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
builds:
2-
- binary: gcp-auditor
2+
- binary: logwarden
33
ldflags:
4-
- -X 'github.com/trufflesecurity/gcp-auditor/pkg/version.BuildVersion={{ .Version }}'
4+
- -X 'github.com/trufflesecurity/logwarden/pkg/version.BuildVersion={{ .Version }}'
55
env: [CGO_ENABLED=0]
66
goos:
77
- linux

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ RUN apk add --no-cache git ca-certificates \
44
&& rm -rf /var/cache/apk/* && \
55
update-ca-certificates
66
WORKDIR /usr/bin/
7-
COPY gcp-auditor .
8-
ENTRYPOINT ["/usr/bin/gcp-auditor"]
7+
COPY logwarden .
8+
EXPOSE 8080
9+
ENTRYPOINT ["/usr/bin/logwarden"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: run fmt
22

33
run:
4-
go run . --project truffle-audit --subscription gcp-auditor-test
4+
go run . --project truffle-audit --subscription logwarden-test
55

66
fmt:
77
opa fmt policy/*/*.rego -w

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# gcp-auditor
1+
# logwarden
22

33
Process all of your GCP audit logs against OPA Rego policies and alert for violations in real-time.
44

55
Some amount of policy coverage for MITRE ATT&CK Tactics are included.
66

7-
![Slack alerts created by gcp-auditor](resources/slack_alerts.png)
7+
![Slack alerts created by logwarden](resources/slack_alerts.png)
88

99
## Usage
1010

1111
```bash
12-
$ gcp-auditor --help
13-
usage: gcp-auditor --project=PROJECT --subscription=SUBSCRIPTION [<flags>]
12+
$ logwarden --help
13+
usage: logwarden --project=PROJECT --subscription=SUBSCRIPTION [<flags>]
1414

1515
GCP Auditor is a tool to audit GCP logs against a set of rego policies.
1616

@@ -19,7 +19,7 @@ Flags:
1919
--policies="policy" Path to policies folder.
2020
--project=PROJECT GCP Project ID.
2121
--subscription=SUBSCRIPTION Pub/Sub subscription to audit.
22-
--secret-name="gcp-auditor" GCP Secret name to use for GCP Auditor.
22+
--secret-name="logwarden" GCP Secret name to use for GCP Auditor.
2323
--json Output results as JSON.
2424
--slack-webhook Enable Slack webhook.
2525
--webhook Enable JSON HTTP POST webhook output.
@@ -35,8 +35,8 @@ WEBHOOK_URL=https://your.server/post
3535

3636
## Installation
3737

38-
GCP-Auditor requires your audit logs to be published to GCP pub/sub via a logging sink.
39-
We've provided terraform code to deploy GCP-Auditor via Cloud Run, create organization logging sink, a pub/sub topic+subscription, and configure IAM for them to work together.
38+
Logwarden requires your audit logs to be published to GCP pub/sub via a logging sink.
39+
We've provided terraform code to deploy Logwarden via Cloud Run, create organization logging sink, a pub/sub topic+subscription, and configure IAM for them to work together.
4040

4141
### Terraform (TODO)
4242

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/trufflesecurity/gcp-auditor
1+
module github.com/trufflesecurity/logwarden
22

33
go 1.19
44

internal/engine/engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"cloud.google.com/go/pubsub"
1313
"github.com/open-policy-agent/opa/ast"
1414
"github.com/open-policy-agent/opa/rego"
15-
"github.com/trufflesecurity/gcp-auditor/internal/outputs"
16-
"github.com/trufflesecurity/gcp-auditor/internal/result"
15+
"github.com/trufflesecurity/logwarden/internal/outputs"
16+
"github.com/trufflesecurity/logwarden/internal/result"
1717
)
1818

1919
func New(ctx context.Context, policyPath string, outputs []outputs.Output) (*engine, error) {

internal/outputs/human/human.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/fatih/color"
8-
"github.com/trufflesecurity/gcp-auditor/internal/result"
8+
"github.com/trufflesecurity/logwarden/internal/result"
99
"golang.org/x/text/cases"
1010
"golang.org/x/text/language"
1111
)

internal/outputs/json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"fmt"
77
"log"
88

9-
"github.com/trufflesecurity/gcp-auditor/internal/result"
9+
"github.com/trufflesecurity/logwarden/internal/result"
1010
)
1111

1212
type JSON struct {

internal/outputs/output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package outputs
33
import (
44
"context"
55

6-
"github.com/trufflesecurity/gcp-auditor/internal/result"
6+
"github.com/trufflesecurity/logwarden/internal/result"
77
)
88

99
type Output interface {

internal/outputs/slack/slack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"fmt"
88
"net/http"
99

10-
"github.com/trufflesecurity/gcp-auditor/internal/result"
10+
"github.com/trufflesecurity/logwarden/internal/result"
1111
"golang.org/x/text/cases"
1212
"golang.org/x/text/language"
1313
)

0 commit comments

Comments
 (0)