Skip to content
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

Custom columns and custom data in the audit tables #160

Open
janklan opened this issue Feb 28, 2023 · 0 comments
Open

Custom columns and custom data in the audit tables #160

janklan opened this issue Feb 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@janklan
Copy link
Contributor

janklan commented Feb 28, 2023

I'm wondering what could be the best approach to being able to store some custom metadata with each record in the audit tables?

Do I need a custom provider? How would I tell Auditor about the new column in the schema? I found a few options (hooking into the AuditEvent, extending DoctrineProvider and so on), but it all feels hacky.

Could you point me in some direction? I'd be happy to then either improve readme, or submit a PR for whoever is interested.

The background for this need is adding a tenant_id column to each audit row so that we can apply row-level security on server-side with PostgreSQL.

@janklan janklan added the enhancement New feature or request label Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant