Skip to content

Commit 9bfef8f

Browse files
committed
Merge branch 'v2_doc_update' of https://github.com/adobe-apiplatform/user-sync.py into v2_doc_update
2 parents 248ea31 + 126c60e commit 9bfef8f

File tree

7 files changed

+81
-77
lines changed

7 files changed

+81
-77
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Release Notes for User Sync Tool Version 2.2
1+
# Release Notes for User Sync Tool Version 2.2.1
22

3-
These notes apply to v2.2 of 2017-07-13.
3+
These notes apply to v2.2 of 2017-08-03.
44

55
## New Features
66

@@ -30,6 +30,8 @@ These notes apply to v2.2 of 2017-07-13.
3030

3131
[#254](https://github.com/adobe-apiplatform/user-sync.py/issues/254): Update windows libraries, reduce use of custom builds.
3232

33+
[#258](https://github.com/adobe-apiplatform/user-sync.py/issues/258): Correctly decrypt private keys in py3 (byte vs. str type compatibility).
34+
3335
## Compatibility with Prior Versions
3436

3537
This version is fully backwards-compatible with version 2.1.1. As mentioned above, there are new configuration settings for filtering group members and controlling network behavior, and there is a new command-line option for controlling the update strategy. See [the docs](https://adobe-apiplatform.github.io/user-sync.py) for full details about configuration.

docs/Gemfile.lock

Lines changed: 71 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (4.2.7)
4+
activesupport (4.2.8)
55
i18n (~> 0.7)
6-
json (~> 1.7, >= 1.7.7)
76
minitest (~> 5.1)
87
thread_safe (~> 0.3, >= 0.3.4)
98
tzinfo (~> 1.1)
10-
addressable (2.5.0)
9+
addressable (2.5.1)
1110
public_suffix (~> 2.0, >= 2.0.2)
1211
coffee-script (2.4.1)
1312
coffee-script-source
@@ -17,65 +16,64 @@ GEM
1716
ethon (0.10.1)
1817
ffi (>= 1.3.0)
1918
execjs (2.7.0)
20-
faraday (0.11.0)
19+
faraday (0.12.2)
2120
multipart-post (>= 1.2, < 3)
2221
ffi (1.9.18)
2322
forwardable-extended (2.6.0)
2423
gemoji (3.0.0)
25-
github-pages (127)
26-
activesupport (= 4.2.7)
27-
github-pages-health-check (= 1.3.3)
28-
jekyll (= 3.4.1)
24+
github-pages (146)
25+
activesupport (= 4.2.8)
26+
github-pages-health-check (= 1.3.5)
27+
jekyll (= 3.4.5)
2928
jekyll-avatar (= 0.4.2)
3029
jekyll-coffeescript (= 1.0.1)
3130
jekyll-default-layout (= 0.1.4)
32-
jekyll-feed (= 0.9.1)
31+
jekyll-feed (= 0.9.2)
3332
jekyll-gist (= 1.4.0)
34-
jekyll-github-metadata (= 2.3.1)
33+
jekyll-github-metadata (= 2.5.1)
3534
jekyll-mentions (= 1.2.0)
36-
jekyll-optional-front-matter (= 0.1.2)
35+
jekyll-optional-front-matter (= 0.2.0)
3736
jekyll-paginate (= 1.1.0)
38-
jekyll-readme-index (= 0.0.4)
37+
jekyll-readme-index (= 0.1.0)
3938
jekyll-redirect-from (= 0.12.1)
40-
jekyll-relative-links (= 0.3.0)
39+
jekyll-relative-links (= 0.4.1)
4140
jekyll-sass-converter (= 1.5.0)
42-
jekyll-seo-tag (= 2.1.0)
41+
jekyll-seo-tag (= 2.2.3)
4342
jekyll-sitemap (= 1.0.0)
4443
jekyll-swiss (= 0.4.0)
45-
jekyll-theme-architect (= 0.0.3)
46-
jekyll-theme-cayman (= 0.0.3)
47-
jekyll-theme-dinky (= 0.0.3)
48-
jekyll-theme-hacker (= 0.0.3)
49-
jekyll-theme-leap-day (= 0.0.3)
50-
jekyll-theme-merlot (= 0.0.3)
51-
jekyll-theme-midnight (= 0.0.3)
52-
jekyll-theme-minimal (= 0.0.3)
53-
jekyll-theme-modernist (= 0.0.3)
54-
jekyll-theme-primer (= 0.1.7)
55-
jekyll-theme-slate (= 0.0.3)
56-
jekyll-theme-tactile (= 0.0.3)
57-
jekyll-theme-time-machine (= 0.0.3)
58-
jekyll-titles-from-headings (= 0.1.4)
44+
jekyll-theme-architect (= 0.0.4)
45+
jekyll-theme-cayman (= 0.0.4)
46+
jekyll-theme-dinky (= 0.0.4)
47+
jekyll-theme-hacker (= 0.0.4)
48+
jekyll-theme-leap-day (= 0.0.4)
49+
jekyll-theme-merlot (= 0.0.4)
50+
jekyll-theme-midnight (= 0.0.4)
51+
jekyll-theme-minimal (= 0.0.4)
52+
jekyll-theme-modernist (= 0.0.4)
53+
jekyll-theme-primer (= 0.3.1)
54+
jekyll-theme-slate (= 0.0.4)
55+
jekyll-theme-tactile (= 0.0.4)
56+
jekyll-theme-time-machine (= 0.0.4)
57+
jekyll-titles-from-headings (= 0.2.0)
5958
jemoji (= 0.8.0)
6059
kramdown (= 1.13.2)
6160
liquid (= 3.0.6)
6261
listen (= 3.0.6)
6362
mercenary (~> 0.3)
64-
minima (= 2.0.0)
65-
nokogiri (= 1.6.8.1)
63+
minima (= 2.1.1)
6664
rouge (= 1.11.1)
6765
terminal-table (~> 1.4)
68-
github-pages-health-check (1.3.3)
66+
github-pages-health-check (1.3.5)
6967
addressable (~> 2.3)
7068
net-dns (~> 0.8)
7169
octokit (~> 4.0)
7270
public_suffix (~> 2.0)
7371
typhoeus (~> 0.7)
74-
html-pipeline (2.5.0)
72+
html-pipeline (2.6.0)
7573
activesupport (>= 2)
7674
nokogiri (>= 1.4)
77-
i18n (0.8.1)
78-
jekyll (3.4.1)
75+
i18n (0.8.6)
76+
jekyll (3.4.5)
7977
addressable (~> 2.4)
8078
colorator (~> 1.0)
8179
jekyll-sass-converter (~> 1.0)
@@ -92,60 +90,60 @@ GEM
9290
coffee-script (~> 2.2)
9391
jekyll-default-layout (0.1.4)
9492
jekyll (~> 3.0)
95-
jekyll-feed (0.9.1)
93+
jekyll-feed (0.9.2)
9694
jekyll (~> 3.3)
9795
jekyll-gist (1.4.0)
9896
octokit (~> 4.2)
99-
jekyll-github-metadata (2.3.1)
97+
jekyll-github-metadata (2.5.1)
10098
jekyll (~> 3.1)
10199
octokit (~> 4.0, != 4.4.0)
102100
jekyll-mentions (1.2.0)
103101
activesupport (~> 4.0)
104102
html-pipeline (~> 2.3)
105103
jekyll (~> 3.0)
106-
jekyll-optional-front-matter (0.1.2)
104+
jekyll-optional-front-matter (0.2.0)
107105
jekyll (~> 3.0)
108106
jekyll-paginate (1.1.0)
109-
jekyll-readme-index (0.0.4)
107+
jekyll-readme-index (0.1.0)
110108
jekyll (~> 3.0)
111109
jekyll-redirect-from (0.12.1)
112110
jekyll (~> 3.3)
113-
jekyll-relative-links (0.3.0)
111+
jekyll-relative-links (0.4.1)
114112
jekyll (~> 3.3)
115113
jekyll-sass-converter (1.5.0)
116114
sass (~> 3.4)
117-
jekyll-seo-tag (2.1.0)
115+
jekyll-seo-tag (2.2.3)
118116
jekyll (~> 3.3)
119117
jekyll-sitemap (1.0.0)
120118
jekyll (~> 3.3)
121119
jekyll-swiss (0.4.0)
122-
jekyll-theme-architect (0.0.3)
120+
jekyll-theme-architect (0.0.4)
123121
jekyll (~> 3.3)
124-
jekyll-theme-cayman (0.0.3)
122+
jekyll-theme-cayman (0.0.4)
125123
jekyll (~> 3.3)
126-
jekyll-theme-dinky (0.0.3)
124+
jekyll-theme-dinky (0.0.4)
127125
jekyll (~> 3.3)
128-
jekyll-theme-hacker (0.0.3)
126+
jekyll-theme-hacker (0.0.4)
129127
jekyll (~> 3.3)
130-
jekyll-theme-leap-day (0.0.3)
128+
jekyll-theme-leap-day (0.0.4)
131129
jekyll (~> 3.3)
132-
jekyll-theme-merlot (0.0.3)
130+
jekyll-theme-merlot (0.0.4)
133131
jekyll (~> 3.3)
134-
jekyll-theme-midnight (0.0.3)
132+
jekyll-theme-midnight (0.0.4)
135133
jekyll (~> 3.3)
136-
jekyll-theme-minimal (0.0.3)
134+
jekyll-theme-minimal (0.0.4)
137135
jekyll (~> 3.3)
138-
jekyll-theme-modernist (0.0.3)
136+
jekyll-theme-modernist (0.0.4)
139137
jekyll (~> 3.3)
140-
jekyll-theme-primer (0.1.7)
138+
jekyll-theme-primer (0.3.1)
141139
jekyll (~> 3.3)
142-
jekyll-theme-slate (0.0.3)
140+
jekyll-theme-slate (0.0.4)
143141
jekyll (~> 3.3)
144-
jekyll-theme-tactile (0.0.3)
142+
jekyll-theme-tactile (0.0.4)
145143
jekyll (~> 3.3)
146-
jekyll-theme-time-machine (0.0.3)
144+
jekyll-theme-time-machine (0.0.4)
147145
jekyll (~> 3.3)
148-
jekyll-titles-from-headings (0.1.4)
146+
jekyll-titles-from-headings (0.2.0)
149147
jekyll (~> 3.3)
150148
jekyll-watch (1.5.0)
151149
listen (~> 3.0, < 3.1)
@@ -154,42 +152,46 @@ GEM
154152
gemoji (~> 3.0)
155153
html-pipeline (~> 2.2)
156154
jekyll (>= 3.0)
157-
json (1.8.6)
158155
kramdown (1.13.2)
159156
liquid (3.0.6)
160157
listen (3.0.6)
161158
rb-fsevent (>= 0.9.3)
162159
rb-inotify (>= 0.9.7)
163160
mercenary (0.3.6)
164-
mini_portile2 (2.1.0)
165-
minima (2.0.0)
166-
minitest (5.10.1)
161+
mini_portile2 (2.2.0)
162+
minima (2.1.1)
163+
jekyll (~> 3.3)
164+
minitest (5.10.3)
167165
multipart-post (2.0.0)
168166
net-dns (0.8.0)
169-
nokogiri (1.6.8.1)
170-
mini_portile2 (~> 2.1.0)
171-
octokit (4.6.2)
167+
nokogiri (1.8.0)
168+
mini_portile2 (~> 2.2.0)
169+
octokit (4.7.0)
172170
sawyer (~> 0.8.0, >= 0.5.3)
173171
pathutil (0.14.0)
174172
forwardable-extended (~> 2.6)
175173
public_suffix (2.0.5)
176-
rb-fsevent (0.9.8)
177-
rb-inotify (0.9.8)
178-
ffi (>= 0.5.0)
174+
rb-fsevent (0.10.2)
175+
rb-inotify (0.9.10)
176+
ffi (>= 0.5.0, < 2)
179177
rouge (1.11.1)
180178
safe_yaml (1.0.4)
181-
sass (3.4.23)
179+
sass (3.5.1)
180+
sass-listen (~> 4.0.0)
181+
sass-listen (4.0.0)
182+
rb-fsevent (~> 0.9, >= 0.9.4)
183+
rb-inotify (~> 0.9, >= 0.9.7)
182184
sawyer (0.8.1)
183185
addressable (>= 2.3.5, < 2.6)
184186
faraday (~> 0.8, < 1.0)
185-
terminal-table (1.7.3)
186-
unicode-display_width (~> 1.1.1)
187+
terminal-table (1.8.0)
188+
unicode-display_width (~> 1.1, >= 1.1.1)
187189
thread_safe (0.3.6)
188190
typhoeus (0.8.0)
189191
ethon (>= 0.8.0)
190-
tzinfo (1.2.2)
192+
tzinfo (1.2.3)
191193
thread_safe (~> 0.1)
192-
unicode-display_width (1.1.3)
194+
unicode-display_width (1.3.0)
193195

194196
PLATFORMS
195197
ruby

docs/en/user-manual/deployment_best_practices.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ private key file, respectively:
121121
secure_api_key_key: umapi_api_key
122122
secure_client_secret_key: umapi_client_secret
123123
tech_acct: your tech [email protected]
124-
secure_priv_pass_key: umapi_private_key_passphrase
124+
secure_priv_key_pass_key: umapi_private_key_passphrase
125125
priv_key_path: private-encrypted.key
126126

127127
Finally, add the passphrase to the secure store as an entry with the username or url as the org Id, the key
128-
name as `umapi_private_key_passphrase` to match the `secure_priv_pass_key` config file entry, and the value
128+
name as `umapi_private_key_passphrase` to match the `secure_priv_key_pass_key` config file entry, and the value
129129
as the passphrase. (You can also inline the encrypted private key by placing the data in the
130130
connector-umapi.yml file under the key `priv_key_data` instead of using `priv_key_path`.)
131131

examples/config files - basic/2 connector-umapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ enterprise:
7373
# For better security, you should save your passphrase into the secure credential store
7474
# on your platform (username = your org ID, service/internet address = "umapi_private_key_passphrase")
7575
# and then uncomment this setting:
76-
#secure_priv_pass_key: umapi_private_key_passphrase
76+
#secure_priv_key_pass_key: umapi_private_key_passphrase

user_sync/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def main():
367367

368368
except AssertionException as e:
369369
if not e.is_reported():
370-
logger.critical(e.message)
370+
logger.critical("%s", e)
371371
e.set_reported()
372372
except KeyboardInterrupt:
373373
try:

user_sync/connector/umapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __init__(self, name, caller_options):
103103
passphrase = enterprise_config.get_credential('priv_key_pass', org_id, True)
104104
if passphrase:
105105
try:
106-
key_data = RSA.importKey(key_data, passphrase=passphrase).exportKey()
106+
key_data = str(RSA.importKey(key_data, passphrase=passphrase).exportKey().decode('ascii'))
107107
except (ValueError, IndexError, TypeError) as e:
108108
raise AssertionException('%s: Error decrypting private key, either the password is wrong or: %s' %
109109
(enterprise_config.get_full_scope(), e))

user_sync/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
__version__ = '2.2'
21+
__version__ = '2.2.1'

0 commit comments

Comments
 (0)