asherah 0.4.9-aarch64-linux → 0.5.0-aarch64-linux

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: cb34ec2bab109ddadfd00e57cff6e79c25309ab45fc547296b03adaa1f6008e1
4
- data.tar.gz: d13e468e6ba6af445c35f92ff9a05db2aa3efac2dc679c7dbcb4dad474d17715
3
+ metadata.gz: 75fe267f77f21a771483c6c04ea087b8c56f394bd0e98be1d11984d349eea5ce
4
+ data.tar.gz: 4bd165fb71494634ce74d59b32a2c3cb68c63a388d7c1c5aec45e847936c6ec9
5
5
  SHA512:
6
- metadata.gz: 589a475e136fd78457d1bf08d4768dacc847b1f2a3f4bc8de158cd728abf18431968981c79a9eb09358ba3693037511fb97a884f1d9349f540de5dde995bc16e
7
- data.tar.gz: 88d5e02760d39e6e1bbf883a2f55b81eb17f9aa33d29eadbc15f9a1cf6185d707627a7d54cab3241733b3d85f2f0e786c31be9b01a86c5bfe3507228f4294da2
6
+ metadata.gz: cabecd345f550ce8c53b0443084635f19031771d060877a734d5ece5e5750a29e6347be031da266d9bf1f2059fe165504ac285bda005314087236a29748f1264
7
+ data.tar.gz: bfb788cca27f9453775ea98d4bc551c5b52d32245044a72ffc8a78031a64ad58114ed393b0622fec2f1931e6735b4fa56488aacdc988f65bc701fdb7ac54ee35
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.0] - 2023-10-16
4
+
5
+ - Upgrade to use asherah-cobhan v0.4.30
6
+ - Expose `test-debug-static` kms type and `test-debug-memory` metastore type to skip warnings in tests
7
+ - Check initialized flag on setup/shutdown and raise appropriate errors
8
+
9
+ ## [0.4.10] - 2023-08-10
10
+
11
+ - Upgrade to use asherah-cobhan v0.4.25
12
+
3
13
  ## [0.4.9] - 2023-07-05
4
14
 
5
15
  - Upgrade to use asherah-cobhan v0.4.24
data/CONTRIBUTING.md CHANGED
@@ -9,15 +9,10 @@ No matter how you want to get involved, we ask that you first learn what’s
9
9
  expected of anyone who participates in the project by reading the Contribution
10
10
  Guidelines and our [Code of Conduct][coc].
11
11
 
12
- **Please Note:** GitHub is for bug reports and contributions primarily -
13
- if you have a support question head over to [GoDaddy's Open Source
14
- Software Slack channel][slack]. You can request an invite
15
- [here][invite].
16
-
17
12
  ## Answering Questions
18
13
 
19
14
  One of the most important and immediate ways you can support this project is
20
- to answer questions on [Slack][slack] or [Github][issues]. Whether you’re
15
+ to answer questions on [Github][issues]. Whether you’re
21
16
  helping a newcomer understand a feature or troubleshooting an edge case with a
22
17
  seasoned developer, your knowledge and experience with a programming language
23
18
  can go a long way to help others.
@@ -63,7 +58,7 @@ From a practical perspective, contributions are as simple as:
63
58
  If you are interested in making a large change and feel unsure about its overall
64
59
  effect, start with opening an Issue in the project's [Issue Tracker][issues]
65
60
  with a high-level proposal and discuss it with the core contributors through
66
- Github comments or in [Slack][slack]. After reaching a consensus with core
61
+ Github comments. After reaching a consensus with core
67
62
  contributors about the change, discuss the best way to go about implementing it.
68
63
 
69
64
  > Tip: Keep your main branch pointing at the original repository and make
@@ -97,9 +92,6 @@ patches:
97
92
  willing to do the same for you.
98
93
  - Split your change into multiple smaller changes. The smaller your change,
99
94
  the higher the probability that somebody will take a quick look at it.
100
- - Mention the change on [Slack][slack]. If it is urgent, provide reasons why it
101
- is important to get this change landed. Remember that you are asking for valuable
102
- time from other professional developers.
103
95
 
