The easier and more secure way is to just inject sensitive credentials through a proxy service that ideally lives outside of the box in which the agent runs.
Because even if you're doing this in-memory replacement, the content still lives in they system's memory. So, it makes it less obvious to leak a credential, but it certainly doesn't prevent it.
jvonb 7 hours ago [-]
[flagged]
jvonb 11 hours ago [-]
[flagged]
Rendered at 01:46:00 GMT+0000 (Coordinated Universal Time) with Vercel.
Because even if you're doing this in-memory replacement, the content still lives in they system's memory. So, it makes it less obvious to leak a credential, but it certainly doesn't prevent it.