Create a different key pr environment
Hi,
I'm trying to find out if it's possible to create a new key per environment. I cant find any documentation on it.
Ex: .Halite.key.prod or Ex: .Halite.prod.key
https://github.com/paragonie/halite/blob/master/doc/Classes/KeyFactory.md#loadauthenticationkey
You can load a key from a file. You can use environment variables to tell Halite which suffix to apply in the code that calls this. We aren't building the glue for this into Halite, of course.
We found a way around it by using environment ( %env()% ) variables in the halite config path. Though a .halite.prod environment support would have been great.
Though a .halite.prod environment support would have been great.
We're not opposed to that feature existing. We just don't think it belongs inside Halite.
For frameworks that do a lot of heavy lifting with environment variables, a separate meta-package that wraps Halite is more appropriate than us adding more cruft, technical debt, and attack surface to this cryptography library.