onboardbase 1.0.0 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b06da9457180637a621c7bb90cea5717e2290d23f42d64241e7632fd9e98a32b
4
- data.tar.gz: 964d051e732645c0176ade32486eeb3bf53ef81b472c0933b721822652ec7504
3
+ metadata.gz: 1ba0587592df36963e2d4251a5bd2a1f31d5171b1b25437349748ba2dad7aa7d
4
+ data.tar.gz: 6002616abc9fe68b96094695ea59f00a70ab69c9bc4846f45b0d298a3417815b
5
5
  SHA512:
6
- metadata.gz: ccf1384fdd1a642a950347f3545d2cb757b0ef9d0b7d8102788b421febe3d9c25eaf242af1a710e04223789e28de690d1d00f319b89e152a823e1898ccc0c5a1
7
- data.tar.gz: 1338c5e937270ad6dd67af4d928fe8f35958397fb5d11cfd59570f73486b1b91ee405542440d7772bcad791533049549e45609962a37eba6f33d5acac5a2f9aa
6
+ metadata.gz: 265af313ce19d48d5e248fd28664101f7430cb407f574214b5240129e7a54d2699b119f051718031dffb8b57e7ea6d7104fcd84ac5337058e9138f7afc6484b0
7
+ data.tar.gz: 6963b025ee1ca12871e8a47346179f22e248b07506e23bad30e59834ff7038e52fd2b9804b0b59c7de561a0866e4695ca057e19514133e39b72c547d532cb62a
data/README.md CHANGED
@@ -0,0 +1,34 @@
1
+ # Onboardbase Ruby SDK
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ gem install onboardbase
7
+ ```
8
+
9
+ ## Requirements
10
+ Ensure that you have onboardbase.yaml at the root of your project.
11
+ With the api_key and passcode field being set.
12
+ ```yaml
13
+ api_key: ********************** # Generate from onboardbase
14
+ passcode: ******** # Generate from onboardbase
15
+ setup:
16
+ project: **** # onboardbase project
17
+ environment: **** # Onboardbase environment
18
+ secrets:
19
+ local:
20
+ PORT: 3000
21
+
22
+ ```
23
+
24
+ ## Basic Usage
25
+ ```ruby
26
+ require "onboardbase"
27
+
28
+ Onboardbase.config do |c|
29
+ c.loadSecrets
30
+ end
31
+
32
+ p ENV["SECRET_ONBOARDBASE"]
33
+
34
+ ```
@@ -1,3 +1,3 @@
1
1
  module Onboardbase
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.4'
3
3
  end
data/lib/onboardbase.rb CHANGED
@@ -185,8 +185,8 @@ module Onboardbase
185
185
  salt = secret[8..15]
186
186
  key_iv = bytes_to_key(self.configuration["passcode"], salt, 48)
187
187
  key = key_iv[0..31]
188
- iv = key_iv[32..]
189
- parsedSecret = aes256_cbc_decrypt(key, secret[16..], iv)
188
+ iv = key_iv[32..key_iv.length-1]
189
+ parsedSecret = aes256_cbc_decrypt(key, secret[16..secret.length-1], iv)
190
190
  secrets[i] = JSON.parse(parsedSecret)
191
191
  end
192
192
  secrets
data/onboardbase.gemspec CHANGED
@@ -4,10 +4,10 @@ Gem::Specification.new do |spec|
4
4
  spec.name = 'onboardbase'
5
5
  spec.version = Onboardbase::VERSION
6
6
  spec.authors = ['Onboardbase']
7
- spec.email = ['admin@treadie.com']
8
- spec.description = "Access onboardbase secrets in your Ruby projects"
7
+ spec.email = ['admin@onboardbase.com']
8
+ spec.description = "Use Onboardbase in your Ruby projects"
9
9
  spec.summary = "Use Onboardbase in your Ruby projects"
10
- spec.homepage= 'https://github.com/Onboardbase/onboardbase-ruby'
10
+ spec.homepage= 'https://gitlab.com/repools/onboardbase-rubysdk/'
11
11
  spec.license = 'MIT'
12
12
  spec.platform = Gem::Platform::RUBY
13
13
  spec.required_ruby_version = '>= 2.5.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onboardbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onboardbase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -136,9 +136,9 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.37'
139
- description: Access onboardbase secrets in your Ruby projects
139
+ description: Use Onboardbase in your Ruby projects
140
140
  email:
141
- - admin@treadie.com
141
+ - admin@onboardbase.com
142
142
  executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files:
@@ -152,7 +152,7 @@ files:
152
152
  - lib/onboardbase.rb
153
153
  - lib/onboardbase/version.rb
154
154
  - onboardbase.gemspec
155
- homepage: https://github.com/Onboardbase/onboardbase-ruby
155
+ homepage: https://gitlab.com/repools/onboardbase-rubysdk/
156
156
  licenses:
157
157
  - MIT
158
158
  metadata: {}