secrets_cli 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -10
- data/lib/secrets_cli/vault/auth.rb +1 -1
- data/lib/secrets_cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df8b479ed5bcee7c806ee75767cfe27b302b2509
|
4
|
+
data.tar.gz: f5b712d98a1cad4360e5c0ff4634c4f233333f8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26df7b2f3baf5ce79cbf48ae29a7e0a56e82e2f0b6cbbffc85d24fa7da171bd6c0c1c593bb1e37d4c84e062cdd53a7c019dc6d4755c92f35ab8ffea8b21e424f
|
7
|
+
data.tar.gz: f6061b1517d2f88da2321ef5f39ecce2cd440e96a1aa9e1239d42ba0a27cf8f63b45823ffe88e9f3c086ebd4bc6cba5d6954852648cacdb2c84946ad83329b5f
|
data/README.md
CHANGED
@@ -34,8 +34,8 @@ For `vault` itself:
|
|
34
34
|
|
35
35
|
For `secrets_cli`:
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
VAULT_AUTH_METHOD - this is auth method ('github' or 'token' supported for now)
|
38
|
+
VAULT_AUTH_TOKEN - this is vault auth token
|
39
39
|
|
40
40
|
For github token you only need `read:org` permissions.
|
41
41
|
|
@@ -54,9 +54,8 @@ supply the config through options.
|
|
54
54
|
Example of the `.secrets`:
|
55
55
|
|
56
56
|
---
|
57
|
-
:secrets_file: config/application.yml
|
58
|
-
:
|
59
|
-
:secrets_field: secrets # a field in vault repo where the contents of secrets_file will be written
|
57
|
+
:secrets_file: config/application.yml # file where your secrets are kept, depending on your environment gem (figaro, dotenv, etc)
|
58
|
+
:secrets_storage_key: rails/my_project/ # vault 'storage_key' where your secrets will be kept.
|
60
59
|
|
61
60
|
### Auth
|
62
61
|
|
@@ -65,10 +64,10 @@ Example of the `.secrets`:
|
|
65
64
|
You need to first authenticate yourself on vault server to be able to read and write.
|
66
65
|
Needs to be done only _once_ for specific token.
|
67
66
|
|
68
|
-
###
|
67
|
+
### storage_keys and environments
|
69
68
|
|
70
|
-
Next 3 commands read and write to your project
|
71
|
-
|
69
|
+
Next 3 commands read and write to your project storage_key in vault. The value of the storage_key is generated by
|
70
|
+
secrets_storage_key + environment. Example:
|
72
71
|
|
73
72
|
`rails/my_project/development`
|
74
73
|
|
@@ -98,13 +97,13 @@ This will push from your secrets file to vault.
|
|
98
97
|
|
99
98
|
## Development
|
100
99
|
|
101
|
-
After checking out the
|
100
|
+
After checking out the storage_key, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
102
101
|
|
103
102
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
104
103
|
|
105
104
|
## Contributing
|
106
105
|
|
107
|
-
Bug
|
106
|
+
Bug storage_keyrts and pull requests are welcome on GitHub at https://github.com/infinum/secrets_cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
108
107
|
|
109
108
|
|
110
109
|
## License
|
data/lib/secrets_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secrets_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stjepan Hadjic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
version: '0'
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
165
|
+
rubygems_version: 2.5.1
|
166
166
|
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: This is a CLI for easier use of https://www.vaultproject.io/
|