ciastko7568
06/13/2023, 6:49 AMvroldanbet
06/13/2023, 8:12 AMciastko7568
06/13/2023, 8:40 AM.env
and .env.local
and others, and load values only from ./spicedb.env
?vroldanbet
06/13/2023, 9:09 AMviper
, companion library to cobra
, as we already use both and should support env files.
w.r.t to hierarchies of files, I couldn't conclude there is a unanimous convention around file naming, and I also wasn't sure if we want to load an .env
file that could contain information relevant to other processes, hence I thought of a dotenv file specific to spicedbciastko7568
06/13/2023, 10:05 AMvroldanbet
06/13/2023, 10:29 AMviper
to manage configuration hierarchies, and I'd say we should stick to if we can implement the same with it (which apparently it should support). As for .env
vs spicedb.env
, I don't know if that's not a convention in the dotenv
world, but what I want to make sure is that SpiceDB does not load environments that are unrelated to it. I could imagine folks using .env
to store secrets from other services that then get loaded there. In containerized environments may not be a concern, but it could be in other execution environments.
is using <appname>.env
unorthodox within the dotenv convention?ciastko7568
06/21/2023, 1:02 PMvroldanbet
06/21/2023, 1:18 PMjzelinskie
06/21/2023, 2:23 PM.env
in another function called SyncViperDotEnvPreRunE()
.ciastko7568
06/21/2023, 2:53 PMciastko7568
06/21/2023, 3:05 PMciastko7568
06/21/2023, 9:32 PMvroldanbet
06/22/2023, 5:05 PM