Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a different key pr environment #175

Open
christianostrem opened this issue Sep 21, 2021 · 3 comments
Open

Create a different key pr environment #175

christianostrem opened this issue Sep 21, 2021 · 3 comments
Labels
third-party-software Third party software

Comments

@christianostrem
Copy link

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

@christianostrem christianostrem changed the title Create a different key per environment Create a different key pr environment Sep 21, 2021
@paragonie-security
Copy link
Contributor

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.

@christianostrem
Copy link
Author

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.

@paragonie-security
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party-software Third party software
Projects
None yet
Development

No branches or pull requests

2 participants