Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 309f191

Browse files
committed
upgrade go-sec dependency for path substr access control
1 parent bace35f commit 309f191

8 files changed

Lines changed: 62 additions & 24 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/grandcat/zeroconf v1.0.1-0.20200528163356-cfc8183341d9
1313
github.com/justinas/alice v0.0.0-20160512134231-052b8b6c18ed
1414
github.com/kelseyhightower/envconfig v1.4.0
15-
github.com/linksmart/go-sec v1.3.3
15+
github.com/linksmart/go-sec v1.4.0
1616
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511
1717
github.com/miekg/dns v1.1.29 // indirect
1818
github.com/onsi/ginkgo v1.12.0 // indirect

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ github.com/linksmart/go-sec v1.3.2 h1:FSW9bvXGFZouNAqJYuv9Kh7Bfhbkezt9V/6/hbgMbA
5050
github.com/linksmart/go-sec v1.3.2/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
5151
github.com/linksmart/go-sec v1.3.3 h1:i+wVndlGK4jWujpFWxn1rXZpxkSvDj8GLf9KXAZkTZk=
5252
github.com/linksmart/go-sec v1.3.3/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
53+
github.com/linksmart/go-sec v1.3.4-0.20201015112134-ae3c2c66dac4 h1:uAM2jQ2nxYFpe+1wbtxG2iU4GLDZzKGi6cl2TLq7hnk=
54+
github.com/linksmart/go-sec v1.3.4-0.20201015112134-ae3c2c66dac4/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
55+
github.com/linksmart/go-sec v1.4.0 h1:8MjTfzRc3KBpCECpNNXOBC2/zupVlplc1N5bHFABvHs=
56+
github.com/linksmart/go-sec v1.4.0/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
5357
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511 h1:JNHuaKtZUDsgbGJ5bdFBZ4vIUlJB7EBvjLdSaNOFatQ=
5458
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511/go.mod h1:2C0k5NvYvMgX2y095WCfuhpfZyKrZXX/TjYxlgR9K8g=
5559
github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM=

sample_conf/thing-directory.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@
2727
"enabled": true,
2828
"rules": [
2929
{
30-
"resources": ["/td"],
30+
"paths": ["/td"],
3131
"methods": ["GET","POST", "PUT", "DELETE"],
3232
"users": ["admin"],
33-
"groups": []
33+
"groups": [],
34+
"clients": [],
35+
"denyPathSubstrings": []
3436
},
3537
{
36-
"resources": ["/td"],
38+
"paths": ["/td"],
3739
"methods": ["GET"],
3840
"users": [],
39-
"groups": ["anonymous"]
41+
"groups": ["anonymous"],
42+
"clients": [],
43+
"denyPathSubstrings": []
4044
}
4145
]
4246
}

vendor/github.com/linksmart/go-sec/auth/keycloak/validator/validator.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/linksmart/go-sec/authz/authz.go

Lines changed: 24 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/linksmart/go-sec/authz/claims.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/linksmart/go-sec/authz/config.go

Lines changed: 21 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ github.com/justinas/alice
4343
# github.com/kelseyhightower/envconfig v1.4.0
4444
## explicit
4545
github.com/kelseyhightower/envconfig
46-
# github.com/linksmart/go-sec v1.3.3
46+
# github.com/linksmart/go-sec v1.4.0
4747
## explicit
4848
github.com/linksmart/go-sec/auth/keycloak/obtainer
4949
github.com/linksmart/go-sec/auth/keycloak/validator

0 commit comments

Comments
 (0)