Decode url-encoded password for rabbit connection
Resolve that access fails when the Rabbitmq password contains special characters by the changes below.
6c5cc2fdf0
story: 2011222
task: 50999
Change-Id: I0cfc6e2228bc4b1327efb7da293849d6d1bbff19
This commit is contained in:
parent
75fdad3ff9
commit
61708c74d3
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Helm-Toolkit
|
||||
name: helm-toolkit
|
||||
version: 0.2.69
|
||||
version: 0.2.70
|
||||
home: https://docs.openstack.org/openstack-helm
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/OpenStack-Helm/OpenStack_Project_OpenStackHelm_vertical.png
|
||||
sources:
|
||||
|
@ -29,7 +29,9 @@ RABBITMQ_ADMIN_USERNAME=$(echo "${RABBITMQ_ADMIN_CONNECTION}" | \
|
||||
awk -F'[//:]' '{print $4}')
|
||||
RABBITMQ_ADMIN_PASSWORD=$(echo "${RABBITMQ_ADMIN_CONNECTION}" | \
|
||||
awk -F'[@]' '{print $1}' | \
|
||||
awk -F'[//:]' '{print $5}')
|
||||
awk -F'[//:]' '{print $5}' | \
|
||||
sed 's/%/\\x/g' | \
|
||||
xargs -0 printf "%b")
|
||||
|
||||
# Extract User creadential
|
||||
RABBITMQ_USERNAME=$(echo "${RABBITMQ_USER_CONNECTION}" | \
|
||||
@ -37,7 +39,9 @@ RABBITMQ_USERNAME=$(echo "${RABBITMQ_USER_CONNECTION}" | \
|
||||
awk -F'[//:]' '{print $4}')
|
||||
RABBITMQ_PASSWORD=$(echo "${RABBITMQ_USER_CONNECTION}" | \
|
||||
awk -F'[@]' '{print $1}' | \
|
||||
awk -F'[//:]' '{print $5}')
|
||||
awk -F'[//:]' '{print $5}' | \
|
||||
sed 's/%/\\x/g' | \
|
||||
xargs -0 printf "%b")
|
||||
|
||||
# Extract User vHost
|
||||
RABBITMQ_VHOST=$(echo "${RABBITMQ_USER_CONNECTION}" | \
|
||||
|
@ -76,4 +76,5 @@ helm-toolkit:
|
||||
- 0.2.67 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
||||
- 0.2.68 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
||||
- 0.2.69 Use quay.io/airshipit/kubernetes-entrypoint:latest-ubuntu_focal by default
|
||||
- 0.2.70 Decode url-encoded password for rabbit connection
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user