ib-gateway-docker icon indicating copy to clipboard operation
ib-gateway-docker copied to clipboard

Add an option to use json file as credential source

Open DaveWK opened this issue 2 years ago • 1 comments

A number of k8s secrets providers will expose an encrypted volume mount with a file path with which to provide secrets. This allows a file path to be defined as IB_CREDENTIALS_FILEPATH with a JSON dict containing "account" "password" and "trade_mode" as keys for their respective params.

I also eliminated the GCP_SECRET env var usage since it seemed redundant when GOOGLE_APPLICATION_CREDENTIALS is defined.

I had trouble running the tests locally, as I am using podman and the docker socket did not seem to have the right permissions.

I do not have access to a GCP setup so help testing for regressions would be appreciated

DaveWK avatar Oct 31 '22 21:10 DaveWK

Great, it's nice feature that read credentials from a file. I'll take a look when I'm free.

manhinhang avatar Nov 07 '22 15:11 manhinhang