guardrails
guardrails copied to clipboard
How to Deploy Guardrails with Hub via Docker image
Description I want to deploy guardrails (with hub) by creating Docker image and deploy it on production
Why is this needed There is no documentation mention how to headless login to hub
End result
We can just use guardrails configure
and install from guardrails hub when building image.
Hi!
Yes this is a great point. We have this setup that you can use now (with v0.4.2 +)
guardrails configure --token [token]
Are there other headless ways you'd prefer, like using env vars?
Hi,
Thank you. We could substitute [token]
with env vars though. But using env vars directly will be convenience. Will try it.
This will cause security issue as the token will be visible when scanning the image, doesn't it ?
Only if the env vars are present at build time! I was thinking of using runtime env vars so you could use secrets on whatever container orchestration platform you use.
Hi @titopandub - I just released v0.4.4, it includes a headless option for configuring guardrails. Let me know if you get a chance to update!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.