-
Notifications
You must be signed in to change notification settings - Fork 67
Log all authorization attempts? #118
Comments
Logging all authorization attempts would currently require modifying Authority, either as a monkey patch or a PR. Here's how logging is currently done. First, Authority.enforce raises an exception if an attempted action is unauthorized. Then this code rescues the exception and calls your configured By default, that's the So to log all attempts at authorization, successful or not, would require modifying Authority.enforce to have it log any attempted access. Eg, it could do That's not a hard change, but I don't know if any users would object to having those extra log messages. We could configure whether to log in that case, but more options == more complexity. |
Thanks @nathanl. I think it's good to have the option. This allows developers to better audit user actions. I would probably have this disabled by default, and be enabled via the rollbar initializer. |
@forced-request I can see why you'd want to be able to log everything. Interested in making a PR? |
I should be able to make that happen. I'll get back to you soon. |
…athanl#118 Added option to enable logging for all authority interactions, as per nathanl#118 Logging will utilize Authority.info, and will only occur in instance within which a SecurityViolation is not generated
Fixed in #119 |
I got a question via Twitter and thought it would be best to make it a discussion here:
The text was updated successfully, but these errors were encountered: