omnivault 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d05e1845311fc4dc9cd6d93558626016bfb0d45
4
- data.tar.gz: 075296794303a383d635149e4663b79570c6f476
3
+ metadata.gz: 433738a65fde037327482496cd7b46abf275c232
4
+ data.tar.gz: c79baa5f365c99cac7adfb67e12d614efc97b897
5
5
  SHA512:
6
- metadata.gz: d4f62d3924e3235a558c8892bcbb0b618244eae0fb86c86c93a88d8c9b31846cfd90ce5a00e083421bb0ac9dc39f5535e570da66347968f7552f247a8bf4c926
7
- data.tar.gz: 2f203420cc8d7d8db006de6347ebcfe9fa834a89ea28afb083dcf91d09ed81c46d142ca9fbe79dd602a98125cb15d23e497f6ddf35813626f233ef8e164b1343
6
+ metadata.gz: db1564c7a0e6c708bfd40967a609a187cc39e7c4db9060ef14d91773dbcb14ef163cc92cd70f3e636d352068f13742ff26e5a2f9694366ac411c1fa17caf1245
7
+ data.tar.gz: 75d2579d76bb7b3afc746b71f562db85a0e7416c935e9e293fa1cfd2cc90f74484a83342ad3b0b24d30c0ca355edab7ae88f18495b1c5274df00145c566aa35d
@@ -1,4 +1,2 @@
1
1
  rvm:
2
2
  - "2.1"
3
- - 2.0.0
4
- - jruby
data/README.md CHANGED
@@ -48,6 +48,54 @@ omnivault.fetch("foo")
48
48
  # => "bar"
49
49
  ```
50
50
 
51
+ ## AWS Setup
52
+
53
+ Omnivault provides a `configure_aws!` method, which can be used to automatically load credentials in the context of the [AWS SDK for Ruby](https://aws.amazon.com/sdk-for-ruby/).
54
+
55
+ ```ruby
56
+ omnivault.configure_aws!
57
+ ```
58
+
59
+ To use this feature, you'll need to set up `aws-keychain-util` or `aws-pws`. With either approach, you can also (optionally) create a new `aws` shell command which wraps the original [AWS CLI](https://aws.amazon.com/cli/) to provide authenticated access to your AWS credentials.
60
+
61
+ ### Apple Keychain
62
+
63
+ To set up AWS credentials using `aws-keychain-util`:
64
+
65
+ 1. `gem install -N aws-keychain-util`
66
+ 2. `aws-creds init`
67
+ 3. `aws-creds add`
68
+
69
+ - Use 'default' for the account name
70
+ - Leave the MFA ARN blank
71
+
72
+ 4. (Optional) Add the following file as `aws` somewhere on your `PATH` with higher precedence than `/usr/local/bin`. (`$HOME/.bin` is a good choice.) Make it executable by running `chmod +x aws-safe`.
73
+
74
+ #!/bin/bash
75
+ # $HOME/.bin/aws
76
+
77
+ set -e
78
+
79
+ export $(aws-creds cat default)
80
+ /usr/local/bin/aws $@
81
+
82
+
83
+ ### PWS
84
+
85
+ On Linux, you can use PWS instead:
86
+
87
+ 1. `gem install -N aws-pws`
88
+ 2. `aws-pws init`
89
+ 3. (Optional) Add the following file as `aws` somewhere on your `PATH` with higher precedence than `/usr/local/bin`.
90
+
91
+ #!/bin/bash
92
+ # $HOME/.bin/aws
93
+
94
+ set -e
95
+
96
+ export $(aws-pws cat)
97
+ /usr/local/bin/aws $@
98
+
51
99
  ## TODO
52
100
 
53
101
  * Add support for 1Password keychains.
@@ -22,6 +22,7 @@ module Omnivault
22
22
  keychain = open_or_create_keychain
23
23
  if (entry = keychain.generic_passwords.where(label: key).all.first)
24
24
  entry.password = value
25
+ entry.save!
25
26
  else
26
27
  keychain.generic_passwords.create(
27
28
  service: key,
@@ -1,3 +1,3 @@
1
1
  module Omnivault
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'aws-keychain-util'
23
23
  spec.add_dependency 'aws-pws'
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.8'
25
+ spec.add_development_dependency 'bundler'
26
26
  spec.add_development_dependency 'aptible-tasks'
27
27
  spec.add_development_dependency 'rake'
28
28
  spec.add_development_dependency 'rspec', '~> 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnivault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-keychain-util
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.8'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.8'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aptible-tasks
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.2.2
138
+ rubygems_version: 2.4.5
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Abstract password vault for multiple providers