guardrails icon indicating copy to clipboard operation
guardrails copied to clipboard

How to Deploy Guardrails with Hub via Docker image

Open titopandub opened this issue 11 months ago • 5 comments

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.

titopandub avatar Mar 25 '24 09:03 titopandub

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?

zsimjee avatar Mar 25 '24 19:03 zsimjee

Hi,

Thank you. We could substitute [token] with env vars though. But using env vars directly will be convenience. Will try it.

titopandub avatar Mar 26 '24 02:03 titopandub

This will cause security issue as the token will be visible when scanning the image, doesn't it ?

benoitcharmettant avatar Apr 04 '24 10:04 benoitcharmettant

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.

zsimjee avatar Apr 08 '24 14:04 zsimjee

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!

zsimjee avatar May 22 '24 20:05 zsimjee

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.

github-actions[bot] avatar Aug 22 '24 03:08 github-actions[bot]

This issue was closed because it has been stalled for 14 days with no activity.

github-actions[bot] avatar Sep 05 '24 03:09 github-actions[bot]