Skip to content

Commit

Permalink
Merge pull request #10 from mdb/support-ca
Browse files Browse the repository at this point in the history
Support specifying a CA for the client
  • Loading branch information
mdb committed Oct 17, 2019
2 parents fb3d542 + fd5c8be commit 9f73eab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -9,11 +9,12 @@ A [Concourse](http://concourse.ci/) resource for interacting with [Consul's KV s

## Source configuration

* `key`: _Required_. The Consul key to interact with. Note that all URL path parts following `/v1/kv` are required. For example, if your key is `my-consul:8500/v1/kv/my/key`, then `key` should be "my/key".
* `host`: _Required_. The Consul host.
* `key`: _Required_. The Consul key to interact with. Note that all URL path parts following `/v1/kv` are required. For example, if your key is `my-consul:8500/v1/kv/my/key`, then `key` should be "my/key".
* `token`: _Optional_. A Consul ACL token.
* `tls_cert`: _Optional_. A TLS cert for the Consul.
* `tls_key`: _Required_. A TLS cert key for the Consul.
* `tls_key`: _Optional_. A TLS cert key for the Consul.
* `ca`: _Optional_. A CA cert for the Consul.
* `port`: _Optional_. The port on which the Consul API is hosted. Defaults to `8500`.
* `protocol`: _Optional_. The protocol to use in calling the Consul API. Defaults to `https`.
* `skip_cert_check`: _Optional_. Check the validity of the SSL cert.
Expand Down
1 change: 1 addition & 0 deletions assets/lib/client.js
Expand Up @@ -9,6 +9,7 @@ class Client {
token: source.token,
tlsCert: source.tls_cert,
tlsKey: source.tls_key,
ca: source.ca,
strictSSL: source.skip_ssl_check ? false : true
});
}
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"lint": "eslint assets test"
},
"dependencies": {
"consul-kv": "0.1.5",
"consul-kv": "0.1.6",
"fs-extra": "8.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 9f73eab

Please sign in to comment.