Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Notification
Commits
71e207d5
Commit
71e207d5
authored
Nov 12, 2020
by
Rucha Deshpande
Browse files
Bug Fix: Update SSM parameter retrieval
parent
d9459e9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
provider/notification-aws/src/main/java/org/opengroup/osdu/notification/provider/aws/impl/ServiceAccountJwtAwsClientImpl.java
View file @
71e207d5
...
...
@@ -101,22 +101,9 @@ public class ServiceAccountJwtAwsClientImpl implements IServiceAccountJwtClient
GetParameterRequest
paramRequest
=
new
GetParameterRequest
()
.
withName
(
client_credentials_client_id
)
.
withWithDecryption
(
true
);
GetParameterResult
paramResult
=
new
GetParameterResult
();
paramResult
=
ssmManager
.
getParameter
(
paramRequest
);
List
<
Parameter
>
paramsResultList
=
new
ArrayList
<>();
List
<
String
>
paramsResultListInvalid
=
new
ArrayList
<>();
paramsResultList
=
paramResult
.
getParameters
();
paramsResultListInvalid
=
paramResult
.
getInvalidParameters
();
if
(
paramsResultListInvalid
.
size
()
>
0
)
{
log
.
error
(
"Notification Service: SSM did not retrieve all parameters"
);
}
for
(
Parameter
s
:
paramsResultList
)
{
if
(
s
.
getName
().
equalsIgnoreCase
(
client_credentials_client_id
))
{
client_credentials_clientid
=
s
.
getValue
();
}
}
GetParameterResult
paramResult
=
ssmManager
.
getParameter
(
paramRequest
);
Parameter
paramsResult
=
paramResult
.
getParameter
();
client_credentials_clientid
=
paramsResult
.
getValue
();
client_credentials_secret
=
getSecret
(
client_secret_secretName
,
amazonRegion
,
client_secret_key
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment