-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test files for version 0.7.0. (#173)
Signed-off-by: mohammad-nassar10 <[email protected]>
- Loading branch information
1 parent
e4c1fbf
commit b11ab7d
Showing
3 changed files
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: katalog.fybrik.io/v1alpha1 | ||
kind: Asset | ||
metadata: | ||
name: paysim-csv | ||
spec: | ||
secretRef: | ||
name: paysim-csv | ||
details: | ||
dataFormat: csv | ||
connection: | ||
name: s3 | ||
s3: | ||
endpoint: "http://localstack.fybrik-notebook-sample.svc.cluster.local:4566" | ||
bucket: "demo" | ||
object_key: "PS_20174392719_1491204439457_log.csv" | ||
metadata: | ||
name: Synthetic Financial Datasets For Fraud Detection | ||
geography: theshire | ||
tags: | ||
finance: true | ||
columns: | ||
- name: nameOrig | ||
tags: | ||
PII: true | ||
- name: oldbalanceOrg | ||
tags: | ||
PII: true | ||
- name: newbalanceOrig | ||
tags: | ||
PII: true |
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,18 @@ | ||
apiVersion: app.fybrik.io/v1alpha1 | ||
kind: FybrikApplication | ||
metadata: | ||
name: my-notebook | ||
labels: | ||
app: my-notebook | ||
spec: | ||
selector: | ||
workloadSelector: | ||
matchLabels: | ||
app: my-notebook | ||
appInfo: | ||
intent: Fraud Detection | ||
data: | ||
- dataSetID: "fybrik-notebook-sample/paysim-csv" | ||
requirements: | ||
interface: | ||
protocol: fybrik-arrow-flight |
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,9 @@ | ||
package dataapi.authz | ||
|
||
rule[{"action": {"name":"RedactAction", "columns": column_names}, "policy": description}] { | ||
description := "Redact columns tagged as PII in datasets tagged with finance = true" | ||
input.action.actionType == "read" | ||
input.resource.metadata.tags.finance | ||
column_names := [input.resource.metadata.columns[i].name | input.resource.metadata.columns[i].tags.PII] | ||
count(column_names) > 0 | ||
} |