-
Notifications
You must be signed in to change notification settings - Fork 13
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
Auditing task #28
Comments
That's a great idea! We don't have nothing like that internally, we pretty much rely on our tests, so for example for a query that is admin only we have tests asserting it succeeds for admins and fails for regular users. However, we did some pen test preppings already and it was a manual process, where I think a command like that would help. I agree with you that the output may not be 100% accurate, because in the end it's up to the functions One way I can think of doing that is using https://hexdocs.pm/absinthe/Absinthe.Schema.html#types/1 to list all the types defined in the schema and then using the It would be trickier for |
For this, I thought it might be good to output them separately, but with the rule or the callback that would be executed. It would then be up to the auditor to decide if that is desired or not.
Yeah, this sounds like a good idea, optionally showing
The field types do have a list of middleware, and we already use them to check if the middleware is added correctly. We could use this to check any configuration added to it too, although it probably won't be trivial at all. |
While working on this, I was thinking of a possibility of having a command that outputs all the objects/queries that a role has access to. This might not be completely possible, because some rules might be dependent on the object/scope/actor. Do you internally have a way to audit roles and authorization?
The text was updated successfully, but these errors were encountered: