-
Notifications
You must be signed in to change notification settings - Fork 72
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
Inet Service Model Updates #3561
base: master
Are you sure you want to change the base?
Conversation
Feedback on
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3561 +/- ##
==========================================
- Coverage 97.72% 97.62% -0.11%
==========================================
Files 237 237
Lines 50619 50619
==========================================
- Hits 49467 49416 -51
- Misses 1152 1203 +51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
synapse/models/inet.py
Outdated
'doc': 'The name of the group on this platform.'}), | ||
('profile', ('ps:contact', {}), { |
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.
'doc': 'The name of the group on this platform.'}), | |
('profile', ('ps:contact', {}), { | |
'doc': 'The name of the group on this platform.'}), | |
('profile', ('ps:contact', {}), { |
Co-authored-by: Cisphyx <cisphyx@vertex.link>
Co-authored-by: Cisphyx <cisphyx@vertex.link>
Co-authored-by: Cisphyx <cisphyx@vertex.link>
Co-authored-by: Cisphyx <cisphyx@vertex.link>
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.
Mostly minor/clarifications, a few issues.
'doc': 'The period where the session was valid.'}), | ||
)), | ||
|
||
('inet:service:login', {}, ( |
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.
Not sure several of the props declared on inet:service:object (used by inet:service:action) are applicable here, or if they are they represent a specialized use case (creator, owner, created, removed?). Those seem more applicable to object-type access vs. authentication. I'm ok with having edge case props on a form but will caveat that everyday users may find it confusing.
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.
Hm, agreed. Lets talk about it in the regular weekly meet :)
|
||
('inet:service:access', {}, ( | ||
|
||
('resource', ('inet:service:resource', {}), { |
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.
Should this include a reference to a inet:service:rule, inet:service:permission, or to indicate the type of access attempted? Leave as TODO for now?
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.
Would the referenced rule essentially mean "this is the rule which allowed/denied the access" ?
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.
Hrrm. Was actually thinking of "type of access requested". If access fails, an error message (if available) might let me know what someone tried to do ("thesilence attempted to delete visi's macro"). But in the case of "access succeeded" (or the absence of an error message) , the form doesn't seem to capture what the requestor did / tried to do.
"Type of access requested" is not necessarily 1:1 with "rule that allowed or denied access". 🤔 Do we think it's a close enough proxy? Am I down a rabbit hole?
Co-authored-by: therealsilence <therealsilence@users.noreply.github.com>
Co-authored-by: therealsilence <therealsilence@users.noreply.github.com>
Co-authored-by: Cisphyx <cisphyx@vertex.link>
Co-authored-by: therealsilence <therealsilence@users.noreply.github.com>
No description provided.