Skip to content

Commit 7c8d2a2

Browse files
committed
ssl_doc
1 parent 678ead9 commit 7c8d2a2

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/usage-instructions-v2.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,29 @@ for group in groups:
135135
print(group)
136136
```
137137

138+
## Disabling SSL Verification
139+
140+
In environments where SSL inspection is enforced at the firewall, the UMAPI client can encounter the following error:
141+
142+
2017-07-07 09:01:37 4916 CRITICAL main - UMAPI connection to org id 'someUUIDvalue@AdobeOrg' failed: [SSL: CERTIFICATE_VERIFY_FAILED]
143+
144+
This is because the requests module is not aware of the middle-man certificate required for SSL inspection. The recommended solution to this problem is to specify a path to the certificate bundle using the REQUESTS_CA_BUNDLE environment variable (see https://helpx.adobe.com/enterprise/kb/UMAPI-UST.html for details). However, in some cases following these steps does not solve the problem. The next logical step is to disable SSL inspection on the firewall for the UMAPI traffic. If, however, this is not permitted, you may work around the issue by disabling SSL verification for user-sync.
145+
146+
Disabling the verification is unsafe, and leaves the umapi client vulnerable to middle man attacks, so it is recommended to avoid disabling it if at all possible. The umapi client only ever targets two URLs - the usermanagement endpoint and the ims endpoint - both of which are secure Adobe URL's. In addition, since this option is only recommended for use in a secure network environment, any potential risk is further mitigated.
147+
148+
To bypass the ssl verification, update the umapi config as follows:
149+
150+
```yaml
151+
server:
152+
ssl_verify: False
153+
```
154+
155+
During the calls, you will also see a warning from requests:
156+
157+
"InsecureRequestWarning: Unverified HTTPS request is being made to host 'usermanagement-stage.adobe.io'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
158+
InsecureRequestWarning"
159+
160+
138161
# Performing Operations on Users
139162

140163
User operations in the UMAPI are performed in three steps:

0 commit comments

Comments
 (0)