zendesk_apps_support 4.45.0.alpha.0 → 4.45.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b8758656a8905a32b83c582ea409106a523ae0da29e2d27adab601b1b018600
|
|
4
|
+
data.tar.gz: 0b558941ca135311562c1ce19d0de5f7b601e7632aa52b3bd70034602869d5c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef0392d1072ac538bf2f5aa052a68b9690efa985ad97e8780457dff4cabd75d7a30322b29f7f06b6106e3e34c51e3a759835a04091b27fcd81950527b1d8afd9
|
|
7
|
+
data.tar.gz: ecc883ab33aa84393276ef0c67244ba65e876a342252b867ec2ff2eda6ac4dfb013bd9351a19247f5ad9071dd44b08a0bc704cba1c73af7d3ec781038305ceb7
|
data/config/locales/en.yml
CHANGED
|
@@ -188,9 +188,6 @@ en:
|
|
|
188
188
|
property of trigger %{trigger_key} (object: %{object_key}) contains
|
|
189
189
|
a placeholder %{property_value}. Placeholders are not allowed in trigger
|
|
190
190
|
definitions.'
|
|
191
|
-
setting_placeholders_not_allowed_in_cov2_requirements: The requirements.json
|
|
192
|
-
file contains a setting placeholder in the custom_objects_v2 requirements.
|
|
193
|
-
Setting placeholders are not allowed in custom_objects_v2 requirements.
|
|
194
191
|
missing_required_fields: 'Missing required fields in requirements.json:
|
|
195
192
|
"%{field}" is required in "%{identifier}"'
|
|
196
193
|
duplicate_requirements:
|
|
@@ -268,15 +265,14 @@ en:
|
|
|
268
265
|
do not match products in translations (%{translation_products})
|
|
269
266
|
insecure_token_parameter_in_manifest: 'Make sure to set secure to true
|
|
270
267
|
when using keys in Settings. Learn more: %{link}'
|
|
268
|
+
secure_parameters_with_no_scopes_in_manifest: 'The scopes property is not configured for parameter(s): %{params}.
|
|
269
|
+
This may cause token exposure vulnerabilities. Learn about: %{link}'
|
|
271
270
|
password_parameter_deprecated: 'Password parameter type is deprecated
|
|
272
271
|
and will not be accepted in the future. Use Basic Access Authentication
|
|
273
272
|
instead. Learn more: %{link}.'
|
|
274
273
|
default_secure_or_hidden_parameter_in_manifest: Default values for secure
|
|
275
274
|
or hidden parameters are not stored securely. Be sure to review them
|
|
276
275
|
and confirm they do not contain sensitive data
|
|
277
|
-
secure_parameters_with_no_scopes_in_manifest: 'The scopes property is
|
|
278
|
-
not configured for parameter(s): %{params}. This may cause token exposure
|
|
279
|
-
vulnerabilities. Learn about: %{link}'
|
|
280
276
|
stylesheet_error: 'Sass error: %{sass_error}'
|
|
281
277
|
invalid_type_parameter:
|
|
282
278
|
one: "%{invalid_types} is an invalid parameter type."
|
|
@@ -315,24 +315,16 @@ parts:
|
|
|
315
315
|
title: 'App builder job: requirements file contains placeholder in custom objects v2 object property. Placeholders are not allowed in object definitions. Leave requirements.json as is (do not translate). Do not translate "objects" as it is part of schema.'
|
|
316
316
|
value: 'The requirements.json file contains a placeholder in the objects array. The %{property_name} property of object %{object_key} contains a placeholder %{property_value}. Placeholders are not allowed in object definitions.'
|
|
317
317
|
screenshot: "https://drive.google.com/file/d/1UYrBruLjZ27WoQ40sWXqd07DNwtblg2W/view?usp=sharing"
|
|
318
|
-
obsolete: "2026-02-05"
|
|
319
318
|
- translation:
|
|
320
319
|
key: "txt.apps.admin.error.app_build.cov2_field_setting_placeholder_not_allowed"
|
|
321
320
|
title: 'App builder job: requirements file contains placeholder in custom objects v2 field property. Placeholders are not allowed in field definitions. Leave requirements.json as is (do not translate). Do not translate "object_fields" as it is part of schema.'
|
|
322
321
|
value: 'The requirements.json file contains a placeholder in the object_fields array. The %{property_name} property of field %{field_key} (object: %{object_key}) contains a placeholder %{property_value}. Placeholders are not allowed in field definitions.'
|
|
323
322
|
screenshot: "https://drive.google.com/file/d/1Bprc1VNv8kmzgbNeQn-noU0ItSci2obm/view?usp=sharing"
|
|
324
|
-
obsolete: "2026-02-05"
|
|
325
323
|
- translation:
|
|
326
324
|
key: "txt.apps.admin.error.app_build.cov2_trigger_setting_placeholder_not_allowed"
|
|
327
325
|
title: 'App builder job: requirements file contains placeholder in custom objects v2 trigger identifier. Placeholders are not allowed in trigger identifiers. Leave requirements.json as is (do not translate). Do not translate "object_triggers" as it is part of schema.'
|
|
328
326
|
value: 'The requirements.json file contains a placeholder in the object_triggers array. The %{property_name} property of trigger %{trigger_key} (object: %{object_key}) contains a placeholder %{property_value}. Placeholders are not allowed in trigger definitions.'
|
|
329
327
|
screenshot: "https://drive.google.com/file/d/1FwnzKj9srIDTxtk-WryA3xHTXGD7uS-W/view?usp=sharing"
|
|
330
|
-
obsolete: "2026-02-05"
|
|
331
|
-
- translation:
|
|
332
|
-
key: "txt.apps.admin.error.app_build.setting_placeholders_not_allowed_in_cov2_requirements"
|
|
333
|
-
title: 'App builder job: requirements file contains placeholder in custom objects v2 requirements. Placeholders are not allowed in custom objects v2 definitions. Leave requirements.json, custom_objects_v2 as is (do not translate)'
|
|
334
|
-
value: 'The requirements.json file contains a setting placeholder in the custom_objects_v2 requirements. Setting placeholders are not allowed in custom_objects_v2 requirements.'
|
|
335
|
-
screenshot: "https://drive.google.com/file/d/18Q9bTUO3gaSg2O0wZzn0OehE5SqmR49e/view?usp=sharing"
|
|
336
328
|
- translation:
|
|
337
329
|
key: "txt.apps.admin.error.app_build.missing_required_fields"
|
|
338
330
|
title: "App builder job: required key missing in requirements, e.g. \"title\" is required in \"my_custom_email_target\""
|
|
@@ -677,4 +669,4 @@ parts:
|
|
|
677
669
|
title: "Validation message to indicate missing scopes field in manifest's secure parameter.
|
|
678
670
|
Do not translate 'scopes'. %{params} refers to secure parameters with no scopes configured.
|
|
679
671
|
Scopes in manifest refers to https://developer.zendesk.com/documentation/apps/getting-started/setting-up-new-apps/#scopes"
|
|
680
|
-
value: "The scopes property is not configured for parameter(s): %{params}. This may cause token exposure vulnerabilities. Learn about: %{link}"
|
|
672
|
+
value: "The scopes property is not configured for parameter(s): %{params}. This may cause token exposure vulnerabilities. Learn about: %{link}"
|
|
@@ -12,15 +12,11 @@ module ZendeskAppsSupport
|
|
|
12
12
|
include Constants
|
|
13
13
|
include ValidationHelpers
|
|
14
14
|
|
|
15
|
-
SETTING_PLACEHOLDER_REGEXP = /\{\{\s*setting\.([\w.-]+)\s*\}\}/
|
|
16
|
-
|
|
17
15
|
def call(requirements)
|
|
18
16
|
structural_errors = validate_overall_requirements_structure(requirements)
|
|
19
17
|
return structural_errors if structural_errors.any?
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
payload_size_errors = validate_payload_size(requirements_json)
|
|
19
|
+
payload_size_errors = validate_payload_size(requirements)
|
|
24
20
|
return payload_size_errors if payload_size_errors.any?
|
|
25
21
|
|
|
26
22
|
limits_and_schema_errors = [
|
|
@@ -30,27 +26,18 @@ module ZendeskAppsSupport
|
|
|
30
26
|
|
|
31
27
|
return limits_and_schema_errors if limits_and_schema_errors.any?
|
|
32
28
|
|
|
33
|
-
setting_placeholder_errors = validate_setting_placeholders(requirements_json)
|
|
34
|
-
return setting_placeholder_errors if setting_placeholder_errors.any?
|
|
35
|
-
|
|
36
29
|
validate_object_references(requirements)
|
|
37
30
|
end
|
|
38
31
|
|
|
39
32
|
private
|
|
40
33
|
|
|
41
|
-
def validate_payload_size(
|
|
42
|
-
payload_size =
|
|
34
|
+
def validate_payload_size(requirements)
|
|
35
|
+
payload_size = requirements.to_json.bytesize
|
|
43
36
|
return [] if payload_size <= MAX_PAYLOAD_SIZE_BYTES
|
|
44
37
|
|
|
45
38
|
[ValidationError.new(:excessive_cov2_payload_size)]
|
|
46
39
|
end
|
|
47
40
|
|
|
48
|
-
def validate_setting_placeholders(requirements_json)
|
|
49
|
-
return [] unless requirements_json.match?(SETTING_PLACEHOLDER_REGEXP)
|
|
50
|
-
|
|
51
|
-
[ValidationError.new(:setting_placeholders_not_allowed_in_cov2_requirements)]
|
|
52
|
-
end
|
|
53
|
-
|
|
54
41
|
def validate_overall_requirements_structure(requirements)
|
|
55
42
|
errors = validate_structural_requirements(requirements)
|
|
56
43
|
return errors unless errors.empty?
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zendesk_apps_support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.45.0
|
|
4
|
+
version: 4.45.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James A. Rosen
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2025-12-
|
|
14
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|