104
96
  **Note that anyone is welcome to review and give feedback on a change, but only
105
97
  people with commit access to the repository can approve it.**
@@ -123,6 +115,4 @@ guide with respect to patterns, naming, documentation and testing.
123
115
 
124
116
  [issues]: https://github.com/godaddy/asherah-ruby/issues/
125
117
  [coc]: ./CODE_OF_CONDUCT.md
126
- [slack]: https://godaddy-oss.slack.com/
127
118
  [fork]: https://help.github.com/en/articles/fork-a-repo
128
- [invite]: https://godaddy-oss-slack.herokuapp.com
data/README.md CHANGED
@@ -45,6 +45,8 @@ Asherah.configure do |config|
45
45
  end
46
46
  ```
47
47
 
48
+ See [config.rb](lib/asherah/config.rb) for all evailable configuration options.
49
+
48
50
  Encrypt some data for a `partition_id`
49
51
 
50
52
  ```ruby
@@ -1,5 +1,5 @@
1
- version: v0.4.24
2
- libasherah-arm64.so: 3b038116cb1bc1240e9c44cdc0a8fc57df2d721f15ed708294926bf2037fe8a0
3
- libasherah-x64.so: ffeb968144db6df6edd2d3e247db09c84edc54fe24a42cd8ad6f5912e9ab7118
4
- libasherah-arm64.dylib: de660a21ae192baa522963cc6665092172880409c5e6fbedb741a6791d572698
5
- libasherah-x64.dylib: dc9c398060a61ef4a7b00d983ffcbea917e63510006208512dcb176caa74aab6
1
+ version: v0.4.30
2
+ libasherah-arm64.so: cb0985cd8f5d2c2ceac0e874e3f5b1276a9b2145c6274f9c7ccf80ddd7a5f469
3
+ libasherah-x64.so: a91d0703a569941a38c3fdd6c1320904b47e3592fa9b9164f43704e5f4a1dda9
4
+ libasherah-arm64.dylib: 8bac6d3a2a255553e7d1460f9e56a81d4ee7055e7f44f8f1a65cb6d584eabf6e
5
+ libasherah-x64.dylib: b264dc01ac6ac4ae6ae9dad8cab1f69ed887cca3e4ea0798ea572b444578e2c8
@@ -43,8 +43,8 @@ module Asherah
43
43
  verbose: :Verbose
44
44
  }.freeze
45
45
 
46
- KMS_TYPES = ['static', 'aws'].freeze
47
- METASTORE_TYPES = ['rdbms', 'dynamodb', 'memory'].freeze
46
+ KMS_TYPES = ['static', 'aws', 'test-debug-static'].freeze
47
+ METASTORE_TYPES = ['rdbms', 'dynamodb', 'memory', 'test-debug-memory'].freeze
48
48
 
49
49
  attr_accessor(*MAPPING.keys)
50
50
 
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Asherah
4
- VERSION = '0.4.9'
4
+ VERSION = '0.5.0'
5
5
  end
data/lib/asherah.rb CHANGED
@@ -44,6 +44,8 @@ module Asherah
44
44
  # @yield [Config]
45
45
  # @return [void]
46
46
  def configure
47
+ raise Asherah::Error::AlreadyInitialized if @initialized
48
+
47
49
  config = Config.new
48
50
  yield config
49
51
  config.validate!
@@ -53,6 +55,7 @@ module Asherah
53
55
 
54
56
  result = SetupJson(config_buffer)
55
57
  Error.check_result!(result, 'SetupJson failed')
58
+ @initialized = true
56
59
  end
57
60
 
58
61
  # Encrypts data for a given partition_id and returns DataRowRecord in JSON format.
@@ -104,7 +107,10 @@ module Asherah
104
107
 
105
108
  # Stop the Asherah instance
106
109
  def shutdown
110
+ raise Asherah::Error::NotInitialized unless @initialized
111
+
107
112
  Shutdown()
113
+ @initialized = false
108
114
  end
109
115
 
110
116
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asherah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.5.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - GoDaddy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cobhan