cds-snc / cds-snc/platform-forms-client

Improve Dev Experience Searching through S3

Open
#6,966 0 comments 1 reaction 0 assignees View on GitHub
development
Dominant language
TypeScript
Stars
46
Forks
16
Avg merge
1d 8h
Merged PRs (30d)
85

Description

## Description

Consider ways to improve the workflow to search through the audit logs.

Here is an example case taken from ticket: [Freshdesk 27821](https://cds-snc.freshdesk.com/a/tickets/27821)
Goal find the userId that deleted a form.
1. Search Aurora for the templateId (not found so confirmed deleted)
2. Search Aurora for the related userId by email
3. Search S3 audit archive logs using userId
This is the tedious part. Manually opening each bucket and searching e.g. for "delete" to find the log of the user that did the action. This can be time consuming.

Especially thinking of a way to improve Step 3, here are some solutions we should explore:
- Perhaps a script/* that can search through the buckets and give the resulting log if any are found
- Connect S3 to Athena to be able to run queries against the audit logs bucket

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.