Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

983 Adds infra for email config and dispatch #1059

Merged
merged 15 commits into from
Aug 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ The types of changes are:

* Access support for Datadog Logs [#1060](https://github.com/ethyca/fidesops/pull/1060)
* Access and erasure support for Logi ID [#1074](https://github.com/ethyca/fidesops/pull/1074)
* Adds infra for email config and dispatch [#1059](https://github.com/ethyca/fidesops/pull/1059)

### Developer Experience

Expand Down
228 changes: 225 additions & 3 deletions docs/fidesops/docs/postman/Fidesops.postman_collection.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"info": {
"_postman_id": "2244490f-dd6c-4811-bcd7-40b560cec834",
"_postman_id": "c2e8bb17-9afa-4e3a-8cc0-e294b35956b5",
"name": "Fidesops",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "13396647"
},
"item": [
{
Expand Down Expand Up @@ -3902,6 +3903,222 @@
"response": []
}
]
},
{
"name": "Email Config",
"item": [
{
"name": "Post Email Config",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"key\": \"{{email_config_key}}\",\n \"name\": \"mailgun\",\n \"service_type\": \"mailgun\",\n \"details\": {\n \"domain\": \"{{mailgun_domain}}\"\n }\n}\n\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/email/config/",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
""
]
}
},
"response": []
},
{
"name": "Patch Email Config By Key",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"key\": \"{{email_config_key}}\",\n \"name\": \"mailgun\",\n \"service_type\": \"mailgun\",\n \"details\": {\n \"domain\": \"{{mailgun_domain}}\"\n }\n}\n\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/email/config/{{email_config_key}}",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
"{{email_config_key}}"
]
}
},
"response": []
},
{
"name": "Get Email Configs",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{host}}/email/config/",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
""
]
}
},
"response": []
},
{
"name": "Get Email Config By Key",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{host}}/email/config/{{email_config_key}}",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
"{{email_config_key}}"
]
}
},
"response": []
},
{
"name": "Delete Email Config By Key",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "[\n {\n \"key\": \"{{email_config_key}}\",\n \"name\": \"mailgun\",\n \"service_type\": \"mailgun\",\n \"details\": {\n \"domain\": \"{{mailgun_domain}}\"\n }\n }\n]\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/email/config/{{email_config_key}}",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
"{{email_config_key}}"
]
}
},
"response": []
},
{
"name": "Email Config Secrets",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{client_token}}",
"type": "string"
}
]
},
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"mailgun_api_key\": \"{{mailgun_api_key}}\"\n}\n\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{host}}/email/config/{{email_config_key}}/secret",
"host": [
"{{host}}"
],
"path": [
"email",
"config",
"{{email_config_key}}",
"secret"
]
}
},
"response": []
}
]
}
],
"event": [
Expand Down Expand Up @@ -4138,6 +4355,11 @@
{
"key": "manual_connector",
"value": "manual_key"
},
{
"key": "email_config_key",
"value": "my_email_config",
"type": "string"
}
]
}
}
2 changes: 2 additions & 0 deletions src/fidesops/ops/api/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
connection_type_endpoints,
dataset_endpoints,
drp_endpoints,
email_endpoints,
encryption_endpoints,
health_endpoints,
masking_endpoints,
Expand Down Expand Up @@ -32,6 +33,7 @@
api_router.include_router(policy_webhook_endpoints.router)
api_router.include_router(privacy_request_endpoints.router)
api_router.include_router(storage_endpoints.router)
api_router.include_router(email_endpoints.router)
api_router.include_router(saas_config_endpoints.router)
api_router.include_router(user_endpoints.router)
api_router.include_router(user_permission_endpoints.router)
Loading