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 +4 -4
- data/.travis.yml +0 -2
- data/README.md +48 -0
- data/lib/omnivault/apple_keychain.rb +1 -0
- data/lib/omnivault/version.rb +1 -1
- data/omnivault.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433738a65fde037327482496cd7b46abf275c232
|
4
|
+
data.tar.gz: c79baa5f365c99cac7adfb67e12d614efc97b897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db1564c7a0e6c708bfd40967a609a187cc39e7c4db9060ef14d91773dbcb14ef163cc92cd70f3e636d352068f13742ff26e5a2f9694366ac411c1fa17caf1245
|
7
|
+
data.tar.gz: 75d2579d76bb7b3afc746b71f562db85a0e7416c935e9e293fa1cfd2cc90f74484a83342ad3b0b24d30c0ca355edab7ae88f18495b1c5274df00145c566aa35d
|
data/.travis.yml
CHANGED
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.
|
data/lib/omnivault/version.rb
CHANGED
data/omnivault.gemspec
CHANGED
@@ -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'
|
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.
|
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-
|
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: '
|
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: '
|
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.
|
138
|
+
rubygems_version: 2.4.5
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Abstract password vault for multiple providers
|