Git Product home page Git Product logo

sql_firewall's People

Contributors

rodo avatar snaga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sql_firewall's Issues

compiler warning

Hi,

When I compiled this module on MacOS, I got the following compiler warning.

sql_firewall.c:232:39: warning: unused variable 'track_options' [-Wunused-const-variable]
static const struct config_enum_entry track_options[] =
^
1 warning generated.

Regards,

sql_firewall and pgbench -i

Hi,

When I ran the following steps, I got unexpected warning messages.
Is this a bug? Or am I missing something?

  1. Set sql_firewall.firewall to learning
  2. Run pgbench -i
  3. Set sql_firewall.firewall to permissive
  4. Run pgbench -i

The last call of pgbench -i caused the following warning messages.

WARNING: Prohibited SQL statement

BTW, I performend the above steps by executing the following
shell script.

bin/pg_ctl -D data stop -m f
rm -rf data

bin/initdb -D data --no-locale --encoding=UTF8
echo "shared_preload_libraries = 'sql_firewall'" >> data/postgresql.conf
echo "sql_firewall.firewall = 'disabled'" >> data/postgresql.conf

bin/pg_ctl -D data start -w
bin/psql <<EOF
CREATE EXTENSION sql_firewall;
ALTER SYSTEM SET sql_firewall.firewall = 'learning';
EOF

bin/pg_ctl -D data restart -w
bin/pgbench -i

bin/psql <<EOF
SELECT * FROM sql_firewall.sql_firewall_statements;
ALTER SYSTEM SET sql_firewall.firewall = 'permissive';
EOF

bin/pg_ctl -D data restart -w
bin/pgbench -i

Regards,

Ebuild

Hello :)

Here is an ebuild for gentoo based systems uu/ubuilds@c94a485

But I'm not sure about the license you use.

Thanks!

Thoughts...per user and how does one add rules without using learning mode?

It seems like having per-user permissions would be needed to make this usable in production

How (can) does one add rules to a system without putting it into learning mode and thus expose the database during changes?

A use case seems to be training during testing/staging and then moving that training data to the production system. Is this possible?

Blacklist feature instead of whitelist

In first I want to thank you for this amazing tool !

This is a feature request issue, to protect our postgresql clusters against bad queries (like sorting billions of tuples when only some parts are needed) have you plan to add a blacklist feature ?

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.