Skip to content

Commit

Permalink
Add dynamic IP whitelisting with iptables (#75)
Browse files Browse the repository at this point in the history
Add dynamic IP whitelisting with iptables
  • Loading branch information
benwh authored Aug 7, 2019
2 parents 4d0588f + 96a664f commit 1cac1cd
Show file tree
Hide file tree
Showing 288 changed files with 1,991 additions and 64,516 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
- checkout
- run: go get github.com/golang/dep/cmd/dep
- run: dep ensure -v && dep prune && test -z "$(git status --porcelain -- Gopkg.toml Gopkg.lock vendor)"
- run: dep ensure -v && test -z "$(git status --porcelain -- Gopkg.toml Gopkg.lock vendor)"
- run: mkdir -p $TEST_RESULTS
- run: make test

Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ nfpm:
"cmd/draupnir-destroy-instance": "/usr/local/bin/draupnir-destroy-instance"
"cmd/draupnir-finalise-image": "/usr/local/bin/draupnir-finalise-image"
"cmd/draupnir-destroy-image": "/usr/local/bin/draupnir-destroy-image"
"scripts/iptables": "/usr/lib/draupnir/bin/iptables"
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
Expand Down
109 changes: 59 additions & 50 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
# name = "github.com/x/y"
# version = "2.4.0"

[prune]
go-tests = true
unused-packages = true

[[constraint]]
name = "github.com/gorilla/mux"
Expand Down Expand Up @@ -64,3 +67,7 @@
[[constraint]]
branch = "master"
name = "github.com/prometheus/common"

[[constraint]]
name = "github.com/coreos/go-iptables"
version = "0.4.2"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ migrate:
sql-migrate up

dump-schema:
pg_dump -sxOf structure.sql draupnir
pg_dump --schema-only --no-privileges --no-owner --file structure.sql draupnir

test:
go test ./...
Expand Down
Loading

0 comments on commit 1cac1cd

Please sign in to comment.