Looks good. Almost stopped reading due the npm example, grasped it was just a use case, kept reading.
Kernel keyring support would be the next step?
PASS=$(keyctl print $(keyctl search @s user enveil_key))