Questions tagged [auditing]

330 questions
1
vote
1 answer

Echidna fuzzer, is this a false-negative case using Hevm?

my question is simple. I'm Auditing the Ethernaut22 Contract: here for code https://ethernaut.openzeppelin.com/level/0x9CB391dbcD447E645D6Cb55dE6ca23164130D008 Ethernaut22.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import…
1
vote
0 answers

How to disable JPA auditing for a specific action

In have a Spring web application with JPA auditing enabled: Inside all entities I use all 4 auditing annotations: @LastModifiedBy @LastModifiedDate @CreatedBy @CreatedDate Now for a specific…
Radu Dumbrăveanu
  • 1,266
  • 1
  • 22
  • 32
1
vote
1 answer

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 tried to disuade him, we explained, but.... So,…
Ezequiel
  • 75
  • 7
1
vote
1 answer

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) @JsonIgnore private LocalDateTime createdDate; …
M. Merim
  • 45
  • 9
1
vote
0 answers

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…
Paul S
  • 11
  • 2
1
vote
3 answers

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 @RequiredArgsConstructor @Getter @Setter @Table(name = "FOO") public…
Pwnstar
  • 2,333
  • 2
  • 29
  • 52
1
vote
2 answers

NInject, nHibernate, and auditing in ASP.NET MVC

I am working on an inherited application which makes use of NInject and nHibernate as part of an ASP.NET MVC (C#) application. Currently, I'm looking at a problem with the auditing of modifications. Each entity has ChangedOn/ChangedBy and…
Pieter
  • 3,339
  • 5
  • 30
  • 63
1
vote
0 answers

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 entities. They are marked with @Entity from…
Genku
  • 31
  • 8
1
vote
0 answers

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 updated record using findbyId but its giving…
vivek java
  • 59
  • 6
1
vote
1 answer

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 events to be saved. For example, deleting a…
Ezequiel
  • 75
  • 7
1
vote
1 answer

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.Getter; import lombok.Setter; import…
Gaetano Piazzolla
  • 1,388
  • 1
  • 16
  • 31
1
vote
0 answers

Hibernate envers forRevisionsOfEntityWithChanges only returning last modified column

AuditReader reader = AuditReaderFactory.get(entityManager); AuditQuery query = reader.createQuery().forRevisionsOfEntityWithChanges(Customer.class, false); List revisionsCustomer = query …
farahm
  • 1,326
  • 6
  • 32
  • 70
1
vote
2 answers

Database Audit Log using Triggers - User information

I'm contemplating using AFTER INSERT, DELETE, UPDATE Triggers to capture changes to one of my databases. One thing I want is to capture name of the user who made the change. Since I'm using a dedicated SQL account to connect to the database (from…
Nasir
  • 10,935
  • 8
  • 31
  • 39
1
vote
0 answers

Is it a) possible and b) logical to audit non-persistent (i.e. no corresponding model field) model data in rails?

I want to keep a history of some values in my rails 3 application, but currently calculate these values as attributes without corresponding database fields. Can I easily implement a persistent audit of these values without changing my models? Even…
Chazu
  • 1,010
  • 1
  • 9
  • 20
1
vote
1 answer

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 class ExampleRevEntity extends DefaultRevisionEntity…
akuma8
  • 4,160
  • 5
  • 46
  • 82