-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from DataDog/jeremy/repo-structure
[CORE] Initial repo structure
- Loading branch information
Showing
21 changed files
with
34,581 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ | |
|
||
# Go workspace file | ||
go.work | ||
|
||
# MacOS | ||
.DS_Store |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/DataDog/KubeHound/pkg/telemetry/log" | ||
) | ||
|
||
func main() { | ||
if err := rootCmd.Execute(); err != nil { | ||
log.I.Fatal(err.Error()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/DataDog/Kubehound/pkg/kubehound/core" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var ( | ||
rootCmd = &cobra.Command{ | ||
Use: "kubehound-local", | ||
Short: "A local Kubehound instance", | ||
Long: `A local instance of Kubehound - a Kubernetes attack path generator`, | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
return core.Launch(context.Background()) | ||
}, | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: "3.7" | ||
|
||
services: | ||
mongodb: | ||
image: mongo | ||
container_name: storedb | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- ./data/mongodb:/data/db | ||
networks: | ||
- kubenet | ||
|
||
janusgraph: | ||
image: janusgraph/janusgraph:latest | ||
container_name: graphdb-ng | ||
ports: | ||
- "8182:8182" | ||
volumes: | ||
- ./data/janus:/data | ||
networks: | ||
- kubenet | ||
|
||
networks: | ||
kubenet: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Spin up the compose with neo4j, mongodb, etc | ||
docker-compose up --force-recreate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
rm -r ./data/mongodb/ | ||
rm -r ./data/neo4j/ | ||
rm -r ./data/janus/ |
Oops, something went wrong.