This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SaaS connection documentation (#478)
Updating SaaS connector docs layout and stub in connectors guides
- Loading branch information
1 parent
d7459a8
commit 8f7ac30
Showing
10 changed files
with
1,078 additions
and
21 deletions.
There are no files selected for viewing
217 changes: 217 additions & 0 deletions
217
docs/fidesops/docs/saas_connectors/example_configs/hubspot.md
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,217 @@ | ||
|
||
# Hubspot | ||
|
||
## Implementation Summary | ||
Fidesops uses the following Hubspot endpoints to retrieve and delete Personally Identifiable Information (PII) when processing a Data Subject Request (DSR). Right to Access and Right to Delete (Right to Forget) support for each endpoint is noted below. | ||
|
||
|Endpoint | Right to Access | Right to Delete | | ||
|----|----|----| | ||
|[Search](https://developers.hubspot.com/docs/api/crm/search) | Yes | No | | ||
|[Contacts](https://developers.hubspot.com/docs/api/crm/contacts) | Yes | Yes | | ||
|[Owners](https://developers.hubspot.com/docs/api/crm/owners) | Yes | No | | ||
|[Marketing Emails](https://developers.hubspot.com/docs/api/marketing/marketing-emails) | Yes | No | | ||
|[Communication Preferences](https://developers.hubspot.com/docs/api/marketing-api/subscriptions-preferences#endpoint?spec=POST-/communication-preferences/v3/unsubscribe) | Yes | Yes | | ||
|[Users](https://developers.hubspot.com/docs/api/settings/user-provisioning) | Yes | No | | ||
|
||
|
||
|
||
## Connection Settings | ||
Fidesops provides as [Postman collection](../../postman/using_postman.md) for easily establishing connections to your third party applications. Additional connection instructions may be found in the [configuration guide](../saas_config.md). | ||
|
||
**Deletion requests** are fulfilled by masking PII via `UPDATE` endpoints. To [give Fidesops permission](../../guides/configuration_reference.md#configuration-variable-reference) to remove PII using `DELETE` endpoints, ensure the `MASKING_STRICT` variable in your `fidesops.toml` file is set to `FALSE`. | ||
|
||
## Example Hubspot Configuration | ||
```yaml | ||
saas_config: | ||
fides_key: hubspot_connector_example | ||
name: Hubspot SaaS Config | ||
description: A sample schema representing the Hubspot connector for Fidesops | ||
version: 0.0.1 | ||
|
||
connector_params: | ||
- name: domain | ||
- name: hapikey | ||
|
||
client_config: | ||
protocol: https | ||
host: | ||
connector_param: domain | ||
authentication: | ||
strategy: query_param | ||
configuration: | ||
token: | ||
connector_param: hapikey | ||
|
||
test_request: | ||
method: GET | ||
path: /companies/v2/companies/paged | ||
|
||
endpoints: | ||
- name: contacts | ||
requests: | ||
read: | ||
path: /crm/v3/objects/contacts/search | ||
method: POST | ||
body: '{ | ||
"filterGroups": [{ | ||
"filters": [{ | ||
"value": "<email>", | ||
"propertyName": "email", | ||
"operator": "EQ" | ||
}] | ||
}] | ||
}' | ||
query_params: | ||
- name: limit | ||
value: 100 | ||
param_values: | ||
- name: email | ||
identity: email | ||
postprocessors: | ||
- strategy: unwrap | ||
configuration: | ||
data_path: results | ||
pagination: | ||
strategy: link | ||
configuration: | ||
source: body | ||
path: paging.next.link | ||
update: | ||
path: /crm/v3/objects/contacts/<contactId> | ||
method: PATCH | ||
body: '{ | ||
<masked_object_fields> | ||
}' | ||
param_values: | ||
- name: contactId | ||
references: | ||
- dataset: hubspot_connector_example | ||
field: contacts.id | ||
direction: from | ||
- name: owners | ||
requests: | ||
read: | ||
path: /crm/v3/owners | ||
method: GET | ||
query_params: | ||
- name: email | ||
value: <email> | ||
- name: limit | ||
value: 100 | ||
param_values: | ||
- name: email | ||
identity: email | ||
postprocessors: | ||
- strategy: unwrap | ||
configuration: | ||
data_path: results | ||
pagination: | ||
strategy: link | ||
configuration: | ||
source: body | ||
path: paging.next.link | ||
# - name: marketing_emails | ||
# requests: | ||
# read: | ||
# path: /marketing-emails/v1/emails | ||
# method: GET | ||
# query_params: | ||
# - name: limit | ||
# value: 100 | ||
# - name: offset | ||
# value: 0 | ||
# param_values: | ||
# - name: placeholder | ||
# identity: email | ||
# data_path: objects | ||
# postprocessors: | ||
# - strategy: filter | ||
# configuration: | ||
# field: authorEmail # or email? | ||
# value: | ||
# identity: email | ||
# pagination: | ||
# strategy: offset | ||
# configuration: | ||
# incremental_param: offset | ||
# increment_by: 100 | ||
# limit: 10000 | ||
# update: | ||
# path: marketing-emails/v1/emails/<emailId> | ||
# method: PUT | ||
# param_values: | ||
# - name: emailId | ||
# references: | ||
# - dataset: hubspot_connector_example | ||
# field: marketing_emails.id | ||
# direction: from | ||
- name: subscription_preferences | ||
requests: | ||
read: | ||
path: /communication-preferences/v3/status/email/<email> | ||
method: GET | ||
param_values: | ||
- name: email | ||
identity: email | ||
update: | ||
path: /communication-preferences/v3/unsubscribe | ||
method: POST | ||
body: '{ | ||
"emailAddress": "<email>", | ||
"subscriptionId": "<subscriptionId>", | ||
"legalBasis": "LEGITIMATE_INTEREST_CLIENT", | ||
"legalBasisExplanation": "At users request, we opted them out" | ||
}' | ||
data_path: subscriptionStatuses | ||
param_values: | ||
- name: email | ||
identity: email | ||
- name: subscriptionId | ||
references: | ||
- dataset: hubspot_connector_example | ||
field: subscription_preferences.id | ||
direction: from | ||
postprocessors: | ||
- strategy: filter | ||
configuration: | ||
field: status | ||
value: SUBSCRIBED | ||
# - name: users | ||
# requests: | ||
# read: | ||
# path: /settings/v3/users/ | ||
# method: GET | ||
# query_params: | ||
# - name: limit | ||
# value: 100 | ||
# param_values: | ||
# - name: placeholder | ||
# identity: email | ||
# pagination: | ||
# strategy: link | ||
# configuration: | ||
# source: body | ||
# path: paging.next.link | ||
# postprocessors: | ||
# - strategy: unwrap | ||
# configuration: | ||
# data_path: results | ||
# - strategy: filter | ||
# configuration: | ||
# field: email | ||
# value: | ||
# identity: email | ||
# - name: user_provisioning | ||
# requests: | ||
# read: | ||
# path: /settings/v3/users/<userId> | ||
# method: GET | ||
# param_values: | ||
# - name: userId | ||
# references: | ||
# - dataset: hubspot_connector_example | ||
# field: users.id | ||
# direction: from | ||
# - name: placeholder | ||
# identity: email | ||
``` |
17 changes: 8 additions & 9 deletions
17
docs/fidesops/docs/sass_connectors.md → ...s_connectors/example_configs/mailchimp.md
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.