-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#614 add casbin for authorization #787
Conversation
Hi @peterbourgon, the tests failed on metrics/pcp - TestInconsistentLabelCardinality, it should be unrelated with this PR (auth/casbin) can help to advise how should we continue ? |
Oh cool! Ignore the error, I'll fix it up. Primary review comment right now, please fix up all the doc comments to be valid English sentences with capitalization and punctuation, word-wrapped at 80 columns. |
If you rebase the test errors should go away. |
thanks @peterbourgon, the pcp is good now but the circleci got err on sd/etcdv3 integration test part |
auth/casbin/middleware.go
Outdated
const ( | ||
// CasbinModelContextKey holds the key to store the access control model | ||
// in context, it can be a path to configuration file or a casbin/model | ||
// Model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need punctuation etc. on all doc comments like this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submitted and update, would it be like that ? sorry kinda new into this.
Thanks! |
Enhancement #614
Add into the middleware: casbin
Design to be review are
auth
directory the right place to put casbinany further feedback please help to add, thanks !
Disclaimer -- testdata are actually taken from casbin repository test