Back

Functions Question

  • 0
  • Functions
  • Web
Mordi Goldstein
4 Mar, 2024, 12:41

Can I give a function ENV variables or secrets to access when executed? Are these variables considered secure like Vercel's ENV variables?

TL;DR
Developers are discussing how to securely handle variables in functions. One developer suggests defining variables in the function settings and not exposing them. Another developer asks if it's possible to give functions ENV variables or secrets to access when executed, and wonders if these variables are as secure as Vercel's ENV variables.
D5
4 Mar, 2024, 12:58

You can. In the function settings you can define the variables, and yes, they're considered secure as long as you don't expose them

Mordi Goldstein
4 Mar, 2024, 13:00

Thank you, @D5 . When you say expose them you by doing something like logging or return them from a function or something similar?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more