GeezerVison is showing github.com — Cleanup grants of internal objects & tables by jgebal · Pull Request #954 · utPLSQL/utPLSQL
Conversation
jgebal
commented
Jun 22, 2019
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Removed following grants.
select, insert, update, delete on:
- ut_compound_data_tmp
- ut_compound_data_diff_tmp
Select on:
- ut_annotation_cache
- ut_annotation_cache_info
- ut_suite_cache
- ut_suite_cache_after_all
- ut_suite_cache_after_each
- ut_suite_cache_after_test
- ut_suite_cache_before_all
- ut_suite_cache_before_each
- ut_suite_cache_before_test
- ut_suite_cache_package
- ut_suite_cache_schema
- ut_suite_cache_trhows
- ut_suite_cache_warnings
Execute on:
- ut_annotations
- ut_annotation
- ut_annotated_object
- ut_annotated_objects
- ut_annotation_cache_manager
- ut_annotation_parser
- ut_coverage
- ut_coverage_options
- ut_coverage_helper
- ut_coverage_reporter_base
- ut_console_reporter_base
- ut_output_data_row
- ut_output_data_rows
- ut_output_table_buffer
- ut_output_clob_table_buffer
Below tables were changed to be session global temp tables.
- dbmspcc_blocks
- dbmspcc_runs
- dbmspcc_units
With this, there is no risk of data leaks between sessions.
Reorganized code to accommodate for grants removal.
Wrapped sys.dbms_assert.qualified_sql_name to support NULL values.
Replaced calls to dbms_crypto.hash with ut_utils.get_hash - default SHA1
Resolves: #922
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Removed grants:
- execute on ut_annotations
- execute on ut_annotation
- execute on ut_annotated_object
- execute on ut_annotated_objects
- select on ut_annotation_cache
- select on ut_annotation_cache_info
- execute ut_annotation_cache_manager
- execute ut_annotation_parser
Reorganized code to accommodate for grants removal.
Wrapped `sys.dbms_assert.qualified_sql_name` to support NULL values.
Replaced calls to `dbms_crypto.hash` with `ut_utils.get_hash` - default `SHA1`
- `ut_coverage`
- `ut_coverage_options`
- `ut_coverage_helper`
- ut_output_reporter_base
- ut_coverage_reporter_base
- ut_console_reporter_base
- ut_output_data_row
- ut_output_data_rows
- ut_output_table_buffer
- ut_output_clob_table_buffer
jgebal
changed the title
Cleanup some grants to internal objects & tables
[WIP] Cleanup grants to internal objects & tables
Jun 24, 2019
…LIC and private access to the framework.
Resolves: #957
…shed and transaction is committed.
- grant select, insert, update, delete on ut_compound_data_tmp
- grant select, insert, update, delete on ut_compound_data_diff_tmp
- changed `dbmspcc_...` tables to be global temporary
- added cleanup of session level global temp tables after run
jgebal
changed the title
[WIP] Cleanup grants to internal objects & tables
Cleanup grants of internal objects & tables
Jun 28, 2019
Reviewers
lwasylow
lwasylow approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Development
Successfully merging this pull request may close these issues.
Protect data in utPLSQL tables
Uh oh!
There was an error while loading. Please reload this page.
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.