vault-kv 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +42 -0
- data/.rspec +2 -0
- data/.travis.yml +29 -0
- data/CHANGELOG.md +228 -0
- data/Gemfile +3 -0
- data/LICENSE +362 -0
- data/README.md +212 -0
- data/Rakefile +6 -0
- data/lib/vault.rb +49 -0
- data/lib/vault/api.rb +13 -0
- data/lib/vault/api/approle.rb +218 -0
- data/lib/vault/api/auth.rb +316 -0
- data/lib/vault/api/auth_tls.rb +92 -0
- data/lib/vault/api/auth_token.rb +242 -0
- data/lib/vault/api/help.rb +33 -0
- data/lib/vault/api/kv.rb +207 -0
- data/lib/vault/api/logical.rb +150 -0
- data/lib/vault/api/secret.rb +168 -0
- data/lib/vault/api/sys.rb +25 -0
- data/lib/vault/api/sys/audit.rb +91 -0
- data/lib/vault/api/sys/auth.rb +116 -0
- data/lib/vault/api/sys/health.rb +63 -0
- data/lib/vault/api/sys/init.rb +83 -0
- data/lib/vault/api/sys/leader.rb +48 -0
- data/lib/vault/api/sys/lease.rb +49 -0
- data/lib/vault/api/sys/mount.rb +103 -0
- data/lib/vault/api/sys/policy.rb +92 -0
- data/lib/vault/api/sys/seal.rb +81 -0
- data/lib/vault/client.rb +447 -0
- data/lib/vault/configurable.rb +48 -0
- data/lib/vault/defaults.rb +197 -0
- data/lib/vault/encode.rb +19 -0
- data/lib/vault/errors.rb +72 -0
- data/lib/vault/persistent.rb +1158 -0
- data/lib/vault/persistent/connection.rb +42 -0
- data/lib/vault/persistent/pool.rb +48 -0
- data/lib/vault/persistent/timed_stack_multi.rb +70 -0
- data/lib/vault/request.rb +43 -0
- data/lib/vault/response.rb +89 -0
- data/lib/vault/vendor/connection_pool.rb +150 -0
- data/lib/vault/vendor/connection_pool/timed_stack.rb +178 -0
- data/lib/vault/vendor/connection_pool/version.rb +5 -0
- data/lib/vault/version.rb +3 -0
- data/vault.gemspec +30 -0
- metadata +186 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e73b8f94c5576749066909a65d089f167c4babde5fa0a31f3a15b17312508629
|
4
|
+
data.tar.gz: 53a0e8ad02981b2aaa9c0cc0547f3d6f02b1c5b2049a822850bb27e9b95d097b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8f512ace912e8f76dd85525bad9fc474cffa3ca151198e9fbc4b8362df88bb4b12efe24ec785d54fbb114ffed0bfca3dae012238c62dd4d7d7f2e4018151d488
|
7
|
+
data.tar.gz: 2259528ff6222943e08515e75f98e55f65c116a8a12039abbba05c341b6754462bc64ab035170e9dd84d33876340ffac13d63b4782e71f4d1f385943dea34dfb
|
data/.gitignore
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
### Ruby ###
|
2
|
+
*.gem
|
3
|
+
*.rbc
|
4
|
+
/.config
|
5
|
+
/.vscode
|
6
|
+
/coverage/
|
7
|
+
/InstalledFiles
|
8
|
+
/pkg/
|
9
|
+
/spec/reports/
|
10
|
+
/test/tmp/
|
11
|
+
/test/version_tmp/
|
12
|
+
/tmp/
|
13
|
+
/vendor/bundle/
|
14
|
+
/vendor/ruby/
|
15
|
+
|
16
|
+
## Specific to RubyMotion:
|
17
|
+
.dat*
|
18
|
+
.repl_history
|
19
|
+
build/
|
20
|
+
|
21
|
+
## Documentation cache and generated files:
|
22
|
+
/.yardoc/
|
23
|
+
/_yardoc/
|
24
|
+
/doc/
|
25
|
+
/rdoc/
|
26
|
+
|
27
|
+
## Environment normalisation:
|
28
|
+
/.bundle/
|
29
|
+
/vendor/bundle
|
30
|
+
/lib/bundler/man/
|
31
|
+
|
32
|
+
# for a library or gem, you might want to ignore these files since the code is
|
33
|
+
# intended to run in multiple environments; otherwise, check them in:
|
34
|
+
Gemfile.lock
|
35
|
+
.ruby-version
|
36
|
+
.ruby-gemset
|
37
|
+
|
38
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
39
|
+
.rvmrc
|
40
|
+
|
41
|
+
# Project-specific
|
42
|
+
spec/tmp
|
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
dist: trusty
|
2
|
+
sudo: false
|
3
|
+
language: ruby
|
4
|
+
cache: bundler
|
5
|
+
|
6
|
+
env:
|
7
|
+
- VAULT_VERSION=0.11.4
|
8
|
+
- VAULT_VERSION=0.10.4
|
9
|
+
- VAULT_VERSION=0.9.6
|
10
|
+
- VAULT_VERSION=0.8.3
|
11
|
+
- VAULT_VERSION=0.7.3
|
12
|
+
- VAULT_VERSION=0.6.5
|
13
|
+
- VAULT_VERSION=0.5.3
|
14
|
+
|
15
|
+
before_install:
|
16
|
+
- curl -sLo vault.zip https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip
|
17
|
+
- unzip vault.zip
|
18
|
+
- mkdir -p ~/bin
|
19
|
+
- mv vault ~/bin
|
20
|
+
- export PATH="~/bin:$PATH"
|
21
|
+
|
22
|
+
branches:
|
23
|
+
only:
|
24
|
+
- master
|
25
|
+
|
26
|
+
rvm:
|
27
|
+
- 2.2
|
28
|
+
- 2.3
|
29
|
+
- 2.4
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,228 @@
|
|
1
|
+
# Vault Ruby Changelog
|
2
|
+
|
3
|
+
## v0.12.0 (August 14, 2018)
|
4
|
+
|
5
|
+
IMPROVEMENTS
|
6
|
+
|
7
|
+
- Expose the github login path as an optional argument
|
8
|
+
- Support HTTP basic auth [GH-181]
|
9
|
+
- Expose the AWS IAM path to use [GH-180]
|
10
|
+
- Add GCP Auth [GH-173]
|
11
|
+
- Add shutdown functionality to close persistent connections [GH-175]
|
12
|
+
|
13
|
+
BUG FIXES
|
14
|
+
|
15
|
+
- Specifing the hostname for SNI didn't work. The functionality has been disabled for now.
|
16
|
+
|
17
|
+
## v0.11.0 (March 19, 2018)
|
18
|
+
|
19
|
+
IMPROVEMENTS
|
20
|
+
|
21
|
+
- Access to health has been added.
|
22
|
+
- Added ability to handle a Base64 encoded PEM (useful for certs in environment variables)
|
23
|
+
- Added IAM EC2 authentication support
|
24
|
+
- Add custom mount path support to TLS authentication
|
25
|
+
|
26
|
+
## v0.10.1 (May 8, 2017)
|
27
|
+
|
28
|
+
IMPROVEMENTS
|
29
|
+
|
30
|
+
- `vault-ruby` is licensed under Mozilla Public License 2.0, and has been for over 2 years. This patch release updates the gemspec to use the correct SPDX ID string for reporting this license, but **no change to the licensing of this gem has occurred**.
|
31
|
+
|
32
|
+
|
33
|
+
## v0.10.0 (April 19, 2017)
|
34
|
+
|
35
|
+
IMPROVEMENTS
|
36
|
+
|
37
|
+
- `#with_retries` now defaults to checking `HTTPServerError` if called without
|
38
|
+
an error classes
|
39
|
+
|
40
|
+
BUG FIXES
|
41
|
+
|
42
|
+
- Don't randomly fail when parsing with Time.parse [GH-140]
|
43
|
+
|
44
|
+
|
45
|
+
## v0.9.0 (March 10, 2017)
|
46
|
+
|
47
|
+
IMPROVEMENTS
|
48
|
+
|
49
|
+
- The pool size used to talk with vault is now configurable. Using `Vault.pool_size` or the env var `VAULT_POOL_SIZE`.
|
50
|
+
|
51
|
+
## v0.8.0 (March 3, 2017)
|
52
|
+
|
53
|
+
BREAKING CHANGES
|
54
|
+
|
55
|
+
- Use PUT/POST for all functions that involve tokens [GH-117]. For Vault 0.6+,
|
56
|
+
this will work as-expected. For older Vault versions, you will need to use an
|
57
|
+
older client library which uses the URL instead. This is deprecated in Vault
|
58
|
+
because the URL would include the token, thus revealing it in request logs.
|
59
|
+
These new methods place the token in the body instead.
|
60
|
+
|
61
|
+
BUG FIXES
|
62
|
+
|
63
|
+
- Do not convert arrays in `#to_h` [GH-125]
|
64
|
+
- Prevent mismatched checkout/checkin from the connection pool; this will avoid masking errors that occur on pool checkout.
|
65
|
+
|
66
|
+
IMPROVEMENTS
|
67
|
+
|
68
|
+
- Support new init API options [GH-127]
|
69
|
+
- Return base64-encoded keys in init response [GH-128]
|
70
|
+
- Add support for `#hostname` for specifying SNI hostname to validate [GH-112]
|
71
|
+
|
72
|
+
## v0.7.3 (October 25, 2016)
|
73
|
+
|
74
|
+
BUG FIXES
|
75
|
+
|
76
|
+
- Allow options to be set on `Vault` as well as any `Vault::Client`
|
77
|
+
instance to be used properly.
|
78
|
+
- Remove Ruby 2.0 syntax in favor of Ruby 1.9
|
79
|
+
|
80
|
+
## v0.7.2 (October 24, 2016)
|
81
|
+
|
82
|
+
BUG FIXES
|
83
|
+
|
84
|
+
- Set the default pool size to 16 rather than calculating from
|
85
|
+
the number of available file descriptors.
|
86
|
+
|
87
|
+
## v0.7.1 (October 21, 2016)
|
88
|
+
|
89
|
+
BUG FIXES
|
90
|
+
|
91
|
+
- Properly vendor Net::HTTP::Persistent so that it doesn't collide
|
92
|
+
with net-http-persistent
|
93
|
+
- Fix behavior where `verify_mode` was forced to `VERIFY_PEER`
|
94
|
+
if a custom CA was set
|
95
|
+
|
96
|
+
## v0.7.0 (October 18, 2016)
|
97
|
+
|
98
|
+
DEPRECATIONS
|
99
|
+
|
100
|
+
- Vault versions older than 0.5.3 are no longer tested
|
101
|
+
|
102
|
+
NEW FEATURES
|
103
|
+
|
104
|
+
- Add support for AppRole
|
105
|
+
- Expose the auth/tune API
|
106
|
+
- Add support for leader step down
|
107
|
+
- Use persistent connections to Vault to speed up requests
|
108
|
+
- Add support for a custom ssl certificate store
|
109
|
+
|
110
|
+
BUG FIXES
|
111
|
+
|
112
|
+
- Allow for spaces in secret names properly
|
113
|
+
|
114
|
+
## v0.6.0 (August 30, 2016)
|
115
|
+
|
116
|
+
NEW FEATURES
|
117
|
+
|
118
|
+
- Add support for Vault 0.6.1 APIs
|
119
|
+
- Add new token `accessors` API method
|
120
|
+
- Add TLS authentication endpoints
|
121
|
+
|
122
|
+
BUG FIXES
|
123
|
+
|
124
|
+
- Restore old `to_h` behavior on response objects
|
125
|
+
|
126
|
+
IMPROVEMENTS
|
127
|
+
|
128
|
+
- Bootstrap full testing harness against old Vault versions
|
129
|
+
|
130
|
+
## v0.5.0 (August 16, 2016)
|
131
|
+
|
132
|
+
NEW FEATURES
|
133
|
+
|
134
|
+
- Add TTL wrapping to logical and auth backends
|
135
|
+
- Support passing PGP keys to init
|
136
|
+
|
137
|
+
BUG FIXES
|
138
|
+
|
139
|
+
- New API documentation
|
140
|
+
- Remove recursive requires
|
141
|
+
|
142
|
+
## v0.4.0 (March 31, 2016)
|
143
|
+
|
144
|
+
NEW FEATURES
|
145
|
+
|
146
|
+
- Add LDAP authentication method [GH-61]
|
147
|
+
- Add GitHub authentication method [GH-37]
|
148
|
+
- Add `create_orphan` method [GH-65]
|
149
|
+
- Add `lookup` and `lookup_self` for tokens
|
150
|
+
- Accept `VAULT_SKIP_VERIFY` environment variable [GH-66]
|
151
|
+
|
152
|
+
BUG FIXES
|
153
|
+
|
154
|
+
- Prefer `VAULT_TOKEN` environment variable over disk to mirror Vault's own
|
155
|
+
behavior [GH-98]
|
156
|
+
- Do not duplicate query parameters on HEAD/GET requests [GH-62]
|
157
|
+
- Yield exception in `with_retries` [GH-68]
|
158
|
+
|
159
|
+
## v0.3.0 (February 16, 2016)
|
160
|
+
|
161
|
+
NEW FEATURES
|
162
|
+
|
163
|
+
- Add API for `renew_self`
|
164
|
+
- Add API for `revoke_self`
|
165
|
+
- Add API for listing secrets where supported
|
166
|
+
|
167
|
+
BUG FIXES
|
168
|
+
|
169
|
+
- Relax bundler constraint
|
170
|
+
- Fix race conditions on Ruby 2.3
|
171
|
+
- Escape path params before posting to Vault
|
172
|
+
|
173
|
+
## v0.2.0 (December 2, 2015)
|
174
|
+
|
175
|
+
IMPROVEMENTS
|
176
|
+
|
177
|
+
- Add support for retries (clients must opt-in) [GH-47]
|
178
|
+
|
179
|
+
BUG FIXES
|
180
|
+
|
181
|
+
- Fix redirection on POST/PUT [GH-40]
|
182
|
+
- Use `$HOME` instead of `~` for shell expansion
|
183
|
+
|
184
|
+
## v0.1.5 (September 1, 2015)
|
185
|
+
|
186
|
+
IMPROVEMENTS
|
187
|
+
|
188
|
+
- Use headers instead of cookies for authenticating to Vault [GH-36]
|
189
|
+
|
190
|
+
BUG FIXES
|
191
|
+
|
192
|
+
- Do not set undefined OpenSSL options
|
193
|
+
- Add `ssl_pem_passphrase` as a configuration option [GH-35]
|
194
|
+
|
195
|
+
## v0.1.4 (August 15, 2015)
|
196
|
+
|
197
|
+
IMPROVEMENTS
|
198
|
+
|
199
|
+
- Add support for using a custom CA cert [GH-8]
|
200
|
+
- Allow clients to specify timeouts [GH-12, GH-14]
|
201
|
+
- Show which error caused the HTTPConnectionError [GH-30]
|
202
|
+
- Allow clients to specify which SSL cipher suites to use [GH-29]
|
203
|
+
- Allow clients to specify the SSL pem password [GH-22, GH-31]
|
204
|
+
|
205
|
+
BUG FIXES
|
206
|
+
|
207
|
+
- Read local token (`~/.vault-token`) for token if present [GH-13]
|
208
|
+
- Disable bad SSL cipher suites and force TLSv1.2 [GH-16]
|
209
|
+
- Update to test against Vault 0.2.0 [GH-20]
|
210
|
+
- Do not attempt a read on logical path write [GH-11, GH-32]
|
211
|
+
|
212
|
+
## v0.1.3 (May 14, 2015)
|
213
|
+
|
214
|
+
BUG FIXES
|
215
|
+
|
216
|
+
- Decode logical response body if present
|
217
|
+
|
218
|
+
## v0.1.2 (May 3, 2015)
|
219
|
+
|
220
|
+
BUG FIXES
|
221
|
+
|
222
|
+
- Require vault/version before accessing Vault::VERSION in the client
|
223
|
+
- Improve Travis CI test coverage
|
224
|
+
- README and typo fixes
|
225
|
+
|
226
|
+
## v0.1.1 (April 4, 2015)
|
227
|
+
|
228
|
+
- Initial release
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,362 @@
|
|
1
|
+
Mozilla Public License, version 2.0
|
2
|
+
|
3
|
+
1. Definitions
|
4
|
+
|
5
|
+
1.1. "Contributor"
|
6
|
+
|
7
|
+
means each individual or legal entity that creates, contributes to the
|
8
|
+
creation of, or owns Covered Software.
|
9
|
+
|
10
|
+
1.2. "Contributor Version"
|
11
|
+
|
12
|
+
means the combination of the Contributions of others (if any) used by a
|
13
|
+
Contributor and that particular Contributor's Contribution.
|
14
|
+
|
15
|
+
1.3. "Contribution"
|
16
|
+
|
17
|
+
means Covered Software of a particular Contributor.
|
18
|
+
|
19
|
+
1.4. "Covered Software"
|
20
|
+
|
21
|
+
means Source Code Form to which the initial Contributor has attached the
|
22
|
+
notice in Exhibit A, the Executable Form of such Source Code Form, and
|
23
|
+
Modifications of such Source Code Form, in each case including portions
|
24
|
+
thereof.
|
25
|
+
|
26
|
+
1.5. "Incompatible With Secondary Licenses"
|
27
|
+
means
|
28
|
+
|
29
|
+
a. that the initial Contributor has attached the notice described in
|
30
|
+
Exhibit B to the Covered Software; or
|
31
|
+
|
32
|
+
b. that the Covered Software was made available under the terms of
|
33
|
+
version 1.1 or earlier of the License, but not also under the terms of
|
34
|
+
a Secondary License.
|
35
|
+
|
36
|
+
1.6. "Executable Form"
|
37
|
+
|
38
|
+
means any form of the work other than Source Code Form.
|
39
|
+
|
40
|
+
1.7. "Larger Work"
|
41
|
+
|
42
|
+
means a work that combines Covered Software with other material, in a
|
43
|
+
separate file or files, that is not Covered Software.
|
44
|
+
|
45
|
+
1.8. "License"
|
46
|
+
|
47
|
+
means this document.
|
48
|
+
|
49
|
+
1.9. "Licensable"
|
50
|
+
|
51
|
+
means having the right to grant, to the maximum extent possible, whether
|
52
|
+
at the time of the initial grant or subsequently, any and all of the
|
53
|
+
rights conveyed by this License.
|
54
|
+
|
55
|
+
1.10. "Modifications"
|
56
|
+
|
57
|
+
means any of the following:
|
58
|
+
|
59
|
+
a. any file in Source Code Form that results from an addition to,
|
60
|
+
deletion from, or modification of the contents of Covered Software; or
|
61
|
+
|
62
|
+
b. any new file in Source Code Form that contains any Covered Software.
|
63
|
+
|
64
|
+
1.11. "Patent Claims" of a Contributor
|
65
|
+
|
66
|
+
means any patent claim(s), including without limitation, method,
|
67
|
+
process, and apparatus claims, in any patent Licensable by such
|
68
|
+
Contributor that would be infringed, but for the grant of the License,
|
69
|
+
by the making, using, selling, offering for sale, having made, import,
|
70
|
+
or transfer of either its Contributions or its Contributor Version.
|
71
|
+
|
72
|
+
1.12. "Secondary License"
|
73
|
+
|
74
|
+
means either the GNU General Public License, Version 2.0, the GNU Lesser
|
75
|
+
General Public License, Version 2.1, the GNU Affero General Public
|
76
|
+
License, Version 3.0, or any later versions of those licenses.
|
77
|
+
|
78
|
+
1.13. "Source Code Form"
|
79
|
+
|
80
|
+
means the form of the work preferred for making modifications.
|
81
|
+
|
82
|
+
1.14. "You" (or "Your")
|
83
|
+
|
84
|
+
means an individual or a legal entity exercising rights under this
|
85
|
+
License. For legal entities, "You" includes any entity that controls, is
|
86
|
+
controlled by, or is under common control with You. For purposes of this
|
87
|
+
definition, "control" means (a) the power, direct or indirect, to cause
|
88
|
+
the direction or management of such entity, whether by contract or
|
89
|
+
otherwise, or (b) ownership of more than fifty percent (50%) of the
|
90
|
+
outstanding shares or beneficial ownership of such entity.
|
91
|
+
|
92
|
+
|
93
|
+
2. License Grants and Conditions
|
94
|
+
|
95
|
+
2.1. Grants
|
96
|
+
|
97
|
+
Each Contributor hereby grants You a world-wide, royalty-free,
|
98
|
+
non-exclusive license:
|
99
|
+
|
100
|
+
a. under intellectual property rights (other than patent or trademark)
|
101
|
+
Licensable by such Contributor to use, reproduce, make available,
|
102
|
+
modify, display, perform, distribute, and otherwise exploit its
|
103
|
+
Contributions, either on an unmodified basis, with Modifications, or
|
104
|
+
as part of a Larger Work; and
|
105
|
+
|
106
|
+
b. under Patent Claims of such Contributor to make, use, sell, offer for
|
107
|
+
sale, have made, import, and otherwise transfer either its
|
108
|
+
Contributions or its Contributor Version.
|
109
|
+
|
110
|
+
2.2. Effective Date
|
111
|
+
|
112
|
+
The licenses granted in Section 2.1 with respect to any Contribution
|
113
|
+
become effective for each Contribution on the date the Contributor first
|
114
|
+
distributes such Contribution.
|
115
|
+
|
116
|
+
2.3. Limitations on Grant Scope
|
117
|
+
|
118
|
+
The licenses granted in this Section 2 are the only rights granted under
|
119
|
+
this License. No additional rights or licenses will be implied from the
|
120
|
+
distribution or licensing of Covered Software under this License.
|
121
|
+
Notwithstanding Section 2.1(b) above, no patent license is granted by a
|
122
|
+
Contributor:
|
123
|
+
|
124
|
+
a. for any code that a Contributor has removed from Covered Software; or
|
125
|
+
|
126
|
+
b. for infringements caused by: (i) Your and any other third party's
|
127
|
+
modifications of Covered Software, or (ii) the combination of its
|
128
|
+
Contributions with other software (except as part of its Contributor
|
129
|
+
Version); or
|
130
|
+
|
131
|
+
c. under Patent Claims infringed by Covered Software in the absence of
|
132
|
+
its Contributions.
|
133
|
+
|
134
|
+
This License does not grant any rights in the trademarks, service marks,
|
135
|
+
or logos of any Contributor (except as may be necessary to comply with
|
136
|
+
the notice requirements in Section 3.4).
|
137
|
+
|
138
|
+
2.4. Subsequent Licenses
|
139
|
+
|
140
|
+
No Contributor makes additional grants as a result of Your choice to
|
141
|
+
distribute the Covered Software under a subsequent version of this
|
142
|
+
License (see Section 10.2) or under the terms of a Secondary License (if
|
143
|
+
permitted under the terms of Section 3.3).
|
144
|
+
|
145
|
+
2.5. Representation
|
146
|
+
|
147
|
+
Each Contributor represents that the Contributor believes its
|
148
|
+
Contributions are its original creation(s) or it has sufficient rights to
|
149
|
+
grant the rights to its Contributions conveyed by this License.
|
150
|
+
|
151
|
+
2.6. Fair Use
|
152
|
+
|
153
|
+
This License is not intended to limit any rights You have under
|
154
|
+
applicable copyright doctrines of fair use, fair dealing, or other
|
155
|
+
equivalents.
|
156
|
+
|
157
|
+
2.7. Conditions
|
158
|
+
|
159
|
+
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in
|
160
|
+
Section 2.1.
|
161
|
+
|
162
|
+
|
163
|
+
3. Responsibilities
|
164
|
+
|
165
|
+
3.1. Distribution of Source Form
|
166
|
+
|
167
|
+
All distribution of Covered Software in Source Code Form, including any
|
168
|
+
Modifications that You create or to which You contribute, must be under
|
169
|
+
the terms of this License. You must inform recipients that the Source
|
170
|
+
Code Form of the Covered Software is governed by the terms of this
|
171
|
+
License, and how they can obtain a copy of this License. You may not
|
172
|
+
attempt to alter or restrict the recipients' rights in the Source Code
|
173
|
+
Form.
|
174
|
+
|
175
|
+
3.2. Distribution of Executable Form
|
176
|
+
|
177
|
+
If You distribute Covered Software in Executable Form then:
|
178
|
+
|
179
|
+
a. such Covered Software must also be made available in Source Code Form,
|
180
|
+
as described in Section 3.1, and You must inform recipients of the
|
181
|
+
Executable Form how they can obtain a copy of such Source Code Form by
|
182
|
+
reasonable means in a timely manner, at a charge no more than the cost
|
183
|
+
of distribution to the recipient; and
|
184
|
+
|
185
|
+
b. You may distribute such Executable Form under the terms of this
|
186
|
+
License, or sublicense it under different terms, provided that the
|
187
|
+
license for the Executable Form does not attempt to limit or alter the
|
188
|
+
recipients' rights in the Source Code Form under this License.
|
189
|
+
|
190
|
+
3.3. Distribution of a Larger Work
|
191
|
+
|
192
|
+
You may create and distribute a Larger Work under terms of Your choice,
|
193
|
+
provided that You also comply with the requirements of this License for
|
194
|
+
the Covered Software. If the Larger Work is a combination of Covered
|
195
|
+
Software with a work governed by one or more Secondary Licenses, and the
|
196
|
+
Covered Software is not Incompatible With Secondary Licenses, this
|
197
|
+
License permits You to additionally distribute such Covered Software
|
198
|
+
under the terms of such Secondary License(s), so that the recipient of
|
199
|
+
the Larger Work may, at their option, further distribute the Covered
|
200
|
+
Software under the terms of either this License or such Secondary
|
201
|
+
License(s).
|
202
|
+
|
203
|
+
3.4. Notices
|
204
|
+
|
205
|
+
You may not remove or alter the substance of any license notices
|
206
|
+
(including copyright notices, patent notices, disclaimers of warranty, or
|
207
|
+
limitations of liability) contained within the Source Code Form of the
|
208
|
+
Covered Software, except that You may alter any license notices to the
|
209
|
+
extent required to remedy known factual inaccuracies.
|
210
|
+
|
211
|
+
3.5. Application of Additional Terms
|
212
|
+
|
213
|
+
You may choose to offer, and to charge a fee for, warranty, support,
|
214
|
+
indemnity or liability obligations to one or more recipients of Covered
|
215
|
+
Software. However, You may do so only on Your own behalf, and not on
|
216
|
+
behalf of any Contributor. You must make it absolutely clear that any
|
217
|
+
such warranty, support, indemnity, or liability obligation is offered by
|
218
|
+
You alone, and You hereby agree to indemnify every Contributor for any
|
219
|
+
liability incurred by such Contributor as a result of warranty, support,
|
220
|
+
indemnity or liability terms You offer. You may include additional
|
221
|
+
disclaimers of warranty and limitations of liability specific to any
|
222
|
+
jurisdiction.
|
223
|
+
|
224
|
+
4. Inability to Comply Due to Statute or Regulation
|
225
|
+
|
226
|
+
If it is impossible for You to comply with any of the terms of this License
|
227
|
+
with respect to some or all of the Covered Software due to statute,
|
228
|
+
judicial order, or regulation then You must: (a) comply with the terms of
|
229
|
+
this License to the maximum extent possible; and (b) describe the
|
230
|
+
limitations and the code they affect. Such description must be placed in a
|
231
|
+
text file included with all distributions of the Covered Software under
|
232
|
+
this License. Except to the extent prohibited by statute or regulation,
|
233
|
+
such description must be sufficiently detailed for a recipient of ordinary
|
234
|
+
skill to be able to understand it.
|
235
|
+
|
236
|
+
5. Termination
|
237
|
+
|
238
|
+
5.1. The rights granted under this License will terminate automatically if You
|
239
|
+
fail to comply with any of its terms. However, if You become compliant,
|
240
|
+
then the rights granted under this License from a particular Contributor
|
241
|
+
are reinstated (a) provisionally, unless and until such Contributor
|
242
|
+
explicitly and finally terminates Your grants, and (b) on an ongoing
|
243
|
+
basis, if such Contributor fails to notify You of the non-compliance by
|
244
|
+
some reasonable means prior to 60 days after You have come back into
|
245
|
+
compliance. Moreover, Your grants from a particular Contributor are
|
246
|
+
reinstated on an ongoing basis if such Contributor notifies You of the
|
247
|
+
non-compliance by some reasonable means, this is the first time You have
|
248
|
+
received notice of non-compliance with this License from such
|
249
|
+
Contributor, and You become compliant prior to 30 days after Your receipt
|
250
|
+
of the notice.
|
251
|
+
|
252
|
+
5.2. If You initiate litigation against any entity by asserting a patent
|
253
|
+
infringement claim (excluding declaratory judgment actions,
|
254
|
+
counter-claims, and cross-claims) alleging that a Contributor Version
|
255
|
+
directly or indirectly infringes any patent, then the rights granted to
|
256
|
+
You by any and all Contributors for the Covered Software under Section
|
257
|
+
2.1 of this License shall terminate.
|
258
|
+
|
259
|
+
5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
|
260
|
+
license agreements (excluding distributors and resellers) which have been
|
261
|
+
validly granted by You or Your distributors under this License prior to
|
262
|
+
termination shall survive termination.
|
263
|
+
|
264
|
+
6. Disclaimer of Warranty
|
265
|
+
|
266
|
+
Covered Software is provided under this License on an "as is" basis,
|
267
|
+
without warranty of any kind, either expressed, implied, or statutory,
|
268
|
+
including, without limitation, warranties that the Covered Software is free
|
269
|
+
of defects, merchantable, fit for a particular purpose or non-infringing.
|
270
|
+
The entire risk as to the quality and performance of the Covered Software
|
271
|
+
is with You. Should any Covered Software prove defective in any respect,
|
272
|
+
You (not any Contributor) assume the cost of any necessary servicing,
|
273
|
+
repair, or correction. This disclaimer of warranty constitutes an essential
|
274
|
+
part of this License. No use of any Covered Software is authorized under
|
275
|
+
this License except under this disclaimer.
|
276
|
+
|
277
|
+
7. Limitation of Liability
|
278
|
+
|
279
|
+
Under no circumstances and under no legal theory, whether tort (including
|
280
|
+
negligence), contract, or otherwise, shall any Contributor, or anyone who
|
281
|
+
distributes Covered Software as permitted above, be liable to You for any
|
282
|
+
direct, indirect, special, incidental, or consequential damages of any
|
283
|
+
character including, without limitation, damages for lost profits, loss of
|
284
|
+
goodwill, work stoppage, computer failure or malfunction, or any and all
|
285
|
+
other commercial damages or losses, even if such party shall have been
|
286
|
+
informed of the possibility of such damages. This limitation of liability
|
287
|
+
shall not apply to liability for death or personal injury resulting from
|
288
|
+
such party's negligence to the extent applicable law prohibits such
|
289
|
+
limitation. Some jurisdictions do not allow the exclusion or limitation of
|
290
|
+
incidental or consequential damages, so this exclusion and limitation may
|
291
|
+
not apply to You.
|
292
|
+
|
293
|
+
8. Litigation
|
294
|
+
|
295
|
+
Any litigation relating to this License may be brought only in the courts
|
296
|
+
of a jurisdiction where the defendant maintains its principal place of
|
297
|
+
business and such litigation shall be governed by laws of that
|
298
|
+
jurisdiction, without reference to its conflict-of-law provisions. Nothing
|
299
|
+
in this Section shall prevent a party's ability to bring cross-claims or
|
300
|
+
counter-claims.
|
301
|
+
|
302
|
+
9. Miscellaneous
|
303
|
+
|
304
|
+
This License represents the complete agreement concerning the subject
|
305
|
+
matter hereof. If any provision of this License is held to be
|
306
|
+
unenforceable, such provision shall be reformed only to the extent
|
307
|
+
necessary to make it enforceable. Any law or regulation which provides that
|
308
|
+
the language of a contract shall be construed against the drafter shall not
|
309
|
+
be used to construe this License against a Contributor.
|
310
|
+
|
311
|
+
|
312
|
+
10. Versions of the License
|
313
|
+
|
314
|
+
10.1. New Versions
|
315
|
+
|
316
|
+
Mozilla Foundation is the license steward. Except as provided in Section
|
317
|
+
10.3, no one other than the license steward has the right to modify or
|
318
|
+
publish new versions of this License. Each version will be given a
|
319
|
+
distinguishing version number.
|
320
|
+
|
321
|
+
10.2. Effect of New Versions
|
322
|
+
|
323
|
+
You may distribute the Covered Software under the terms of the version
|
324
|
+
of the License under which You originally received the Covered Software,
|
325
|
+
or under the terms of any subsequent version published by the license
|
326
|
+
steward.
|
327
|
+
|
328
|
+
10.3. Modified Versions
|
329
|
+
|
330
|
+
If you create software not governed by this License, and you want to
|
331
|
+
create a new license for such software, you may create and use a
|
332
|
+
modified version of this License if you rename the license and remove
|
333
|
+
any references to the name of the license steward (except to note that
|
334
|
+
such modified license differs from this License).
|
335
|
+
|
336
|
+
10.4. Distributing Source Code Form that is Incompatible With Secondary
|
337
|
+
Licenses If You choose to distribute Source Code Form that is
|
338
|
+
Incompatible With Secondary Licenses under the terms of this version of
|
339
|
+
the License, the notice described in Exhibit B of this License must be
|
340
|
+
attached.
|
341
|
+
|
342
|
+
Exhibit A - Source Code Form License Notice
|
343
|
+
|
344
|
+
This Source Code Form is subject to the
|
345
|
+
terms of the Mozilla Public License, v.
|
346
|
+
2.0. If a copy of the MPL was not
|
347
|
+
distributed with this file, You can
|
348
|
+
obtain one at
|
349
|
+
http://mozilla.org/MPL/2.0/.
|
350
|
+
|
351
|
+
If it is not possible or desirable to put the notice in a particular file,
|
352
|
+
then You may include the notice in a location (such as a LICENSE file in a
|
353
|
+
relevant directory) where a recipient would be likely to look for such a
|
354
|
+
notice.
|
355
|
+
|
356
|
+
You may add additional accurate notices of copyright ownership.
|
357
|
+
|
358
|
+
Exhibit B - "Incompatible With Secondary Licenses" Notice
|
359
|
+
|
360
|
+
This Source Code Form is "Incompatible
|
361
|
+
With Secondary Licenses", as defined by
|
362
|
+
the Mozilla Public License, v. 2.0.
|