asherah 0.5.0-x86_64-darwin → 0.5.1-x86_64-darwin

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: 3d9394b180f64a7f07116871b11bf28b2d93abd693f0ce9e000f9cecfc31f0af
4
- data.tar.gz: ae10298b18fdf0ccbea900058fc26a6708ac4d8f0f798812994650e65cf4d515
3
+ metadata.gz: 8dcecb01c09aa7c9ebfdbf49fd9ddc190a920895d91a3b0263f30daf2e0d4b80
4
+ data.tar.gz: 603008eeba6e0a7243092941507069a4e7cca223f899b1f8c3fab106f1324944
5
5
  SHA512:
6
- metadata.gz: ac50bf09a7a3cba7b3ac00000ab716bae42ac4949d746aff4b6aeb40776465471073f0b22e65c9584f67f0a98725406edf8f33a6565ab9303ddb0de98b654946
7
- data.tar.gz: 1c02db2e39e54a85c0a2f3da10de6128975c4dc2ba09fbfd3d806df4aa579402b0389c97d8da3d1a779ec1481fb20f3e901c21ae7d8c359c948ac562d4ba7537
6
+ metadata.gz: 0b9e74926a9029f33c845bf335e7aa316be81efc95d93b0269b4f48dc4f7a918c2f93be5c604f7b66eda5d3fe871f770cdf649cf7be514476349f2f915efa47e
7
+ data.tar.gz: b116686fb36a7e38f61983e2682af6c6e3ed3387cd0eb57595bfd1cce01d17d7eeb2dd3e0dee9b162f2182e7986cd792078a00ac8798c9017f658728c01c76d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.1] - 2023-10-25
4
+
5
+ - Add `sql_metastore_db_type` config option to support PostgresSQL adapter for Asherah
6
+ - Upgrade to use asherah-cobhan v0.4.31
7
+
3
8
  ## [0.5.0] - 2023-10-16
4
9
 
5
10
  - Upgrade to use asherah-cobhan v0.4.30
@@ -1,5 +1,5 @@
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
1
+ version: v0.4.31
2
+ libasherah-arm64.so: 5fef00afadf6557a41c4c1a6f7e6fc29670898f6b530c7f7bce7b4a2b128bec8
3
+ libasherah-x64.so: 1ccf9dae397b4e375715e0260455108838d7f9fc85768875aeb0cfda826768c6
4
+ libasherah-arm64.dylib: 48ed5d7e992383910c78f5e1933d6aa42bb551b26e959d4c27d41627b6a10132
5
+ libasherah-x64.dylib: 18183fb5fb56423a5a61b162d14316c88a5f8e2b63ac004b686a29825a8f1045
@@ -9,6 +9,7 @@ module Asherah
9
9
  # @attr [String] metastore, The type of metastore for persisting keys (rdbms, dynamodb, memory)
10
10
  # @attr [String] connection_string, The database connection string (required when metastore is rdbms)
11
11
  # @attr [String] replica_read_consistency, For Aurora sessions using write forwarding (eventual, global, session)
12
+ # @attr [String] sql_metastore_db_type, Which SQL driver to use (mysql, postgres, oracle), defaults to mysql
12
13
  # @attr [String] dynamo_db_endpoint, An optional endpoint URL (for dynamodb metastore)
13
14
  # @attr [String] dynamo_db_region, The AWS region for DynamoDB requests (for dynamodb metastore)
14
15
  # @attr [String] dynamo_db_table_name, The table name for DynamoDB (for dynamodb metastore)
@@ -29,6 +30,7 @@ module Asherah
29
30
  metastore: :Metastore,
30
31
  connection_string: :ConnectionString,
31
32
  replica_read_consistency: :ReplicaReadConsistency,
33
+ sql_metastore_db_type: :SQLMetastoreDBType,
32
34
  dynamo_db_endpoint: :DynamoDBEndpoint,
33
35
  dynamo_db_region: :DynamoDBRegion,
34
36
  dynamo_db_table_name: :DynamoDBTableName,
@@ -45,6 +47,7 @@ module Asherah
45
47
 
46
48
  KMS_TYPES = ['static', 'aws', 'test-debug-static'].freeze
47
49
  METASTORE_TYPES = ['rdbms', 'dynamodb', 'memory', 'test-debug-memory'].freeze
50
+ SQL_METASTORE_DB_TYPES = ['mysql', 'postgres', 'oracle'].freeze
48
51
 
49
52
  attr_accessor(*MAPPING.keys)
50
53
 
@@ -53,6 +56,7 @@ module Asherah
53
56
  validate_product_id
54
57
  validate_kms
55
58
  validate_metastore
59
+ validate_sql_metastore_db_type
56
60
  validate_kms_attributes
57
61
  end
58
62
 
@@ -91,6 +95,15 @@ module Asherah
91
95
  end
92
96
  end
93
97
 
98
+ def validate_sql_metastore_db_type
99
+ return if sql_metastore_db_type.nil?
100
+
101
+ unless SQL_METASTORE_DB_TYPES.include?(sql_metastore_db_type)
102
+ raise Error::ConfigError,
103
+ "config.sql_metastore_db_type must be one of these: #{SQL_METASTORE_DB_TYPES.join(', ')}"
104
+ end
105
+ end
106
+
94
107
  def validate_kms_attributes
95
108
  if kms == 'aws'
96
109
  raise Error::ConfigError, 'config.region_map not set' if region_map.nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Asherah
4
- VERSION = '0.5.0'
4
+ VERSION = '0.5.1'
5
5
  end
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.5.0
4
+ version: 0.5.1
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - GoDaddy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cobhan