asherah 0.5.0-x86_64-darwin → 0.5.2-x86_64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/ext/asherah/checksums.yml +5 -5
- data/lib/asherah/config.rb +13 -0
- data/lib/asherah/native/libasherah-x64.dylib +0 -0
- data/lib/asherah/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5d3b1f9b8f1f8051e5b7ee0f805d61273c8804a7d056e31d1ac570f06486b73
|
4
|
+
data.tar.gz: bee529ad2fa3da6b426e08cb831c91780d755c5b837bb26aa1026fd4ed3a318b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aae9133b9d00ad4016ddeec260a3d44319dc31026a8572c0cbbdc2a9cb8dcaf199024de2c2de47d7a317aaf959efc911a5b68150ee0e2aa2501b87b8d66b99ce
|
7
|
+
data.tar.gz: 2caa417a48458a30d164899b61e44a43acbcdbb21c8dfca6fed9bbf0f6ac1bfd8a0fb8dca72fba3a5e6444311aafae2a9a45c426fe5b4d6304a1ab8eb6510ab6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.5.2] - 2024-01-15
|
4
|
+
|
5
|
+
- Upgrade to use asherah-cobhan v0.4.32
|
6
|
+
|
7
|
+
## [0.5.1] - 2023-10-25
|
8
|
+
|
9
|
+
- Add `sql_metastore_db_type` config option to support PostgresSQL adapter for Asherah
|
10
|
+
- Upgrade to use asherah-cobhan v0.4.31
|
11
|
+
|
3
12
|
## [0.5.0] - 2023-10-16
|
4
13
|
|
5
14
|
- Upgrade to use asherah-cobhan v0.4.30
|
data/ext/asherah/checksums.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
version: v0.4.
|
2
|
-
libasherah-arm64.so:
|
3
|
-
libasherah-x64.so:
|
4
|
-
libasherah-arm64.dylib:
|
5
|
-
libasherah-x64.dylib:
|
1
|
+
version: v0.4.32
|
2
|
+
libasherah-arm64.so: 0008a114d60c9b6c0e7fbc19a2e34e3527f761074bd3fe99595d7676c707f7e4
|
3
|
+
libasherah-x64.so: cf8bd61f76ca93457745e3c5ca28de385030e34d0d47893b870166605cf39306
|
4
|
+
libasherah-arm64.dylib: bef8cb18177dc8b49c58a12263df0c1e3584791af212a79000f5b72344969bfd
|
5
|
+
libasherah-x64.dylib: b43e69d18351a59abecf3457d0e451ffd816f1f111f1c0cfd1217075fe4a8b9d
|
data/lib/asherah/config.rb
CHANGED
@@ -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?
|
Binary file
|
data/lib/asherah/version.rb
CHANGED
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.
|
4
|
+
version: 0.5.2
|
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:
|
11
|
+
date: 2024-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cobhan
|