Extend hero_proc-secret-store config to sibling compute binaries #129
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_compute#129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Following
hero_compute#127closure at32a2e2e,my_compute_zos_servernow sources its config from the hero_proc secret store viahero_proc_sdk::secret_getper the canonicalhero_proc_secrets_and_metaskill rule.The same pattern needs to be applied to the four sibling binaries that still call the legacy
hero_compute_sdk::load_env()helper:crates/my_compute_mos_server/src/main.rs:51crates/my_compute_explorer_server/src/main.rs:49crates/my_compute_explorer_admin/src/server.rs:148crates/my_compute_zos_admin/src/server.rs:60(callsload_envfromrpc_client::load_envatrpc_client.rs:78)Each binary needs:
Config::from_hero_proc()or equivalent method that callssecret_getfor every user-configurable value in the core context.load_env()+Config::from_env()startup pair with the new async entry point.load_envcallers; keepConfig::from_env()only as a unit-test helper where it exists.Once all five binaries are migrated,
crates/hero_compute_sdk/src/lib.rs::load_env()andcrates/my_compute_zos_server/src/util.rslegacy helpers can be deleted and the~/hero/var/.envfile convention retired.Fixed infrastructure paths (socket directories,
HERO_PROC_SOCKEToverride) remain read from OS env because they are set by the process launcher, not user-level config (per the skill's exception clause).