-
Notifications
You must be signed in to change notification settings - Fork 72
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
Power reviews integration #5258
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
fides Run #9860
Run Properties:
|
Project |
fides
|
Branch Review |
refs/pull/5258/merge
|
Run status |
Passed #9860
|
Run duration | 00m 37s |
Commit |
30448bd657 ℹ️: Merge 9249476033dd817c096775719e53fd1ab001a8e3 into 84c8b1e2e2b728e20c631131d6c8...
|
Committer | Bruno Gutierrez Rios |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
removing private identities before uploading
We might want to double check the Authentication, as have no auth might hit us in the foot forward going. Also, we should not want the calls after privacy. Those are for testing. Saving those for reference right now
still to be fixed. Having some weird errors locally
d0c2a6f
to
6715ec5
Compare
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.
Good work here @Vagoasdf. I just left a few comments
@@ -17,6 +17,8 @@ The types of changes are: | |||
|
|||
## [Unreleased](https://github.com/ethyca/fides/compare/2.44.0...main) | |||
|
|||
- Adding erasure support for Power Reviews [#5258](https://github.com/ethyca/fides/pull/5258) |
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.
Make sure you put the entry under the correct header
- Adding erasure support for Power Reviews [#5258](https://github.com/ethyca/fides/pull/5258) | |
### Added | |
- Adding erasure support for Power Reviews [#5258](https://github.com/ethyca/fides/pull/5258) |
name: Power Reviews | ||
type: power_reviews |
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.
Let's match this to the way they spell their name PowerReviews (with no space)
name: Power Reviews | |
type: power_reviews | |
name: PowerReviews | |
type: powerreviews |
Make sure you change the file names and any usages of the type (powerreviews
) and name (PowerReviews
)
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.
I'll do this change, but im slightly worried that it's going to negatively improve readability, since its all lowercase, and we have this double "r" in the middle
collections: | ||
- name: privacy | ||
fields: | ||
- name: request_id | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
data_type: string | ||
- name: status | ||
data_categories: [system.operations] | ||
fidesops_meta: | ||
data_type: string |
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 can be empty since we don't have an access request
collections: | |
- name: privacy | |
fields: | |
- name: request_id | |
data_categories: [system.operations] | |
fidesops_meta: | |
data_type: string | |
- name: status | |
data_categories: [system.operations] | |
fidesops_meta: | |
data_type: string | |
collections: [] |
erasure_policy=erasure_policy_string_rewrite, | ||
identities={"email": power_reviews_erasure_identity_email}, | ||
) | ||
# We set the email to 1 since its 1 request only(?) |
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.
That's correct, the number corresponds to how many records we deleted in this case it would be just 1
client_secret: str | ||
|
||
|
||
class PowerReviewsAuthenticationStrategy(AuthenticationStrategy): |
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.
Could we have used the oauth2_client_credentials
authentication strategy instead?
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.
Initially i thought we wouldn't be able, since its a cross between Oauth2 and Basic auth, but it looks like it can be done. Updating it
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.
Thanks for making the changes! I called out a few last things but you can go ahead and merge once those are done
value: 3 | ||
|
||
endpoints: | ||
- name: privacy |
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.
Let's rename this to user
so it reflects the type of object being deleted
- name: privacy | |
- name: user |
"merchant_id": pydash.get(saas_config, "powerreviews.merchant_id") | ||
or secrets["merchant_id"], | ||
"merchant_group_id": pydash.get(saas_config, "powerreviews.merchant_group_id") | ||
or secrets["merchant_group_id"], |
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 can remove these if we're not using them in the integration
"merchant_id": pydash.get(saas_config, "powerreviews.merchant_id") | |
or secrets["merchant_id"], | |
"merchant_group_id": pydash.get(saas_config, "powerreviews.merchant_group_id") | |
or secrets["merchant_group_id"], |
erasure_policy=erasure_policy_string_rewrite, | ||
identities={"email": powerreviews_erasure_identity_email}, | ||
) | ||
assert erasure_results == {"powerreviews_instance:privacy": 1} |
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.
To match the name change above
assert erasure_results == {"powerreviews_instance:privacy": 1} | |
assert erasure_results == {"powerreviews_instance:user": 1} |
Correctly setting the name. Removing unused keys on fixutres
fides Run #9862
Run Properties:
|
Project |
fides
|
Branch Review |
main
|
Run status |
Passed #9862
|
Run duration | 00m 36s |
Commit |
77dabdd420: Power reviews integration (#5258)
|
Committer | Bruno Gutierrez Rios |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
4
|
View all changes introduced in this branch ↗︎ |
Closes Integrations-308
Description Of Changes
Adding Support for Power Reviews Integrations
Auth Override Added because it was using a non-standard basic auth (doc said it was Oauth2, but it behaves like basic auth)
Request override Added to properly format the JSON Payload
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md