Skip to content

Commit 36bb64b

Browse files
authored
Merge pull request #277 from StackStorm/hotfix/mistral-password-escape
1.5.0 release. Fixed bug in Mistral connection string
2 parents db819a4 + 672605e commit 36bb64b

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
## Development
44

5+
6+
## 1.5.0 (Oct 2, 2019)
7+
8+
- Fixed a bug in the `mistral` Postrgres connection string where passwords weren't
9+
being URL encoded / escaped. This could lead to potentially bad URL parsing
10+
when passwords contained certain special characters. To fix this, the
11+
password in the mistral `connection` parameter is now URL encoded / escaped.
12+
(Bugfix)
13+
Contributed by @nmaludy
14+
515
- Fixed a bug in the `st2_pack` resource so that when authentication fails, the error
616
message about why it failed is shown to the user.
717
(Bugfix)

manifests/profile/mistral.pp

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@
7272
### End Mistral Packages ###
7373

7474
### Mistral Config ###
75+
# URL encode the password, in case it contains special characters that
76+
# can mess up the URL in the config.
77+
$_db_password = st2::urlencode($db_password)
7578
ini_setting { 'database_connection':
7679
ensure => present,
7780
path => $mistral_config,
7881
section => 'database',
7982
setting => 'connection',
80-
value => "postgresql://${db_username}:${db_password}@${db_host}/${db_name}",
83+
value => "postgresql://${db_username}:${_db_password}@${db_host}/${db_name}",
8184
tag => 'mistral',
8285
}
8386

metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackstorm-st2",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"author": "stackstorm",
55
"summary": "Puppet module to manage/configure StackStorm",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)