You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.rst
+79-11
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,6 @@ Or whatever variation of the above fits your system and shell.
48
48
49
49
To use **sops** as a library, take a look at the `decrypt package <https://godoc.org/go.mozilla.org/sops/decrypt>`_.
50
50
51
-
**Questions?** ping "ulfr" and "autrilla" in ``#security`` on `irc.mozilla.org <https://wiki.mozilla.org/IRC>`_
52
-
(use a web client like `mibbit <https://chat.mibbit.com>`_ ).
53
-
54
51
**What happened to Python Sops?** We rewrote Sops in Go to solve a number of
55
52
deployment issues, but the Python branch still exists under ``python-sops``. We
56
53
will keep maintaining it for a while, and you can still ``pip install sops``,
@@ -290,6 +287,66 @@ And decrypt it using::
290
287
$ sops --decrypt test.enc.yaml
291
288
292
289
290
+
Encrypting using Hashicorp Vault
291
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
292
+
293
+
We assume you have an instance (or more) of Vault running and you have privileged access to it. For instructions on how to deploy a secure instance of Vault, refer to Hashicorp's official documentation.
294
+
295
+
To easily deploy Vault locally: (DO NOT DO THIS FOR PRODUCTION!!!)
296
+
297
+
.. code:: bash
298
+
299
+
$ docker run -d -p8200:8200 vault:1.2.0 server -dev -dev-root-token-id=toor
300
+
301
+
302
+
.. code:: bash
303
+
304
+
$ # Substitute this with the address Vault is running on
305
+
$ export VAULT_ADDR=http://127.0.0.1:8200
306
+
307
+
$ # this may not be necessary in case you previously used `vault login` for production use
308
+
$ export VAULT_TOKEN=toor
309
+
310
+
$ # to check if Vault started and is configured correctly
311
+
$ vault status
312
+
Key Value
313
+
--- -----
314
+
Seal Type shamir
315
+
Initialized true
316
+
Sealed false
317
+
Total Shares 1
318
+
Threshold 1
319
+
Version 1.2.0
320
+
Cluster Name vault-cluster-618cc902
321
+
Cluster ID e532e461-e8f0-1352-8a41-fc7c11096908
322
+
HA Enabled false
323
+
324
+
$ # It is required to enable a transit engine if not already done (It is suggested to create a transit engine specifically for sops, in which it is possible to have multiple keys with various permission levels)
325
+
$ vault secrets enable -path=sops transit
326
+
Success! Enabled the transit secrets engine at: sops/
0 commit comments