-
Notifications
You must be signed in to change notification settings - Fork 136
feat(roles): add role management to menu and improve security #68
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a269478
fix(roles): SQL injection in role management
NikolayS fca689c
chore: trigger CI
NikolayS d974cc5
feat(roles): add role management to interactive menu
NikolayS 117bb23
fix(roles): remove extra space in menu descriptions
NikolayS 893bf69
style: apply sentence-style capitalization to menu items
NikolayS f1bda22
fix: correct typo and apply binary units standards
NikolayS 90bcda6
refactor: improve menu descriptions for clarity and consistency
NikolayS 407d045
fix: address PR review feedback
NikolayS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--Create user with random password (interactive) | ||
\ir ../roles/create_user_with_random_password.psql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--Alter user with random password (interactive) | ||
\ir ../roles/alter_user_with_random_password.psql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--Vacuum: VACUUM progress and autovacuum queue | ||
--Vacuum: vacuum progress and autovacuum queue | ||
|
||
|
||
-- Based on: https://gitlab.com/snippets/1889668 | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,19 @@ | |
\echo ' e1 – Extensions installed in current DB' | ||
\echo ' i1 – Unused and rarely used indexes' | ||
\echo ' i2 – Redundant indexes' | ||
\echo ' i3 – FKs with Missing/Bad Indexes' | ||
\echo ' i3 – FKs with missing/bad indexes' | ||
\echo ' i4 – Invalid indexes' | ||
\echo ' i5 – Cleanup unused and redundant indexes – DO & UNDO migration DDL' | ||
\echo ' l1 – Lock trees (leightweight)' | ||
\echo ' i5 – Cleanup unused and redundant indexes – do & undo migration DDL' | ||
NikolayS marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
\echo ' l1 – Lock trees (lightweight)' | ||
\echo ' l2 – Lock trees, detailed (based on pg_blocking_pids())' | ||
\echo ' p1 – [EXP] Alignment padding: how many bytes can be saved if columns are reordered?' | ||
\echo ' r1 – Create user with random password (interactive)' | ||
\echo ' r2 – Alter user with random password (interactive)' | ||
\echo ' s1 – Slowest queries, by total time (requires pg_stat_statements)' | ||
\echo ' s2 – Slowest queries report (requires pg_stat_statements)' | ||
\echo ' t1 – Postgres parameters tuning' | ||
\echo ' t1 – PostgreSQL parameters tuning' | ||
NikolayS marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
\echo ' v1 – Vacuum: current activity' | ||
\echo ' v2 – Vacuum: VACUUM progress and autovacuum queue' | ||
\echo ' v2 – Vacuum: vacuum progress and autovacuum queue' | ||
|
||
\echo ' q – Quit' | ||
\echo | ||
\echo Type your choice and press <Enter>: | ||
|
@@ -49,6 +51,8 @@ select | |
:d_stp::text = 'l1' as d_step_is_l1, | ||
:d_stp::text = 'l2' as d_step_is_l2, | ||
:d_stp::text = 'p1' as d_step_is_p1, | ||
:d_stp::text = 'r1' as d_step_is_r1, | ||
:d_stp::text = 'r2' as d_step_is_r2, | ||
:d_stp::text = 's1' as d_step_is_s1, | ||
:d_stp::text = 's2' as d_step_is_s2, | ||
:d_stp::text = 't1' as d_step_is_t1, | ||
|
@@ -134,6 +138,14 @@ select | |
\ir ./sql/p1_alignment_padding.sql | ||
\prompt 'Press <Enter> to continue…' d_dummy | ||
\ir ./start.psql | ||
\elif :d_step_is_r1 | ||
\ir ./sql/r1_create_user_with_random_password.sql | ||
\prompt 'Press <Enter> to continue…' d_dummy | ||
\ir ./start.psql | ||
\elif :d_step_is_r2 | ||
\ir ./sql/r2_alter_user_with_random_password.sql | ||
\prompt 'Press <Enter> to continue…' d_dummy | ||
\ir ./start.psql | ||
\elif :d_step_is_s1 | ||
\ir ./sql/s1_pg_stat_statements_top_total.sql | ||
\prompt 'Press <Enter> to continue…' d_dummy | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.