vault-key 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/native/{vault-key.linux.h → vault.darwin.h} +0 -0
- data/lib/native/{vault-key.darwin.so → vault.darwin.so} +0 -0
- data/lib/native/{vault-key.darwin.h → vault.linux.h} +5 -1
- data/lib/native/{vault-key.linux.so → vault.linux.so} +0 -0
- data/lib/vault.rb +19 -0
- metadata +13 -14
- data/lib/vault-key.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a411d09abcfb58eb44c7189c122597ef06bef755de9ac86bd3acbd3db057e9be
|
4
|
+
data.tar.gz: 3cffea918692d7cbab625661e6c7feeab50b6f951fdd8050566b5d0d445788a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 503d9ad6f6d76d07782a611bac824518d8bd11a88c661e940837dca5a0b60877eb84e0a312e004ed557163f56a426bb0e51cfbd5cf5bce803ccf81f3e0c1884e
|
7
|
+
data.tar.gz: cb889e335ce95fe88a78fec7d541a7d2ab3871f2d7b26f78ea7d803082c1c19b9596cd9c0da3975d391ed7b12853a37c2492e858635d53010ea6f02cfb830c7b
|
File without changes
|
Binary file
|
@@ -3,14 +3,16 @@
|
|
3
3
|
/* package command-line-arguments */
|
4
4
|
|
5
5
|
|
6
|
-
#line 1 "cgo-builtin-prolog"
|
6
|
+
#line 1 "cgo-builtin-export-prolog"
|
7
7
|
|
8
8
|
#include <stddef.h> /* for ptrdiff_t below */
|
9
9
|
|
10
10
|
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
11
11
|
#define GO_CGO_EXPORT_PROLOGUE_H
|
12
12
|
|
13
|
+
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
13
14
|
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
15
|
+
#endif
|
14
16
|
|
15
17
|
#endif
|
16
18
|
|
@@ -50,7 +52,9 @@ typedef double _Complex GoComplex128;
|
|
50
52
|
*/
|
51
53
|
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
|
52
54
|
|
55
|
+
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
53
56
|
typedef _GoString_ GoString;
|
57
|
+
#endif
|
54
58
|
typedef void *GoMap;
|
55
59
|
typedef void *GoChan;
|
56
60
|
typedef struct { void *t; void *v; } GoInterface;
|
Binary file
|
data/lib/vault.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'ffi'
|
2
|
+
require 'json'
|
3
|
+
require 'OS'
|
4
|
+
|
5
|
+
module VaultNative
|
6
|
+
extend FFI::Library
|
7
|
+
|
8
|
+
sharedObjectPath = OS.linux? ? "./native/vault.linux.so" : "./native/vault.darwin.so"
|
9
|
+
|
10
|
+
ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
|
11
|
+
attach_function :GetSecrets, [:string], :string
|
12
|
+
end
|
13
|
+
|
14
|
+
class Vault
|
15
|
+
def self.getSecrets(secrets)
|
16
|
+
secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
|
17
|
+
JSON.parse(secretsData)
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TeamSnap SREs
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -39,21 +39,21 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.1
|
41
41
|
description: A gem to integrate Vault with GCP auth
|
42
|
-
email:
|
42
|
+
email: ''
|
43
43
|
executables: []
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
- lib/native/vault
|
48
|
-
- lib/native/vault
|
49
|
-
- lib/native/vault
|
50
|
-
- lib/native/vault
|
51
|
-
- lib/vault
|
52
|
-
homepage:
|
47
|
+
- lib/native/vault.darwin.h
|
48
|
+
- lib/native/vault.darwin.so
|
49
|
+
- lib/native/vault.linux.h
|
50
|
+
- lib/native/vault.linux.so
|
51
|
+
- lib/vault.rb
|
52
|
+
homepage: ''
|
53
53
|
licenses:
|
54
54
|
- MIT
|
55
55
|
metadata: {}
|
56
|
-
post_install_message:
|
56
|
+
post_install_message:
|
57
57
|
rdoc_options: []
|
58
58
|
require_paths:
|
59
59
|
- lib
|
@@ -68,9 +68,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
|
72
|
-
|
73
|
-
signing_key:
|
71
|
+
rubygems_version: 3.1.4
|
72
|
+
signing_key:
|
74
73
|
specification_version: 4
|
75
74
|
summary: Vault with GCP auth
|
76
75
|
test_files: []
|
data/lib/vault-key.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'ffi'
|
2
|
-
require 'json'
|
3
|
-
require 'OS'
|
4
|
-
|
5
|
-
module VaultNative
|
6
|
-
extend FFI::Library
|
7
|
-
|
8
|
-
sharedObjectPath = OS.linux? ? "./native/vault-key.linux.so" : "./native/vault-key.darwin.so"
|
9
|
-
|
10
|
-
ffi_lib File.expand_path(sharedObjectPath, File.dirname(__FILE__))
|
11
|
-
attach_function :GetSecrets, [:string], :string
|
12
|
-
end
|
13
|
-
|
14
|
-
class VaultKey
|
15
|
-
def self.getSecrets(secrets)
|
16
|
-
secretsData = VaultNative.GetSecrets(JSON.generate(secrets))
|
17
|
-
JSON.parse(secretsData)
|
18
|
-
end
|
19
|
-
end
|