Depends on D10147
keep the env var logic in place for the Docker workflow, but now also try to get the JSON from a file for normal yarn dev workflow
Differential D10148
[keyserver] try to get identity config from file if env var is not present varun on Dec 2 2023, 3:57 PM. Authored by Tags None Referenced Files
Details Depends on D10147 keep the env var logic in place for the Docker workflow, but now also try to get the JSON from a file for normal yarn dev workflow tried both Docker and yarn dev workflows, saw the expected logs and confirmed that the socket address was the fake one i set in the config
Diff Detail
Event TimelineComment Actions Can we do this in a more general way, similar to how getCommConfig works? Eg. factor out the "env var or config file" logic Comment Actions Agreed, the getCommConfig functionality could be easily implemented in Rust. But not sure if it's worth it for just this single value. This can be introduced later when needed (but we need a task, neither ENG-4196 nor ENG-4885 are accurate enough). Comment Actions How hard is it to implement such a simple function? If this was JS, it would take 10-15min or so, and I would do it now. Not sure if Rust somehow makes this more difficult? Comment Actions Might be some effort with static variables (for caching), we still use old lazy_static crate here which has some limitations, instead of newer once_cell. Returning this back to @varun
|