Questions tagged [auditing]
The auditing tag has no usage guidance.
321
questions
1
vote
1
answer
42
views
How to add a lot of tables to the OpenEdge PSC-App-Tables auditing policy?
we have added a group of tables of our OpenEdge database, to the PSC default policy.
And it went really good for more than a year.
Now our new CIO wants every table of the database to be included.
We ...
-1
votes
0
answers
10
views
How to choose tools for Java Code revision from point of view of security
I'm starting in this matter of reviewing and auditing code of java programs and web applications and I would like to use several tools in this area. And there are a lot of information and a lot of ...
0
votes
0
answers
49
views
Jhipster Auditing Entities
Hello I am using Jhipster to generate my backend code and I'm trying to add auditing fields to my entities, I am aware that my custom entity should extend the AbstractAuditingEntity class, but the ...
0
votes
0
answers
33
views
How to enable a specific system audit policy in PowerShell in Windows 11?
There doesn't seem to be a native PowerShell way to do this.
I want to enable this audit
I'm using PowerShell and sadly there is no auto-complete to help with it.
I've been searching and reading ...
0
votes
0
answers
48
views
AuditD Performance
Requesting AuditD help. I have the following rules and have the following questions:
Set1:
-a always,exit -F arch=b32 -S chmod -F auid>=1000 -F auid!=-1 -k perm_mod
-a always,exit -F arch=b32 -S ...
0
votes
0
answers
29
views
Where to get free benchmarks for CIS CAT Lite in xml format?
i am planning to use CIS CAT Lite (free version) for auditing several RHEL servers. However, Lite version contains only few benchmarks and none of them is for RHEL. My problem is, i can not purchase ...
0
votes
1
answer
42
views
Error: contract sets array length with a user-controlled value
I'm working on a contract and I audit the contract by using the slither. and I found a vulnerability in the contract and I hard to understand and resolve it. so, please can you help me to resolve this ...
0
votes
0
answers
53
views
Which is better between using custom audit application or a library in django
I am trying to implement an auditing application and i'm analysing tradeoff between using a custom implementation of such an application. I stand between implementing the application on my own or ...
0
votes
0
answers
138
views
In Oracle, how do I determine what audit settings are present for individual schemas?
I manage an Oracle database as DBA in my current role, but the database infrastructure including audit settings was defined by my predecessor, who I cannot contact.
I am trying to identify how my ...
1
vote
2
answers
166
views
SQLAlchemy: Set audit columns prior to insert or update
Each of my mapped class contains created_by and updated_by audit properties that I would like to set automatically upon INSERT and UPDATE of respective objects.
class User(Base):
__tablename__ = '...
0
votes
1
answer
262
views
How to keep @LastModifiedBy field empty (null) when creating a new entity, set only on update
Spring JPA auditable entity contains fields similar to this:
@EntityListeners(AuditingEntityListener.class)
...
{
@CreationTimestamp
@Column(name = "created_date", nullable = false)
@...
0
votes
1
answer
117
views
Mass Transit Auditing sql dbcontext issue
I'm struggling to understand how to configure mass transit auditing facilitiy.
Reading the following documentation suggests that it needs a DBContextOptions? How does one go about new-ing that up and ...
0
votes
1
answer
193
views
Envers auditing @Embedded and use targetAuditMode NOT_AUDITED
I'm trying to add envers auditing to a model which has some @Embedded elements. Those elements themselves are not audited.
On a regular relation field to achieve this, you would write @Audited(...
1
vote
0
answers
83
views
How do I configure audit of sensitive data groups in SQL Server
Attempting to configure the "sensitive" versions of the batch completed groups (SENSITIVE_BATCH_STARTED_GROUP/SENSITIVE_BATCH_COMPLETED_GROUP) that are listed in the doc for SQL 2019
https://...
1
vote
3
answers
2k
views
Auditing fields not automatically filled by JPA in Spring Boot
I have the following entity, which reflects some kind of background task and gonna be updated. I thought using the JPA auditing would be useful so I included it like this:
@Entity
@...
0
votes
0
answers
34
views
Stackoverflow error in audit using AuditorAware when saving One-To-Many, Many-To-Many [duplicate]
I encountered a stackoverflow error when I implement audit using AuditorAware. The code successfully gets the login username. However, @CreatedBy and @ModifiedBy should be the primary key of the ...
0
votes
1
answer
173
views
Why doesn't the deleted table in a FOR/AFTER DELETE Trigger contain data of the Deleted Record?
Given the following audit table:
CREATE TABLE Auditing.[Record Deletion Times]
(
ID BIGINT IDENTITY NOT NULL,
[Schema] NVARCHAR(128) NOT NULL,
[Table] NVARCHAR(256) NOT NULL,
[Record ...
1
vote
1
answer
368
views
How to audit class that has OneToMany unidirectional relationship?
I'm using Spring Data JPA for Auditing. There's a unidirectional relationship between classes Article and File. The Article class looks like this:
@Getter
@Entity
@SuperBuilder(toBuilder = true)
@...
0
votes
0
answers
291
views
Spring MVC app, Spring Data Auditing gives error "JPA metamodel must not be empty!"
I have an application that is made of 2 maven modules :
a module containing entities and business logic
a module with front-end and controllers
Here I am working only in the first module, containing ...
-1
votes
1
answer
53
views
Quick javascript to audit for duplicate ids in page DOM [duplicate]
I've found that there are a number of duplicate IDs in the project I'm working on. I don't want to scrape through the entire product all at once, or use on overly heavyweight solution like a full HTML ...
2
votes
2
answers
1k
views
Laravel-Auditing is not working without any errors
I've recently installed this package and configured everything with guide but some how it's not working!
By it's not working I mean it's not adding anything to database. I really don't know what is ...
1
vote
0
answers
242
views
findById is not fetching Audit Columns (createdBy and createdDate) after save/update
Since we implemented Entity Auditing, we were able to store CreatedBy using AuditorAware also @lastmodifiedby too. But here the problem is, once we updated the record again we are trying to fetch the ...
0
votes
0
answers
98
views
ARM template for synapse auditing successfully ran but not reflecting the auditing configurations on the azure portal
I am using ARM templates to enable auditing of the synapse pool, but though the template runs successfully in CI/CD release pipeline, the changes made aren't reflected on the portal. What could be the ...
1
vote
1
answer
139
views
How to put content in OpenEdge progress audit tables?
I have enabled the default policies, and I see that the table _aud-audit-data is saving system events: Login, logout, add or modify users, changes in policies, things like that.
But I need my ERP ...
0
votes
2
answers
95
views
how to add new column in pg_class for object creation date dumping
I want to create a column in pg_class for object creation dumping but I am not able to add.
I am using below query:
ALTER TABLE pg_catalog.pg_class ADD COLUMN relcreated TIMESTAMP;
when I run this ...
1
vote
1
answer
1k
views
How to force the value of @CreatedBy in JPA Audit
I'm running a spring boot project with JPA (spring-data-jpa version 2.3.0 / hibernate 5.1.0)
How could I force the value of an @Entity's field annotated with @CreatedBy?
The entity:
import lombok....
3
votes
1
answer
985
views
Hibernate Envers: disable auditing temporarily
I've created an entities copier in a project where envers is enable but for this copier I don't need the auditing: is there a way to disable temporarily the envers auditing?
I know that there are ...
0
votes
1
answer
72
views
Auditing SQL Server - who is changing what and when? SOX complaince
In my organization, we are doing very limited logging or any sort to capture who is changing what and when.
I am seeking help here to understand what should be the best practices to capture any ...
0
votes
0
answers
47
views
How to audit hibernate entity access
I need to log not only modifications, but every access to Entity.
I've looked into EntityListeners and Envers but couldn't find anything usefull.
1
vote
0
answers
625
views
Hibernate envers forRevisionsOfEntityWithChanges only returning last modified column
AuditReader reader = AuditReaderFactory.get(entityManager);
AuditQuery query = reader.createQuery().forRevisionsOfEntityWithChanges(Customer.class, false);
List<Object[]> ...
1
vote
0
answers
241
views
Overriding @LastModifiedDate field with provided Date in springboot mongodb auditing
When performing migration of legacy data to a springboot project it is sometimes crucial, to use the same Date for auditing fields such as createdDate and lastModifiedDate.
When using mongodb auditing,...
2
votes
2
answers
382
views
Azure Table Storage: Capture all table activity for compliance purposes
I need to capture all inserts/updates/deletes in Azure Table Storage for compliance purposes. How is this accomplished? I'm looking for code samples and/or documentation. I know there is Change Feed ...
0
votes
1
answer
112
views
Store all the queries executed in Oracle Database
How can i store all queries including select query in user defined table considering auditing is not enabled for select queries and we cannot enable it too.
0
votes
2
answers
1k
views
SQL Server Database Auditing not working for Sysadmin users
I'm trying to Audit Sysadmin users at Database level; however, none of the SELECTS, INSERTS, UPDATES and DELETES are being audited.
I created the Server Audit, followed by the Server Audit ...
1
vote
1
answer
433
views
Hibernate envers: how to get the current audited table name?
With Hibernate Envers, is it possible to get the current audited table? I took the example from the doc but I add an extra column tableName:
@Entity
@RevisionEntity(ExampleListener.class)
public ...
7
votes
0
answers
4k
views
How to enable JPA auditing with SpringBootTest?
I want to write integration tests for my RestAPI endpoints, and I'm struggling with @EnableJpaAuditing. I want some of my entities to be audited by Spring, so I've created the following configuration ...
1
vote
0
answers
285
views
Why are rows being written to DBA_AUDIT_TRAIL?
I'm running Oracle 18c, but using standard auditing (not Unified Auditing). The other day, I ran a bunch of statements (that I can't recall, of course) to enable all sorts of auditing. After viewing ...
1
vote
2
answers
731
views
How to update Auto generated time stamp in Spring boot
I am making use of Auditing with Spring Data JPA to automatically update the created by time stamp. I have a requirement, where i have to migrate some data for which the created by date should be ...
0
votes
1
answer
361
views
Exporting GPOs to HTML from non-domain joined computer via Powershell
Looking to get all GPOs exported to a specific folder
When trying to get the GPOs from a DC with powershell like this:
Get-GPOReport -All -ReportType HTML -server 192.168.1.88 -Path c:\gpor-...
1
vote
0
answers
163
views
How to get list of mounted filesystems on NFS server
For auditing purposes I need to track all remotely mounted NFSv4 filesystems requests on an NFS server (CentOS7) to get both the identity of the mounting system AND the filesystem that they mounted. ...
4
votes
1
answer
9k
views
PostgreSQL set session variable
My app which connects to PostgreSQL DB using same credentials (db provider requirement...)
However I need to recognize what app user is connecting to DB (eg for udates auditing etc)
I wonder if there ...
0
votes
0
answers
2k
views
created_by is always set to null in the database and Version does not work properly
I am trying to implement one entity to see how Auditing works in spring. I have tow issues here:
First issue is that "created_by" field is always set to null in the database, although I have created ...
0
votes
1
answer
61
views
Database operations tracking Application. Need to audit the changes made in the db
I have to create an application in .Net which will track the data changes in all the tables present in the DB without using Triggers.
I have some ideas which can be implemented to achieve the same....
0
votes
1
answer
130
views
K8S auditing Webhook backend - how to handle authentication?
i created ubuntu machine that will receive the audit log from my cluster.
i created config file in order to configure the webhook backend for k8s auditing.
apiVersion: v1
kind: Config
clusters:
- ...
3
votes
2
answers
3k
views
Spring Mongo Auditing not working @CreatedDate @CreatedBy
I am using Spring Mongo Auditing and @CreatedDate @CreatedBy not working but @LastModifiedDate and @LastModifiedBy working fine.
I added @EnableMongoAuditing on a configuration class and also ...
0
votes
1
answer
481
views
K8S Auditing - how to get all the policy options?
I would like to define policy for audit log that will include information only regarding pod creation.
I would like to make sure that all the audit logs wont appear.
how can i find all the options ...
0
votes
1
answer
3k
views
User type and user Id is NULL in Laravel Auditing table
I use Laravel auditing for tracking model changes in my system. I see the admin type track user type and Id but for staff users, user_type and user_id is NULL and here is my code:
config/audit.php
&...
1
vote
1
answer
526
views
Prevent Hibernate from issuing needless updates of entities that have dirty OneToMany Collection
We are using Hibernate 5.3.13 with Spring Data JPA 2.1.12 and when having an already persisted, managed minimal Entity like the following:
@Entity
@Table(name = "EventsHolder")
@Access(AccessType....
0
votes
1
answer
659
views
Annotation based Auditing for spring-data-elasticsearch?
I am trying to use the annotation based approach to audit my elasticsearch document using spring-data-elasticsearch. I followed the JPA guide while implementing my classes/setup.
My code looks like ...
1
vote
1
answer
150
views
Why use a pre-written audit package in Django
I am considering how to implement auditing my database with Django. There are lots of auditing packages and I am decided on using something that logs changes to models in the database, rather than ...