-
Notifications
You must be signed in to change notification settings - Fork 3
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
Creating audit domain #178
Conversation
ffb3314
to
857d979
Compare
I've done most of the work for this already with the One main feature will need to be implemented as well. We need to support selecting multiple event paths at once using a dot path format of Simplifying the list is as simple as sorting the paths and removing and duplicate paths or paths that are strictly a sub path. When sorted only the subsequent paths need to be compared. Once we have a simplified subset of the paths we can create an iterator for each path. Then combine the output of these iterators into a single iterator by comparing the head event of each path and reading them off in the order of the event ID. |
I could add the logic for handling multiple event paths to the |
hmm i think multiple paths might be something to consider to add to the actual Audit class rather than just the CLI |
I agree, there is too much surface area for problems if the logic was implemented this side of the RPC. The core of the logic can be implemented either side so I'm doing some basic prototyping of it here first before transplanting it to the |
3a116b1
to
25b525a
Compare
If this is going to take longer than this cycle, prefer addressing this #181. That directly affects the flow as shown in our demo video. This happened literally on Friday on the latest staging branch. So it's definitely a problem. |
25b525a
to
4b59b09
Compare
As part of working on this I'm making changes to the auditEventsGet.ts handler in the It's a lot more hassle than it's worth TBH. So as an alternative I can make a separate RPC command for using multiple audit paths when getting audit events. This would make it a minor version change and avoid having to fix up the dashboard. |
8856f88
to
0947cc6
Compare
This is ready for review now. |
For the output I have it formatted as the following.
I find having a semi-empty space between each entry is much easier to read. However I think the standard approach is to have it like this?
Which I personally really dislike. But I'll change it if that's the intended format. |
I also need to note that this PR is blocked by infrastructure prep work that @brynblack should be working on. I'll need feedback from her on that progress. |
If blocked, you should finish off the other sanity checks for our UX fixes. Brynley will be working on deployment of PKE too - so lots of putting orchestrator into production!
|
The MatrixAI/Polykey#730 - Generally relevant. |
4a13392
to
2ce77a5
Compare
This is fully prepped now. |
Description
This PR addresses adding the Audit domain to the CLI.
I have some work in progress done, but it needs to be made more generic. The specific
audit discovery
command needs to be generalised to aaudit
command that handles all audit events.We may need to add formatters for specific event types. For example the discovery events have verticies as the
GestaltIdEncoded
. It may be fine to output that as is. But ideally we'd keep gestaltId formatting consistent, so a node would beNodeIdEncoded
and identitiy asidentitiyId:providerId
.Issues Fixed
Tasks
polykey audit
command.a.b.c
.Final checklist