Giter Site home page Giter Site logo

OPERATOR (pg_catalog. =) about pgaudit HOT 8 CLOSED

pgaudit avatar pgaudit commented on May 18, 2024
OPERATOR (pg_catalog. =)

from pgaudit.

Comments (8)

dwsteele avatar dwsteele commented on May 18, 2024

Are you auditing the postgres user? If so this is not recommended some filters won't work properly in this case.

from pgaudit.

GreenBeanKILLER avatar GreenBeanKILLER commented on May 18, 2024

We are auditing our personal users who have the following roles SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION;
and they ask us to audit in this way!
ALTER ROLE xxx
SET pgaudit.log = 'all, -misc';
What do you recommmend me to do?
Thanks for your time

from pgaudit.

dwsteele avatar dwsteele commented on May 18, 2024

We recommend that you don't have all your users be superuser. Beyond that there's not much pgaudit can do.

from pgaudit.

GreenBeanKILLER avatar GreenBeanKILLER commented on May 18, 2024

It is that we are the dbas, but the client is wanting to audit all the users !!!
For that, they ask us to audit the nominated users

from pgaudit.

dwsteele avatar dwsteele commented on May 18, 2024

That is certainly your choice, but we have no way to reliably filter foreign key queries for the superuser. There are some logging tools (ELK, Splunk) etc. that can help with this if you want to create your own rules.

from pgaudit.

GreenBeanKILLER avatar GreenBeanKILLER commented on May 18, 2024

Perfect, we will communicate to those in charge of the subject that there is no possible solution, thank you very much !!!!

from pgaudit.

dwsteele avatar dwsteele commented on May 18, 2024

You should consider using the set_user extension instead of making all the DBAs superuser. DML run via set_user will still create the extra entries but it might reduce your logging overall.

You can also use grants to allow these users to run DML on tables that they frequently have a reason to modify instead of granting superuser.

from pgaudit.

GreenBeanKILLER avatar GreenBeanKILLER commented on May 18, 2024

thanks a lot David!

from pgaudit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.