Skip to content

192 production networking

Closes #192 (closed) (Which blocks https://code.chs.usgs.gov/ghsc/hazdev/cdk/anss-pdl/-/issues/246)

This is the counter part to this change: https://code.chs.usgs.gov/ghsc/hazdev/cdk/anss-pdl/-/merge_requests/156

There was a bug in the ProductKeyChain when using the a separate configuration file to load in keys from, which caused it to read the globally set Config.getConfig() object rather than the one passed into the constructor.

Since due to this bug we will have to cut another build of the java client, I opted to add in the ability to retrieve a private key from secrets manager if given the privateKeySecretName in the config for a product sender. We could have gotten around this by doing something similar to this update_database_script in the infrastructure repo, but 1) it was a little tricky to add that due to the way the files are set up and 2) this ensures that every time the app is started up it gets the most up to date value (rather than when the ec2 instance is spun up)

Edited by Hawthorne, Bryan D

Merge request reports

Loading