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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15cc37e7643f00b3834ce13f149fc283791577ba2a99952645ba0a8cbd85d383
4
- data.tar.gz: 1920e8353572edb74f9bfbdc9dd8d3fbe01c285d0a6b9449050fe2542e5c837f
3
+ metadata.gz: bd4008fb212d768c6ed414a9aadbafce9b3507354461cc614efea67e648bc3da
4
+ data.tar.gz: 208bb13a184ce4ec697c9e1493cc9ee52e121d42ada57fc6d9357b90457c99bb
5
5
  SHA512:
6
- metadata.gz: e848c2638fa3e4549434874acdab9a41361a46efa85238adc7c670d694d627205be0ffce77b3d224131315ca5be3c74354baa8de3caa7388ef0f60f0882fb718
7
- data.tar.gz: 8d8ab251cbd65b0fa872904cc38a117ebf72358c88167a2fea16337c7ca2405b20b2a2aac4de4a261e7fde587f25d1d352590103b098eb1e0250ac3c4d912232
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.1.0'
15
+ spec.version = '3.2.0'
16
16
  spec.authors = ['Comet Licensing Ltd.']
17
17
  spec.email = ['hello@cometbackup.com']
18
18
 
@@ -7,13 +7,13 @@
7
7
 
8
8
  module Comet
9
9
 
10
- APPLICATION_VERSION = '26.11.3'
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 = 3
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comet_backup_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Comet Licensing Ltd.