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

Commit

Permalink
upgrade go-sec dependency for path substr access control
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Oct 22, 2020
1 parent bace35f commit 309f191
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 24 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ require (
github.com/grandcat/zeroconf v1.0.1-0.20200528163356-cfc8183341d9
github.com/justinas/alice v0.0.0-20160512134231-052b8b6c18ed
github.com/kelseyhightower/envconfig v1.4.0
github.com/linksmart/go-sec v1.3.3
github.com/linksmart/go-sec v1.4.0
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511
github.com/miekg/dns v1.1.29 // indirect
github.com/onsi/ginkgo v1.12.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ github.com/linksmart/go-sec v1.3.2 h1:FSW9bvXGFZouNAqJYuv9Kh7Bfhbkezt9V/6/hbgMbA
github.com/linksmart/go-sec v1.3.2/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
github.com/linksmart/go-sec v1.3.3 h1:i+wVndlGK4jWujpFWxn1rXZpxkSvDj8GLf9KXAZkTZk=
github.com/linksmart/go-sec v1.3.3/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
github.com/linksmart/go-sec v1.3.4-0.20201015112134-ae3c2c66dac4 h1:uAM2jQ2nxYFpe+1wbtxG2iU4GLDZzKGi6cl2TLq7hnk=
github.com/linksmart/go-sec v1.3.4-0.20201015112134-ae3c2c66dac4/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
github.com/linksmart/go-sec v1.4.0 h1:8MjTfzRc3KBpCECpNNXOBC2/zupVlplc1N5bHFABvHs=
github.com/linksmart/go-sec v1.4.0/go.mod h1:W9EZRLqptioAzaxMjWEKzd5jye53aoRzMi4KO+FCFjY=
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511 h1:JNHuaKtZUDsgbGJ5bdFBZ4vIUlJB7EBvjLdSaNOFatQ=
github.com/linksmart/service-catalog/v3 v3.0.0-beta.1.0.20200302143206-92739dd2a511/go.mod h1:2C0k5NvYvMgX2y095WCfuhpfZyKrZXX/TjYxlgR9K8g=
github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM=
Expand Down
12 changes: 8 additions & 4 deletions sample_conf/thing-directory.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@
"enabled": true,
"rules": [
{
"resources": ["/td"],
"paths": ["/td"],
"methods": ["GET","POST", "PUT", "DELETE"],
"users": ["admin"],
"groups": []
"groups": [],
"clients": [],
"denyPathSubstrings": []
},
{
"resources": ["/td"],
"paths": ["/td"],
"methods": ["GET"],
"users": [],
"groups": ["anonymous"]
"groups": ["anonymous"],
"clients": [],
"denyPathSubstrings": []
}
]
}
Expand Down

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

34 changes: 24 additions & 10 deletions vendor/github.com/linksmart/go-sec/authz/authz.go

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

1 change: 1 addition & 0 deletions vendor/github.com/linksmart/go-sec/authz/claims.go

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

29 changes: 21 additions & 8 deletions vendor/github.com/linksmart/go-sec/authz/config.go

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

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ github.com/justinas/alice
# github.com/kelseyhightower/envconfig v1.4.0
## explicit
github.com/kelseyhightower/envconfig
# github.com/linksmart/go-sec v1.3.3
# github.com/linksmart/go-sec v1.4.0
## explicit
github.com/linksmart/go-sec/auth/keycloak/obtainer
github.com/linksmart/go-sec/auth/keycloak/validator
Expand Down

0 comments on commit 309f191

Please sign in to comment.