secrets_cli 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbd036a910deff3dbcb0d7db49343d3bd90b1b69
4
- data.tar.gz: 2390d69738c825a8a44ca23a6157ba72f1be0eca
3
+ metadata.gz: df8b479ed5bcee7c806ee75767cfe27b302b2509
4
+ data.tar.gz: f5b712d98a1cad4360e5c0ff4634c4f233333f8f
5
5
  SHA512:
6
- metadata.gz: 81ddfb11f56a1df93cf142cf482a03de7e06d2a2a1ded9ae2d0dbc7ca3f2e6b065908e1e31fff00ca1b366a5b5caad61647efa37ef24c9774a094f64d82a26a3
7
- data.tar.gz: b460661d10dcbf5401f48a724a9c116a5a1e97f9b2e31f9802d0d07d25c0a0b47f566e7facccb046788f6ad2f4da2bcf41a9d8c47230f2071f68bfc4050d77bc
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
- SECRETS_VAULT_AUTH_METHOD - this is auth method ('github' or 'token' supported for now)
38
- SECRETS_VAULT_AUTH_TOKEN - this is vault auth token
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 # file where your secrets are kept, depending on your environment gem (figaro, dotenv, etc)
58
- :secrets_repo: rails/my_project/ # vault 'repo' where your secrets will be kept.
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
- ### Repos and environments
67
+ ### storage_keys and environments
69
68
 
70
- Next 3 commands read and write to your project repo in vault. The value of the repo is generated by
71
- secrets_repo + environment. Example:
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 repo, 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.
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 reports 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.
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
@@ -5,7 +5,7 @@ module SecretsCli
5
5
 
6
6
  def initialize(options)
7
7
  super
8
- @auth_token = options.auth_token || ENV['_VAULT_AUTH_TOKEN']
8
+ @auth_token = options.auth_token || ENV['VAULT_AUTH_TOKEN']
9
9
  @auth_method = options.auth_method || ENV['VAULT_AUTH_METHOD']
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module SecretsCli
2
- VERSION = "0.3.1"
2
+ VERSION = '0.4.0'
3
3
  end
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.3.1
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-02-23 00:00:00.000000000 Z
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.4.5
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/