Any way to secretly include secret environment var...
# prisma-whats-new
m
Any way to secretly include secret environment variables in graphcool server-side subscription functions? Or can they just be pasted in?
Didn’t see anything mentioned about secrets in the documentation.
a
with inline functions, there's only pasting them in. If you use external webhooks, like webtask.io, they support setting secrets
👍🏽 1
m
And I guess that’s safe to paste them into the graphcool function area?
a
well, define safe
m
Uhm… so nobody steals ‘em? Clearly I’m a front-end guy (which is why I’m using graphcool rather than REST APIs.)
a
Well, it's safe for now, since you can't import/export functions anyway. In theory, no one other than the collaborators on your project and graphcool can see them
m
Oh good! That’s all I needed to know 🙂 Thanks, @agartha
a
Because if they suddenly start supporting exporting functions, your secrets might end up in a local file after a graphcool-cli pull
m
Sweet, thanks!
c
Would be cool to have heroku-like configs that can be set with graphcool-cli and then expose them as event.config (or something else) in functions
👍🏽 1
n
here's more information about how we container functions: https://github.com/graphcool/content/issues/149