comet_backup_ruby_sdk 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/comet_backup_ruby_sdk.gemspec +1 -1
- data/lib/comet/definitions.rb +2 -2
- data/lib/comet/models/destination_config.rb +14 -0
- data/lib/comet/models/device_config.rb +12 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd4008fb212d768c6ed414a9aadbafce9b3507354461cc614efea67e648bc3da
|
|
4
|
+
data.tar.gz: 208bb13a184ce4ec697c9e1493cc9ee52e121d42ada57fc6d9357b90457c99bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42f4bd5100eea57ca58134a2a21a76d1d7845c78f5956d1afc29fae1e4aef354aebe2e8665f6dab71ce3af01cdefb6b045d27d1a548fb34abee488e60867af78
|
|
7
|
+
data.tar.gz: fc12e0d1f2303a9b788090b88424136c9fd09a281812336feaedc95c83723a172fda9ba70d1acf983c70c248157e3a34f253e9410b427ebe94658ffecaaa20f7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2026-12-02 v3.2.0
|
|
4
|
+
|
|
5
|
+
- Based on Comet 26.11.4
|
|
6
|
+
- Add the DisableLinuxSandboxing option to DeviceConfig (Comet 26.11.4 and later)
|
|
7
|
+
- Add the ConfigHash field to DestinationConfig (Comet 26.11.4 and later)
|
|
8
|
+
|
|
3
9
|
## 2026-11-25 v3.1.0
|
|
4
10
|
|
|
5
11
|
- Based on Comet 26.11.3
|
|
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
12
12
|
|
|
13
13
|
Gem::Specification.new do |spec|
|
|
14
14
|
spec.name = 'comet_backup_ruby_sdk'
|
|
15
|
-
spec.version = '3.
|
|
15
|
+
spec.version = '3.2.0'
|
|
16
16
|
spec.authors = ['Comet Licensing Ltd.']
|
|
17
17
|
spec.email = ['hello@cometbackup.com']
|
|
18
18
|
|
data/lib/comet/definitions.rb
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
|
|
8
8
|
module Comet
|
|
9
9
|
|
|
10
|
-
APPLICATION_VERSION = '26.11.
|
|
10
|
+
APPLICATION_VERSION = '26.11.4'
|
|
11
11
|
|
|
12
12
|
APPLICATION_VERSION_MAJOR = 26
|
|
13
13
|
|
|
14
14
|
APPLICATION_VERSION_MINOR = 11
|
|
15
15
|
|
|
16
|
-
APPLICATION_VERSION_REVISION =
|
|
16
|
+
APPLICATION_VERSION_REVISION = 4
|
|
17
17
|
|
|
18
18
|
# AutoRetentionLevel: The system will automatically choose how often to run an automatic Retention
|
|
19
19
|
# Pass after each backup job.
|
|
@@ -236,6 +236,12 @@ module Comet
|
|
|
236
236
|
# @type [Number] repo_init_timestamp
|
|
237
237
|
attr_accessor :repo_init_timestamp
|
|
238
238
|
|
|
239
|
+
# A hash of the Storage Vault's stored config file, recorded by the backup client. Used for
|
|
240
|
+
# verification during key rotation.
|
|
241
|
+
# This field is available in Comet 26.11.4 and later.
|
|
242
|
+
# @type [String] config_hash
|
|
243
|
+
attr_accessor :config_hash
|
|
244
|
+
|
|
239
245
|
# Storage Vault quota
|
|
240
246
|
# @type [Boolean] storage_limit_enabled
|
|
241
247
|
attr_accessor :storage_limit_enabled
|
|
@@ -337,6 +343,7 @@ module Comet
|
|
|
337
343
|
@encryption_key_encryption_method = 0
|
|
338
344
|
@encrypted_encryption_key = ''
|
|
339
345
|
@repo_init_timestamp = 0
|
|
346
|
+
@config_hash = ''
|
|
340
347
|
@storage_limit_bytes = 0
|
|
341
348
|
@storage_limit_id = ''
|
|
342
349
|
@statistics = Comet::DestinationStatistics.new
|
|
@@ -606,6 +613,10 @@ module Comet
|
|
|
606
613
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
607
614
|
|
|
608
615
|
@repo_init_timestamp = v
|
|
616
|
+
when 'ConfigHash'
|
|
617
|
+
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
618
|
+
|
|
619
|
+
@config_hash = v
|
|
609
620
|
when 'StorageLimitEnabled'
|
|
610
621
|
@storage_limit_enabled = v
|
|
611
622
|
when 'StorageLimitBytes'
|
|
@@ -710,6 +721,9 @@ module Comet
|
|
|
710
721
|
ret['EncryptionKeyEncryptionMethod'] = @encryption_key_encryption_method
|
|
711
722
|
ret['EncryptedEncryptionKey'] = @encrypted_encryption_key
|
|
712
723
|
ret['RepoInitTimestamp'] = @repo_init_timestamp
|
|
724
|
+
unless @config_hash.nil?
|
|
725
|
+
ret['ConfigHash'] = @config_hash
|
|
726
|
+
end
|
|
713
727
|
ret['StorageLimitEnabled'] = @storage_limit_enabled
|
|
714
728
|
ret['StorageLimitBytes'] = @storage_limit_bytes
|
|
715
729
|
ret['StorageLimitID'] = @storage_limit_id
|
|
@@ -44,6 +44,13 @@ module Comet
|
|
|
44
44
|
# @type [Number] ninja_one_node_id
|
|
45
45
|
attr_accessor :ninja_one_node_id
|
|
46
46
|
|
|
47
|
+
# Default disabled. If set, Linux devices do not perform file operations inside other users' home
|
|
48
|
+
# directories as the owning user.
|
|
49
|
+
# This allows backing up and restoring root-owned content inside system-user home directories (e.g.
|
|
50
|
+
# /var/backups), but removes protection against symlinks placed by those users.
|
|
51
|
+
# @type [Boolean] disable_linux_sandboxing
|
|
52
|
+
attr_accessor :disable_linux_sandboxing
|
|
53
|
+
|
|
47
54
|
# A hash of a hardware-derived secret that the device supplies on every device-scoped API call,
|
|
48
55
|
# binding the device to its DeviceID.
|
|
49
56
|
# The server sets it when the device registers, or on first use for devices registered before this
|
|
@@ -128,6 +135,8 @@ module Comet
|
|
|
128
135
|
raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric
|
|
129
136
|
|
|
130
137
|
@ninja_one_node_id = v
|
|
138
|
+
when 'DisableLinuxSandboxing'
|
|
139
|
+
@disable_linux_sandboxing = v
|
|
131
140
|
when 'DeviceSecretHash'
|
|
132
141
|
raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
|
|
133
142
|
|
|
@@ -167,6 +176,9 @@ module Comet
|
|
|
167
176
|
unless @ninja_one_node_id.nil?
|
|
168
177
|
ret['NinjaOneNodeId'] = @ninja_one_node_id
|
|
169
178
|
end
|
|
179
|
+
unless @disable_linux_sandboxing.nil?
|
|
180
|
+
ret['DisableLinuxSandboxing'] = @disable_linux_sandboxing
|
|
181
|
+
end
|
|
170
182
|
unless @device_secret_hash.nil?
|
|
171
183
|
ret['DeviceSecretHash'] = @device_secret_hash
|
|
172
184
|
end
|