envkey 1.2.2 → 1.2.4
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 +4 -4
- data/ext/{envkey-fetch_1.2.2_darwin_386 → envkey-fetch_1.2.4_darwin_386}/LICENSE +0 -0
- data/ext/{envkey-fetch_1.2.2_darwin_amd64 → envkey-fetch_1.2.4_darwin_386}/README.md +10 -6
- data/ext/{envkey-fetch_1.2.2_darwin_386 → envkey-fetch_1.2.4_darwin_386}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_darwin_amd64 → envkey-fetch_1.2.4_darwin_amd64}/LICENSE +0 -0
- data/ext/{envkey-fetch_1.2.2_darwin_386 → envkey-fetch_1.2.4_darwin_amd64}/README.md +10 -6
- data/ext/{envkey-fetch_1.2.2_darwin_amd64 → envkey-fetch_1.2.4_darwin_amd64}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_freebsd_386 → envkey-fetch_1.2.4_freebsd_386}/LICENSE +0 -0
- data/ext/{envkey-fetch_1.2.2_freebsd_386 → envkey-fetch_1.2.4_freebsd_386}/README.md +10 -6
- data/ext/{envkey-fetch_1.2.2_freebsd_386 → envkey-fetch_1.2.4_freebsd_386}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_freebsd_amd64 → envkey-fetch_1.2.4_freebsd_amd64}/LICENSE +0 -0
- data/ext/{envkey-fetch_1.2.2_freebsd_amd64 → envkey-fetch_1.2.4_freebsd_amd64}/README.md +10 -6
- data/ext/{envkey-fetch_1.2.2_freebsd_amd64 → envkey-fetch_1.2.4_freebsd_amd64}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_linux_386 → envkey-fetch_1.2.4_linux_386}/LICENSE +0 -0
- data/ext/envkey-fetch_1.2.4_linux_386/README.md +90 -0
- data/ext/{envkey-fetch_1.2.2_linux_386 → envkey-fetch_1.2.4_linux_386}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_linux_amd64 → envkey-fetch_1.2.4_linux_amd64}/LICENSE +0 -0
- data/ext/envkey-fetch_1.2.4_linux_amd64/README.md +90 -0
- data/ext/{envkey-fetch_1.2.2_linux_amd64 → envkey-fetch_1.2.4_linux_amd64}/envkey-fetch +0 -0
- data/ext/{envkey-fetch_1.2.2_windows_386 → envkey-fetch_1.2.4_windows_386}/LICENSE +0 -0
- data/ext/envkey-fetch_1.2.4_windows_386/README.md +90 -0
- data/ext/{envkey-fetch_1.2.2_windows_386 → envkey-fetch_1.2.4_windows_386}/envkey-fetch.exe +0 -0
- data/ext/{envkey-fetch_1.2.2_windows_amd64 → envkey-fetch_1.2.4_windows_amd64}/LICENSE +0 -0
- data/ext/envkey-fetch_1.2.4_windows_amd64/README.md +90 -0
- data/ext/{envkey-fetch_1.2.2_windows_amd64 → envkey-fetch_1.2.4_windows_amd64}/envkey-fetch.exe +0 -0
- data/lib/envkey/version.rb +2 -2
- metadata +26 -26
- data/ext/envkey-fetch_1.2.2_linux_386/README.md +0 -86
- data/ext/envkey-fetch_1.2.2_linux_amd64/README.md +0 -86
- data/ext/envkey-fetch_1.2.2_windows_386/README.md +0 -86
- data/ext/envkey-fetch_1.2.2_windows_amd64/README.md +0 -86
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f799266aa9cf4bc610eb405859d015785ae82a22c3c3736ad65ebd2846625662
|
|
4
|
+
data.tar.gz: 029bdce547ebbc179d30da9dd068ea263c01a9099285f9652c2919dfea3a751d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 265790bb046fef50a1f7b124bd8bef9810c83d83678fc00409a778de3aadf336deb94b7b67fe82fcb117cf532e62d33135bae29bb329b5c3843e129324fefa56
|
|
7
|
+
data.tar.gz: 7f105618223aed133ae780111f83c0a1220b535c0be6bc08bccc9a377246e6fb61e512bee04724b2fa6c932c8a2306440441399741861a98fb4e54f657f20d52
|
|
File without changes
|
|
@@ -57,12 +57,16 @@ error: ENVKEY invalid
|
|
|
57
57
|
### Flags
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
--cache
|
|
61
|
-
--cache-dir string
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
--
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
## Further Reading
|
|
Binary file
|
|
File without changes
|
|
@@ -57,12 +57,16 @@ error: ENVKEY invalid
|
|
|
57
57
|
### Flags
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
--cache
|
|
61
|
-
--cache-dir string
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
--
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
## Further Reading
|
|
Binary file
|
|
File without changes
|
|
@@ -57,12 +57,16 @@ error: ENVKEY invalid
|
|
|
57
57
|
### Flags
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
--cache
|
|
61
|
-
--cache-dir string
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
--
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
## Further Reading
|
|
Binary file
|
|
File without changes
|
|
@@ -57,12 +57,16 @@ error: ENVKEY invalid
|
|
|
57
57
|
### Flags
|
|
58
58
|
|
|
59
59
|
```text
|
|
60
|
-
--cache
|
|
61
|
-
--cache-dir string
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
|
|
65
|
-
--
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
66
70
|
```
|
|
67
71
|
|
|
68
72
|
## Further Reading
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# envkey-fetch
|
|
2
|
+
|
|
3
|
+
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
+
|
|
5
|
+
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
+
|
|
7
|
+
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
+
|
|
13
|
+
**Install via bash:**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Install manually:**
|
|
20
|
+
|
|
21
|
+
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
+
|
|
23
|
+
**Install from source:**
|
|
24
|
+
|
|
25
|
+
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
+
|
|
27
|
+
**Cross-compile from source:**
|
|
28
|
+
|
|
29
|
+
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
+
|
|
31
|
+
Then to cross-compile, run:
|
|
32
|
+
|
|
33
|
+
`goreleaser`
|
|
34
|
+
|
|
35
|
+
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
+
|
|
45
|
+
### Example json output
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Example error output
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
error: ENVKEY invalid
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Flags
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Further Reading
|
|
73
|
+
|
|
74
|
+
For more on EnvKey in general:
|
|
75
|
+
|
|
76
|
+
Read the [docs](https://docs.envkey.com).
|
|
77
|
+
|
|
78
|
+
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
79
|
+
|
|
80
|
+
Read the [security and cryptography overview](https://security.envkey.com).
|
|
81
|
+
|
|
82
|
+
## Need help? Have questions, feedback, or ideas?
|
|
83
|
+
|
|
84
|
+
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# envkey-fetch
|
|
2
|
+
|
|
3
|
+
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
+
|
|
5
|
+
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
+
|
|
7
|
+
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
+
|
|
13
|
+
**Install via bash:**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Install manually:**
|
|
20
|
+
|
|
21
|
+
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
+
|
|
23
|
+
**Install from source:**
|
|
24
|
+
|
|
25
|
+
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
+
|
|
27
|
+
**Cross-compile from source:**
|
|
28
|
+
|
|
29
|
+
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
+
|
|
31
|
+
Then to cross-compile, run:
|
|
32
|
+
|
|
33
|
+
`goreleaser`
|
|
34
|
+
|
|
35
|
+
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
+
|
|
45
|
+
### Example json output
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Example error output
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
error: ENVKEY invalid
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Flags
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Further Reading
|
|
73
|
+
|
|
74
|
+
For more on EnvKey in general:
|
|
75
|
+
|
|
76
|
+
Read the [docs](https://docs.envkey.com).
|
|
77
|
+
|
|
78
|
+
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
79
|
+
|
|
80
|
+
Read the [security and cryptography overview](https://security.envkey.com).
|
|
81
|
+
|
|
82
|
+
## Need help? Have questions, feedback, or ideas?
|
|
83
|
+
|
|
84
|
+
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# envkey-fetch
|
|
2
|
+
|
|
3
|
+
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
+
|
|
5
|
+
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
+
|
|
7
|
+
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
+
|
|
13
|
+
**Install via bash:**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Install manually:**
|
|
20
|
+
|
|
21
|
+
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
+
|
|
23
|
+
**Install from source:**
|
|
24
|
+
|
|
25
|
+
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
+
|
|
27
|
+
**Cross-compile from source:**
|
|
28
|
+
|
|
29
|
+
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
+
|
|
31
|
+
Then to cross-compile, run:
|
|
32
|
+
|
|
33
|
+
`goreleaser`
|
|
34
|
+
|
|
35
|
+
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
+
|
|
45
|
+
### Example json output
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Example error output
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
error: ENVKEY invalid
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Flags
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Further Reading
|
|
73
|
+
|
|
74
|
+
For more on EnvKey in general:
|
|
75
|
+
|
|
76
|
+
Read the [docs](https://docs.envkey.com).
|
|
77
|
+
|
|
78
|
+
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
79
|
+
|
|
80
|
+
Read the [security and cryptography overview](https://security.envkey.com).
|
|
81
|
+
|
|
82
|
+
## Need help? Have questions, feedback, or ideas?
|
|
83
|
+
|
|
84
|
+
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# envkey-fetch
|
|
2
|
+
|
|
3
|
+
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
+
|
|
5
|
+
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
+
|
|
7
|
+
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
+
|
|
13
|
+
**Install via bash:**
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**Install manually:**
|
|
20
|
+
|
|
21
|
+
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
+
|
|
23
|
+
**Install from source:**
|
|
24
|
+
|
|
25
|
+
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
+
|
|
27
|
+
**Cross-compile from source:**
|
|
28
|
+
|
|
29
|
+
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
+
|
|
31
|
+
Then to cross-compile, run:
|
|
32
|
+
|
|
33
|
+
`goreleaser`
|
|
34
|
+
|
|
35
|
+
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
+
|
|
45
|
+
### Example json output
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Example error output
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
error: ENVKEY invalid
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Flags
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
+
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
+
--client-name string calling client library name (default is none)
|
|
63
|
+
--client-version string calling client library version (default is none)
|
|
64
|
+
-h, --help help for envkey-fetch
|
|
65
|
+
--retries uint8 number of times to retry requests on failure (default 3)
|
|
66
|
+
--retryBackoff float retry backoff factor: {retryBackoff} * (2 ^ {retries - 1}) (default 1)
|
|
67
|
+
--timeout float timeout in seconds for http requests (default 10)
|
|
68
|
+
--verbose print verbose output (default is false)
|
|
69
|
+
-v, --version prints the version
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Further Reading
|
|
73
|
+
|
|
74
|
+
For more on EnvKey in general:
|
|
75
|
+
|
|
76
|
+
Read the [docs](https://docs.envkey.com).
|
|
77
|
+
|
|
78
|
+
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
79
|
+
|
|
80
|
+
Read the [security and cryptography overview](https://security.envkey.com).
|
|
81
|
+
|
|
82
|
+
## Need help? Have questions, feedback, or ideas?
|
|
83
|
+
|
|
84
|
+
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
data/ext/{envkey-fetch_1.2.2_windows_amd64 → envkey-fetch_1.2.4_windows_amd64}/envkey-fetch.exe
RENAMED
|
Binary file
|
data/lib/envkey/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: envkey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dane Schneider
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -83,30 +83,30 @@ files:
|
|
|
83
83
|
- bin/console
|
|
84
84
|
- bin/setup
|
|
85
85
|
- envkey.gemspec
|
|
86
|
-
- ext/envkey-fetch_1.2.
|
|
87
|
-
- ext/envkey-fetch_1.2.
|
|
88
|
-
- ext/envkey-fetch_1.2.
|
|
89
|
-
- ext/envkey-fetch_1.2.
|
|
90
|
-
- ext/envkey-fetch_1.2.
|
|
91
|
-
- ext/envkey-fetch_1.2.
|
|
92
|
-
- ext/envkey-fetch_1.2.
|
|
93
|
-
- ext/envkey-fetch_1.2.
|
|
94
|
-
- ext/envkey-fetch_1.2.
|
|
95
|
-
- ext/envkey-fetch_1.2.
|
|
96
|
-
- ext/envkey-fetch_1.2.
|
|
97
|
-
- ext/envkey-fetch_1.2.
|
|
98
|
-
- ext/envkey-fetch_1.2.
|
|
99
|
-
- ext/envkey-fetch_1.2.
|
|
100
|
-
- ext/envkey-fetch_1.2.
|
|
101
|
-
- ext/envkey-fetch_1.2.
|
|
102
|
-
- ext/envkey-fetch_1.2.
|
|
103
|
-
- ext/envkey-fetch_1.2.
|
|
104
|
-
- ext/envkey-fetch_1.2.
|
|
105
|
-
- ext/envkey-fetch_1.2.
|
|
106
|
-
- ext/envkey-fetch_1.2.
|
|
107
|
-
- ext/envkey-fetch_1.2.
|
|
108
|
-
- ext/envkey-fetch_1.2.
|
|
109
|
-
- ext/envkey-fetch_1.2.
|
|
86
|
+
- ext/envkey-fetch_1.2.4_darwin_386/LICENSE
|
|
87
|
+
- ext/envkey-fetch_1.2.4_darwin_386/README.md
|
|
88
|
+
- ext/envkey-fetch_1.2.4_darwin_386/envkey-fetch
|
|
89
|
+
- ext/envkey-fetch_1.2.4_darwin_amd64/LICENSE
|
|
90
|
+
- ext/envkey-fetch_1.2.4_darwin_amd64/README.md
|
|
91
|
+
- ext/envkey-fetch_1.2.4_darwin_amd64/envkey-fetch
|
|
92
|
+
- ext/envkey-fetch_1.2.4_freebsd_386/LICENSE
|
|
93
|
+
- ext/envkey-fetch_1.2.4_freebsd_386/README.md
|
|
94
|
+
- ext/envkey-fetch_1.2.4_freebsd_386/envkey-fetch
|
|
95
|
+
- ext/envkey-fetch_1.2.4_freebsd_amd64/LICENSE
|
|
96
|
+
- ext/envkey-fetch_1.2.4_freebsd_amd64/README.md
|
|
97
|
+
- ext/envkey-fetch_1.2.4_freebsd_amd64/envkey-fetch
|
|
98
|
+
- ext/envkey-fetch_1.2.4_linux_386/LICENSE
|
|
99
|
+
- ext/envkey-fetch_1.2.4_linux_386/README.md
|
|
100
|
+
- ext/envkey-fetch_1.2.4_linux_386/envkey-fetch
|
|
101
|
+
- ext/envkey-fetch_1.2.4_linux_amd64/LICENSE
|
|
102
|
+
- ext/envkey-fetch_1.2.4_linux_amd64/README.md
|
|
103
|
+
- ext/envkey-fetch_1.2.4_linux_amd64/envkey-fetch
|
|
104
|
+
- ext/envkey-fetch_1.2.4_windows_386/LICENSE
|
|
105
|
+
- ext/envkey-fetch_1.2.4_windows_386/README.md
|
|
106
|
+
- ext/envkey-fetch_1.2.4_windows_386/envkey-fetch.exe
|
|
107
|
+
- ext/envkey-fetch_1.2.4_windows_amd64/LICENSE
|
|
108
|
+
- ext/envkey-fetch_1.2.4_windows_amd64/README.md
|
|
109
|
+
- ext/envkey-fetch_1.2.4_windows_amd64/envkey-fetch.exe
|
|
110
110
|
- lib/envkey.rb
|
|
111
111
|
- lib/envkey/core.rb
|
|
112
112
|
- lib/envkey/fetch.rb
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# envkey-fetch
|
|
2
|
-
|
|
3
|
-
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
-
|
|
5
|
-
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
-
|
|
7
|
-
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
-
|
|
13
|
-
**Install via bash:**
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Install manually:**
|
|
20
|
-
|
|
21
|
-
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
-
|
|
23
|
-
**Install from source:**
|
|
24
|
-
|
|
25
|
-
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
-
|
|
27
|
-
**Cross-compile from source:**
|
|
28
|
-
|
|
29
|
-
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
-
|
|
31
|
-
Then to cross-compile, run:
|
|
32
|
-
|
|
33
|
-
`goreleaser`
|
|
34
|
-
|
|
35
|
-
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
-
|
|
45
|
-
### Example json output
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Example error output
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
error: ENVKEY invalid
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Flags
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
-
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
-
-h, --help help for envkey-fetch
|
|
63
|
-
-v, --version prints the version
|
|
64
|
-
--verbose print verbose output (default is false)
|
|
65
|
-
--timeout float timeout in seconds for http requests (default 2)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Further Reading
|
|
69
|
-
|
|
70
|
-
For more on EnvKey in general:
|
|
71
|
-
|
|
72
|
-
Read the [docs](https://docs.envkey.com).
|
|
73
|
-
|
|
74
|
-
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
75
|
-
|
|
76
|
-
Read the [security and cryptography overview](https://security.envkey.com).
|
|
77
|
-
|
|
78
|
-
## Need help? Have questions, feedback, or ideas?
|
|
79
|
-
|
|
80
|
-
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# envkey-fetch
|
|
2
|
-
|
|
3
|
-
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
-
|
|
5
|
-
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
-
|
|
7
|
-
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
-
|
|
13
|
-
**Install via bash:**
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Install manually:**
|
|
20
|
-
|
|
21
|
-
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
-
|
|
23
|
-
**Install from source:**
|
|
24
|
-
|
|
25
|
-
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
-
|
|
27
|
-
**Cross-compile from source:**
|
|
28
|
-
|
|
29
|
-
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
-
|
|
31
|
-
Then to cross-compile, run:
|
|
32
|
-
|
|
33
|
-
`goreleaser`
|
|
34
|
-
|
|
35
|
-
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
-
|
|
45
|
-
### Example json output
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Example error output
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
error: ENVKEY invalid
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Flags
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
-
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
-
-h, --help help for envkey-fetch
|
|
63
|
-
-v, --version prints the version
|
|
64
|
-
--verbose print verbose output (default is false)
|
|
65
|
-
--timeout float timeout in seconds for http requests (default 2)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Further Reading
|
|
69
|
-
|
|
70
|
-
For more on EnvKey in general:
|
|
71
|
-
|
|
72
|
-
Read the [docs](https://docs.envkey.com).
|
|
73
|
-
|
|
74
|
-
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
75
|
-
|
|
76
|
-
Read the [security and cryptography overview](https://security.envkey.com).
|
|
77
|
-
|
|
78
|
-
## Need help? Have questions, feedback, or ideas?
|
|
79
|
-
|
|
80
|
-
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# envkey-fetch
|
|
2
|
-
|
|
3
|
-
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
-
|
|
5
|
-
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
-
|
|
7
|
-
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
-
|
|
13
|
-
**Install via bash:**
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Install manually:**
|
|
20
|
-
|
|
21
|
-
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
-
|
|
23
|
-
**Install from source:**
|
|
24
|
-
|
|
25
|
-
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
-
|
|
27
|
-
**Cross-compile from source:**
|
|
28
|
-
|
|
29
|
-
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
-
|
|
31
|
-
Then to cross-compile, run:
|
|
32
|
-
|
|
33
|
-
`goreleaser`
|
|
34
|
-
|
|
35
|
-
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
-
|
|
45
|
-
### Example json output
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Example error output
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
error: ENVKEY invalid
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Flags
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
-
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
-
-h, --help help for envkey-fetch
|
|
63
|
-
-v, --version prints the version
|
|
64
|
-
--verbose print verbose output (default is false)
|
|
65
|
-
--timeout float timeout in seconds for http requests (default 2)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Further Reading
|
|
69
|
-
|
|
70
|
-
For more on EnvKey in general:
|
|
71
|
-
|
|
72
|
-
Read the [docs](https://docs.envkey.com).
|
|
73
|
-
|
|
74
|
-
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
75
|
-
|
|
76
|
-
Read the [security and cryptography overview](https://security.envkey.com).
|
|
77
|
-
|
|
78
|
-
## Need help? Have questions, feedback, or ideas?
|
|
79
|
-
|
|
80
|
-
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# envkey-fetch
|
|
2
|
-
|
|
3
|
-
This library contains [EnvKey](https://www.envkey.com)'s core cross-platform fetching, decryption, verification, web of trust, redundancy, and caching logic. It accepts an `ENVKEY` generated by the [EnvKey App](https://www.github.com/envkey/envkey-app) and returns decrypted configuration for a specific app environment as json.
|
|
4
|
-
|
|
5
|
-
It is used by EnvKey's various Client Libraries, including [envkey-source](https://github.com/envkey/envkey-source) for bash, [envkey-ruby](https://github.com/envkey/envkey-ruby) for Ruby and Rails, [envkey-python](https://github.com/envkey/envkey-python) for Python, [envkey-node](https://github.com/envkey/envkey-node) for Node.js, and [envkeygo](https://github.com/envkey/envkeygo) for Go.
|
|
6
|
-
|
|
7
|
-
If you want to build an EnvKey library in a language that isn't yet officially supported, build some other type of integration, or simply play around with EnvKey on the command line, envkey-fetch is the library for you. If you just want to integrate EnvKey with your project, check out one of the aforementioned higher level libraries.
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
envkey-fetch compiles into a simple static binary with no dependencies, which makes installation a simple matter of fetching the right binary for your platform and putting it in your `PATH`. An `install.sh` script is available to simplify this.
|
|
12
|
-
|
|
13
|
-
**Install via bash:**
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
curl -s https://raw.githubusercontent.com/envkey/envkey-fetch/master/install.sh | bash
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
**Install manually:**
|
|
20
|
-
|
|
21
|
-
Find the [release](https://github.com/envkey/envkey-fetch/releases) for your platform and architecture, and stick the appropriate binary somewhere in your `PATH` (or wherever you like really).
|
|
22
|
-
|
|
23
|
-
**Install from source:**
|
|
24
|
-
|
|
25
|
-
With Go installed, clone the project into your `GOPATH`. `cd` into the directory and run `go get` and `go build`.
|
|
26
|
-
|
|
27
|
-
**Cross-compile from source:**
|
|
28
|
-
|
|
29
|
-
To compile cross-platform binaries, make sure Go is installed, then install [goreleaser](https://goreleaser.com/) - follow instructions in the docs to do so.
|
|
30
|
-
|
|
31
|
-
Then to cross-compile, run:
|
|
32
|
-
|
|
33
|
-
`goreleaser`
|
|
34
|
-
|
|
35
|
-
Binaries for each platform will be output to the `dist` folder.
|
|
36
|
-
|
|
37
|
-
## Usage
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
envkey-fetch YOUR-ENVKEY [flags]
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
This will either write your the app environment's configuration associated with your `ENVKEY` as json to stdout or write an error message beginning with `error:` to stdout.
|
|
44
|
-
|
|
45
|
-
### Example json output
|
|
46
|
-
|
|
47
|
-
```json
|
|
48
|
-
{"TEST":"it","TEST_2":"works!"}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Example error output
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
error: ENVKEY invalid
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Flags
|
|
58
|
-
|
|
59
|
-
```text
|
|
60
|
-
--cache cache encrypted config as a local backup (default is false)
|
|
61
|
-
--cache-dir string cache directory (default is $HOME/.envkey/cache)
|
|
62
|
-
-h, --help help for envkey-fetch
|
|
63
|
-
-v, --version prints the version
|
|
64
|
-
--verbose print verbose output (default is false)
|
|
65
|
-
--timeout float timeout in seconds for http requests (default 2)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Further Reading
|
|
69
|
-
|
|
70
|
-
For more on EnvKey in general:
|
|
71
|
-
|
|
72
|
-
Read the [docs](https://docs.envkey.com).
|
|
73
|
-
|
|
74
|
-
Read the [integration quickstart](https://docs.envkey.com/integration-quickstart.html).
|
|
75
|
-
|
|
76
|
-
Read the [security and cryptography overview](https://security.envkey.com).
|
|
77
|
-
|
|
78
|
-
## Need help? Have questions, feedback, or ideas?
|
|
79
|
-
|
|
80
|
-
Post an [issue](https://github.com/envkey/envkey-fetch/issues) or email us: [support@envkey.com](mailto:support@envkey.com).
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|