-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add foundation to make Redshift access request queries. * Fix connection config and dataset config tests that look at a new dataset being added. * Add support for performing redshift erasures. * Only mask state field in erasure test - contact is too broad, and was preventing the customer record from getting cleaned up. * Remove unnecessary assertion and access values as attributes of RowProxy not tuples. * Add Amazon Redshift example to docs. * Remove breakpoint, argh. * Use SQLAlchemy TextClause instead of passing in raw string. * Add request attribute to mask_data and pass into generate_update_stmt.
- Loading branch information
Showing
13 changed files
with
547 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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 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 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,225 @@ | ||
dataset: | ||
- fides_key: redshift_example_test_dataset | ||
name: Redshift Example Test Dataset | ||
description: Example of a Redshift dataset containing a variety of related tables like customers, products, addresses, etc. | ||
collections: | ||
- name: address | ||
fields: | ||
- name: city | ||
data_categories: [user.provided.identifiable.contact.city] | ||
- name: house | ||
data_categories: [user.provided.identifiable.contact.street] | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: state | ||
data_categories: [user.provided.identifiable.contact.state] | ||
- name: street | ||
data_categories: [user.provided.identifiable.contact.street] | ||
- name: zip | ||
data_categories: [user.provided.identifiable.contact.postal_code] | ||
|
||
- name: customer | ||
fields: | ||
- name: address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: created | ||
data_categories: [system.operations] | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.name] | ||
fidesops_meta: | ||
data_type: string | ||
length: 40 | ||
|
||
- name: employee | ||
fields: | ||
- name: address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.name] | ||
fidesops_meta: | ||
data_type: string | ||
|
||
- name: login | ||
fields: | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: time | ||
data_categories: [user.derived.nonidentifiable.sensor] | ||
|
||
- name: order | ||
fields: | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: shipping_address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: address.id | ||
direction: to | ||
|
||
# order_item | ||
- name: order_item | ||
fields: | ||
- name: order_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: order.id | ||
direction: from | ||
- name: product_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: product.id | ||
direction: to | ||
- name: quantity | ||
data_categories: [system.operations] | ||
|
||
- name: payment_card | ||
fields: | ||
- name: billing_address_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: address.id | ||
direction: to | ||
- name: ccn | ||
data_categories: [user.provided.identifiable.financial.account_number] | ||
- name: code | ||
data_categories: [user.provided.identifiable.financial] | ||
- name: customer_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: customer.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [user.provided.identifiable.financial] | ||
- name: preferred | ||
data_categories: [user.provided.nonidentifiable] | ||
|
||
- name: product | ||
fields: | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: name | ||
data_categories: [system.operations] | ||
- name: price | ||
data_categories: [system.operations] | ||
|
||
- name: report | ||
fields: | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: month | ||
data_categories: [system.operations] | ||
- name: name | ||
data_categories: [system.operations] | ||
- name: total_visits | ||
data_categories: [system.operations] | ||
- name: year | ||
data_categories: [system.operations] | ||
|
||
- name: service_request | ||
fields: | ||
- name: alt_email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: closed | ||
data_categories: [system.operations] | ||
- name: email | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: employee_id | ||
data_categories: [user.derived.identifiable.unique_id] | ||
fidesops_meta: | ||
references: | ||
- dataset: redshift_example_test_dataset | ||
field: employee.id | ||
direction: from | ||
- name: id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
primary_key: True | ||
- name: opened | ||
data_categories: [system.operations] | ||
|
||
- name: visit | ||
fields: | ||
- name: email | ||
data_categories: [user.provided.identifiable.contact.email] | ||
fidesops_meta: | ||
identity: email | ||
data_type: string | ||
- name: last_visit | ||
data_categories: [system.operations] |
This file contains 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 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 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.