-
Notifications
You must be signed in to change notification settings - Fork 0
fix: config functions remove process #124
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with some suggested improvements.
|
||
-- Step 4: Verify configuration | ||
SELECT * FROM eql_v2.config(); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a step 5 to show a successful query of the encrypted_email
column.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to keep this section focused on config with EQL
- `eql_v2.add_column(table_name, column_name, cast_as DEFAULT 'text', migrating DEFAULT false)` - Add a new encrypted column | ||
- `eql_v2.remove_column(table_name, column_name, migrating DEFAULT false)` - Remove an encrypted column completely | ||
|
||
**Index Management:** | ||
- `eql_v2.add_search_config(table_name, column_name, index_name, cast_as DEFAULT 'text', opts DEFAULT '{}', migrating DEFAULT false)` - Add a search index to a column | ||
- `eql_v2.remove_search_config(table_name, column_name, index_name, migrating DEFAULT false)` - Remove a specific search index (preserves column configuration) | ||
- `eql_v2.modify_search_config(table_name, column_name, index_name, cast_as DEFAULT 'text', opts DEFAULT '{}', migrating DEFAULT false)` - Modify an existing search index | ||
|
||
**Configuration Management:** | ||
- `eql_v2.migrate_config()` - Manually migrate pending configuration to encrypting state | ||
- `eql_v2.activate_config()` - Manually activate encrypting configuration | ||
- `eql_v2.discard()` - Discard pending configuration changes | ||
- `eql_v2.config()` - View current configuration in tabular format (returns a table with columns: state, relation, col_name, decrypts_as, indexes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a nice way of denoting which functions do what.
Co-authored-by: Lindsay Holmwood <[email protected]>
Co-authored-by: Lindsay Holmwood <[email protected]>
Fixes issues with EQL configuration remove functions and updates documentation to match current behavior.
Issues Fixed
tables
and properly handle missingcast_as
fieldsmigrating
parameter and clarified behavioral differencesBreaking Changes
None - remove is now working as expected