File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ This will create a key file `{environment}.key` and an encrypted credentials fil
5353sicher edit
5454```
5555
56+ OR
57+
58+ to use the key from environment variable:
59+
60+ ``` shell
61+ env SICHER_MASTER_KEY=` {YOUR_KEY_HERE}` sicher edit
62+ ```
63+
5664** _ Optional flags:_ **
5765
5866| flag | description | default | options |
@@ -105,12 +113,6 @@ The `LoadEnv` function will load the credentials from the encrypted file `{envir
105113
106114The key also be loaded from the environment variable ` SICHER_MASTER_KEY ` . In production, storing the key in the environment variable is recommended.
107115
108- To use the key from environment variable:
109-
110- ``` shell
111- env SICHER_MASTER_KEY=` {YOUR_KEY_HERE}` sicher edit
112- ```
113-
114116All env files should be in the format like the example below:
115117
116118For ` dotenv ` :
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ func (s *sicher) Edit(editor ...string) error {
202202 return fmt .Errorf ("error creating temp file %v" , err )
203203 }
204204 defer f .Close ()
205+ f .Chmod (0600 )
205206 filePath := f .Name ()
206207 defer cleanUpFile (filePath )
207208
You can’t perform that action at this time.
0 commit comments