-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] data_encryption: pre-commit auto fixes
- Loading branch information
1 parent
8db9f51
commit 85f06f2
Showing
13 changed files
with
102 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
To configure this module, you need to edit the main configuration file | ||
of your instance, and add a directive called `running_env`. Commonly | ||
used values are 'dev', 'test', 'production': | ||
|
||
[options] | ||
running_env=dev | ||
|
||
You also need to set the encryption key(s). The main idea is to have | ||
different encryption keys for your different environment, to avoid the | ||
possibility to retrieve crucial information from the production | ||
environment in a developement environment, for instance. So, if your | ||
running environment is 'dev': | ||
|
||
[options] | ||
encryption_key_dev=fyeMIx9XVPBBky5XZeLDxVc9dFKy7Uzas3AoyMarHPA= | ||
|
||
In the configuration file of your production environment, you may want | ||
to configure all your other environments encryption key. This way, from | ||
production you can encrypt and decrypt data for all environments. | ||
|
||
You can generate keys with python -c 'from cryptography.fernet import | ||
Fernet; print(Fernet.generate_key())'. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Raphaël Reverdy \<<raphael.reverdy@akretion.com>\> | ||
- Florian da Costa \<<florian.dacosta@akretion.com>\> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This module allows to encrypt and decrypt data. This module is not | ||
usable by itself, it is a low level module which should work as a base | ||
for others. An example is the module server_environment_data_encryption |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
For now the encryption is dependent on the environment. It has been | ||
designed to store the same kind of data with different values depending | ||
on the environement (dev, preprod, prod...). An improvement could be to | ||
split this in 2 modules. But the environment stuff is not a big | ||
constraint. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# generated from manifests external_dependencies | ||
cryptography |