Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/moby/buildkit v0.27.1
github.com/moby/go-archive v0.2.0
github.com/opencontainers/go-digest v1.0.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260225162449-25895fc5ce56
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260303132029-414fb71b4faf
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260225162449-25895fc5ce56 h1:LrMPtquQCTVrHlb1uX+Sf0wYtZIQGOdnNUquq5RP5pc=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260225162449-25895fc5ce56/go.mod h1:EG4RjSWH4YiEB6bPmLxzkDm7GsEqLcXNTCwigMNapxQ=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260303132029-414fb71b4faf h1:bRmBaL9slf/ACeBew9LmivAzEiLcad5WLUinMDqdUrI=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260303132029-414fb71b4faf/go.mod h1:EG4RjSWH4YiEB6bPmLxzkDm7GsEqLcXNTCwigMNapxQ=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=
Expand Down
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ 3 ACL rules successfully added.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 18112 tcp inbound allow Allow All
1.2.3.4/32 18112 tcp inbound allow some-unique-description
10.10.10.10/32 18112 tcp inbound allow some-unique-description
192.168.1.0/30 18112 tcp inbound allow some-unique-description
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 18112
1.2.3.4/32 tcp inbound allow some-unique-description 18112
10.10.10.10/32 tcp inbound allow some-unique-description 18112
192.168.1.0/30 tcp inbound allow some-unique-description 18112
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 18112,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 18112
},
{
"ip": "1.2.3.4/32",
"port": 18112,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "some-unique-description"
"description": "some-unique-description",
"port": 18112
},
{
"ip": "10.10.10.10/32",
"port": 18112,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "some-unique-description"
"description": "some-unique-description",
"port": 18112
},
{
"ip": "192.168.1.0/30",
"port": 18112,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "some-unique-description"
"description": "some-unique-description",
"port": 18112
}
],
"Success": {
Expand Down
26 changes: 13 additions & 13 deletions internal/namespaces/rdb/v1/testdata/test-add-acl-multiple.golden
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ 3 ACL rules successfully added.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 29920 tcp inbound allow Allow All
1.2.3.4/32 29920 tcp inbound allow Allow 1.2.3.4/32
10.10.10.10/32 29920 tcp inbound allow Allow 10.10.10.10/32
192.168.1.0/30 29920 tcp inbound allow Allow 192.168.1.0/30
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 29920
1.2.3.4/32 tcp inbound allow Allow 1.2.3.4/32 29920
10.10.10.10/32 tcp inbound allow Allow 10.10.10.10/32 29920
192.168.1.0/30 tcp inbound allow Allow 192.168.1.0/30 29920
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 29920,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 29920
},
{
"ip": "1.2.3.4/32",
"port": 29920,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow 1.2.3.4/32"
"description": "Allow 1.2.3.4/32",
"port": 29920
},
{
"ip": "10.10.10.10/32",
"port": 29920,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow 10.10.10.10/32"
"description": "Allow 10.10.10.10/32",
"port": 29920
},
{
"ip": "192.168.1.0/30",
"port": 29920,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow 192.168.1.0/30"
"description": "Allow 192.168.1.0/30",
"port": 29920
}
],
"Success": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ ACL rule 1.2.3.4/32 successfully added.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 11942 tcp inbound allow Allow All
1.2.3.4/32 11942 tcp inbound allow some-unique-description
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 11942
1.2.3.4/32 tcp inbound allow some-unique-description 11942
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 11942,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 11942
},
{
"ip": "1.2.3.4/32",
"port": 11942,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "some-unique-description"
"description": "some-unique-description",
"port": 11942
}
],
"Success": {
Expand Down
14 changes: 7 additions & 7 deletions internal/namespaces/rdb/v1/testdata/test-add-acl-simple.golden
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ ACL rule 1.2.3.4/32 successfully added.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 27078 tcp inbound allow Allow All
1.2.3.4/32 27078 tcp inbound allow Allow 1.2.3.4/32
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 27078
1.2.3.4/32 tcp inbound allow Allow 1.2.3.4/32 27078
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 27078,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 27078
},
{
"ip": "1.2.3.4/32",
"port": 27078,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow 1.2.3.4/32"
"description": "Allow 1.2.3.4/32",
"port": 27078
}
],
"Success": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ 1 ACL rules successfully deleted (2 were not set).
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 5849 tcp inbound allow Allow All
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 5849
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 5849,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 5849
}
],
"Success": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ 3 ACL rules successfully deleted.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 27884 tcp inbound allow Allow All
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 27884
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 27884,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 27884
}
],
"Success": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ ACL rule 0.0.0.0/0 successfully deleted.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ max_parallel_workers_per_gather 0
work_mem 4

ACLs:
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 27851 tcp inbound allow Allow All
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 27851
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"created_at": "1970-01-01T00:00:00.0Z",
Expand Down Expand Up @@ -126,11 +126,11 @@ IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
"acls": [
{
"ip": "0.0.0.0/0",
"port": 27851,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 27851
}
]
}
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
✅ 3 ACL rules successfully added.
IP PORT PROTOCOL DIRECTION ACTION DESCRIPTION
0.0.0.0/0 29257 tcp inbound allow Allow All
1.1.1.1/32 29257 tcp inbound allow first
2.2.2.2/32 29257 tcp inbound allow second
3.3.3.3/32 29257 tcp inbound allow default
IP PROTOCOL DIRECTION ACTION DESCRIPTION PORT
0.0.0.0/0 tcp inbound allow Allow All 29257
1.1.1.1/32 tcp inbound allow first 29257
2.2.2.2/32 tcp inbound allow second 29257
3.3.3.3/32 tcp inbound allow default 29257
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
{
"Rules": [
{
"ip": "0.0.0.0/0",
"port": 29257,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "Allow All"
"description": "Allow All",
"port": 29257
},
{
"ip": "1.1.1.1/32",
"port": 29257,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "first"
"description": "first",
"port": 29257
},
{
"ip": "2.2.2.2/32",
"port": 29257,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "second"
"description": "second",
"port": 29257
},
{
"ip": "3.3.3.3/32",
"port": 29257,
"protocol": "tcp",
"direction": "inbound",
"action": "allow",
"description": "default"
"description": "default",
"port": 29257
}
],
"Success": {
Expand Down
Loading
Loading