foreman_rh_cloud 13.2.3 → 13.2.5

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.
@@ -3,10 +3,10 @@
3
3
  "locale_data": {
4
4
  "foreman_rh_cloud": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_rh_cloud 13.2.0",
6
+ "Project-Id-Version": "foreman_rh_cloud 14.0.2",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2023-01-20 13:26+0000",
9
- "Last-Translator": "Ondřej Gajdušek, 2025",
9
+ "Last-Translator": "Ondřej Gajdušek, 2026",
10
10
  "Language-Team": "Chinese (China) (https://app.transifex.com/foreman/teams/114/zh_CN/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
@@ -24,7 +24,7 @@
24
24
  "%s 机构"
25
25
  ],
26
26
  "A specific organization must be selected from the organization context.": [
27
- ""
27
+ "必须从机构上下文中选择一个特定的机构。"
28
28
  ],
29
29
  "About subscription watch": [
30
30
  "订阅查看"
@@ -39,7 +39,7 @@
39
39
  "现在选择了所有建议。"
40
40
  ],
41
41
  "Analysis disabled": [
42
- ""
42
+ "禁用分析"
43
43
  ],
44
44
  "Analytics data collection": [
45
45
  "数据收集分析"
@@ -51,7 +51,7 @@
51
51
  "应用 Insights 建议"
52
52
  ],
53
53
  "Attempted to destroy HBI host %s, but host does not exist in HBI": [
54
- ""
54
+ "尝试销毁 HBI 主机 %s,但主机在 HBI 中不存在"
55
55
  ],
56
56
  "Automatic inventory upload": [
57
57
  "自动清单上传"
@@ -93,7 +93,7 @@
93
93
  "完成"
94
94
  ],
95
95
  "Completed with warnings": [
96
- ""
96
+ "完成,带有警告"
97
97
  ],
98
98
  "Configure": [
99
99
  "配置"
@@ -114,13 +114,13 @@
114
114
  "当前页"
115
115
  ],
116
116
  "Details": [
117
- ""
117
+ "详情"
118
118
  ],
119
119
  "Disable": [
120
- ""
120
+ "禁用"
121
121
  ],
122
122
  "Disable vulnerability analysis": [
123
- ""
123
+ "禁用漏洞分析"
124
124
  ],
125
125
  "Disconnected hosts: ": [
126
126
  "断开连接的主机:"
@@ -138,28 +138,28 @@
138
138
  "下载最新的报告"
139
139
  ],
140
140
  "Download report": [
141
- ""
141
+ "下载报告"
142
142
  ],
143
143
  "Duration": [
144
- ""
144
+ "持续时间"
145
145
  ],
146
146
  "Enable": [
147
- ""
147
+ "启用"
148
148
  ],
149
149
  "Enable automatic deletion of mismatched host records from the Red Hat cloud": [
150
150
  "启用自动删除来自红帽云的主机记录"
151
151
  ],
152
152
  "Enable automatic deletion of mismatched host records from the Red Hat cloud. Ignored when using local Insights.": [
153
- ""
153
+ "启用自动删除来自红帽云的主机记录。在使用本地 Insights 时忽略。"
154
154
  ],
155
155
  "Enable automatic synchronization of Insights recommendations from the Red Hat cloud": [
156
156
  "启用来自红帽云的 Insights 建议自动同步"
157
157
  ],
158
158
  "Enable automatic synchronization of Insights recommendations from the Red Hat cloud. Ignored when using local Insights.": [
159
- ""
159
+ "启用自动同步来自 Red Hat cloud 的 Insights 建议。在使用本地 Insights 时忽略。"
160
160
  ],
161
161
  "Enable automatic upload of your host inventory to the Red Hat cloud. Ignored when using local Insights.": [
162
- ""
162
+ "启用自动将主机清单上传到红帽云。在使用本地 Insights 时会忽略。"
163
163
  ],
164
164
  "Enable automatic upload of your hosts inventory to the Red Hat cloud": [
165
165
  "启用自动将主机清单上传到红帽云"
@@ -171,7 +171,7 @@
171
171
  "启用清单上传"
172
172
  ],
173
173
  "Enable vulnerability analysis": [
174
- ""
174
+ "启用漏洞分析"
175
175
  ],
176
176
  "Encountered an error while trying to access the server:": [
177
177
  "在尝试访问服务器时遇到错误:"
@@ -183,22 +183,22 @@
183
183
  "将安装的软件包上传到红帽云"
184
184
  ],
185
185
  "Exclude installed packages from being uploaded to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored and installed packages are always excluded.) Ignored when using local Insights.": [
186
- ""
186
+ "在上传到红帽云时排除安装的软件包。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,且安装的软件包始终被排除。)在使用本地 Insights 时忽略。"
187
187
  ],
188
188
  "Exit Code: %s": [
189
189
  "退出代码:%s"
190
190
  ],
191
191
  "Failed": [
192
- ""
192
+ "失败"
193
193
  ],
194
194
  "Failed to destroy HBI host %s: %s": [
195
- ""
195
+ "销毁 HBI 主机 %s 失败:%s"
196
196
  ],
197
197
  "Failed to fetch hosts": [
198
- ""
198
+ "获取主机失败"
199
199
  ],
200
200
  "Failed to update vulnerability analysis status": [
201
- ""
201
+ "更新漏洞分析状态失败"
202
202
  ],
203
203
  "Fetch Insights-related host details": [
204
204
  "获取与 Insights 相关的主机详情"
@@ -237,7 +237,7 @@
237
237
  "生成报告,但不上传"
238
238
  ],
239
239
  "Generated": [
240
- ""
240
+ "生成"
241
241
  ],
242
242
  "Generating": [
243
243
  "生成中"
@@ -264,7 +264,7 @@
264
264
  "主机 Insights 建议"
265
265
  ],
266
266
  "Host inventory report job": [
267
- ""
267
+ "主机清单报告作业"
268
268
  ],
269
269
  "Host was not uploaded to your RH cloud inventory": [
270
270
  "主机没有上传到您的 RH 云清单"
@@ -288,7 +288,7 @@
288
288
  "Insights"
289
289
  ],
290
290
  "Invalid response from server": [
291
- ""
291
+ "来自服务器的无效响应"
292
292
  ],
293
293
  "Inventory": [
294
294
  "清单"
@@ -327,7 +327,7 @@
327
327
  "低"
328
328
  ],
329
329
  "Manage vulnerability analysis": [
330
- ""
330
+ "管理漏洞分析"
331
331
  ],
332
332
  "Manual": [
333
333
  "手册"
@@ -336,7 +336,7 @@
336
336
  "最小数据收集"
337
337
  ],
338
338
  "Missing Insights facets created: %s": [
339
- ""
339
+ "缺失创建的 Insights 情况:%s"
340
340
  ],
341
341
  "Moderate": [
342
342
  "中等"
@@ -345,7 +345,7 @@
345
345
  "如需更多详细信息,请参阅"
346
346
  ],
347
347
  "N/A": [
348
- ""
348
+ "不适用"
349
349
  ],
350
350
  "Next run: ": [
351
351
  "下一次运行 :"
@@ -354,31 +354,31 @@
354
354
  "否"
355
355
  ],
356
356
  "No account data available.": [
357
- ""
357
+ "没有可用的帐户数据。"
358
358
  ],
359
359
  "No recent tasks": [
360
- ""
360
+ "没有最近的任务"
361
361
  ],
362
362
  "No recommendations were found for this host!": [
363
363
  "没有找到此主机的建议!"
364
364
  ],
365
365
  "No report generation tasks have been run yet.": [
366
- ""
366
+ "还没有运行报告生成任务。"
367
367
  ],
368
368
  "No results found": [
369
369
  "没有找到结果"
370
370
  ],
371
371
  "No task history": [
372
- ""
372
+ "没有任务历史记录"
373
373
  ],
374
374
  "No task was found": [
375
375
  "没有找到任务"
376
376
  ],
377
377
  "No tasks have been run yet.": [
378
- ""
378
+ "还没有运行任何任务。"
379
379
  ],
380
380
  "None of the selected hosts are registered": [
381
- ""
381
+ "所选主机都没有注册"
382
382
  ],
383
383
  "Not reporting": [
384
384
  "未报告"
@@ -402,16 +402,16 @@
402
402
  "发送到红帽云的模糊主机名"
403
403
  ],
404
404
  "Obfuscate host names sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host names are not included in the report.) Ignored when using local Insights.": [
405
- ""
405
+ "将发送到红帽云的主机名进行模糊化处理。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,因为报告中不包含主机名。)在使用本地 Insights 时忽略。"
406
406
  ],
407
407
  "Obfuscate ipv4 addresses sent to the Red Hat cloud": [
408
408
  "发送到红帽云的模糊 ipv4 地址"
409
409
  ],
410
410
  "Obfuscate ipv4 addresses sent to the Red Hat cloud. (If insights_minimal_data_collection is set to true, this setting is ignored because host IPv4 addresses are not included in the report.) Ignored when using local Insights.": [
411
- ""
411
+ "将发送到红帽云的 ipv4 地址进行模糊化处理。(如果 insights_minimal_data_collection 设置为 true,则忽略此设置,因为报告中不包含 ipv4 地址。)在使用本地 Insights 时忽略。"
412
412
  ],
413
413
  "Only include the minimum required data in inventory reports for uploading to Red Hat cloud. When this is true, installed packages are excluded from the report regardless of the exclude_installed_packages setting, and host names and IPv4 addresses are excluded from the report regardless of obfuscation settings. Ignored when using local Insights.": [
414
- ""
414
+ "在将数据上传到红帽云时在清单报告中包括最少需要的数据。当这是 true 时,无论 exclude_installed_packages 设置是什么,安装的软件包都排除在报告中,无论模糊化设置是什么,主机名和 IPv4 地址都不包括在报告中。在使用本地 Insights 时忽略。"
415
415
  ],
416
416
  "Only send the minimum required data to Red Hat cloud, obfuscation settings are disabled": [
417
417
  "仅将最低所需的数据发送到红帽云,禁用模糊设置"
@@ -426,19 +426,19 @@
426
426
  "分页"
427
427
  ],
428
428
  "Paused": [
429
- ""
429
+ "暂停"
430
430
  ],
431
431
  "Playbook": [
432
432
  "运行 playbook"
433
433
  ],
434
434
  "Previous tasks will appear here.": [
435
- ""
435
+ "此处将显示前面的任务。"
436
436
  ],
437
437
  "RH Cloud": [
438
438
  "RH Cloud"
439
439
  ],
440
440
  "RHC daemon id. Ignored when using local Insights.": [
441
- ""
441
+ "RHC 守护进程 ID。在使用本地 Insights 时忽略。"
442
442
  ],
443
443
  "Read more about it in RH cloud insights": [
444
444
  "在 RH Cloud insights 中了解更多有关它的信息"
@@ -489,16 +489,16 @@
489
489
  "补救概述"
490
490
  ],
491
491
  "Report Generation": [
492
- ""
492
+ "报告生成"
493
493
  ],
494
494
  "Report generation and upload started": [
495
- ""
495
+ "报告生成和上传已开始"
496
496
  ],
497
497
  "Report generation started": [
498
- ""
498
+ "报告生成开始"
499
499
  ],
500
500
  "Report saved to": [
501
- ""
501
+ "报告保持到"
502
502
  ],
503
503
  "Reporting": [
504
504
  "报告"
@@ -516,7 +516,7 @@
516
516
  "运行 Insights 生成的补救 playbook"
517
517
  ],
518
518
  "Running": [
519
- ""
519
+ "執行中"
520
520
  ],
521
521
  "Satellite server has %{hits_count} recommendations by Red Hat": [
522
522
  "Satellite 服务器有 %{hits_count} 个红帽提供的建议"
@@ -537,7 +537,7 @@
537
537
  "设置"
538
538
  ],
539
539
  "Should import include parameter tags from Foreman? Ignored when using local Insights.": [
540
- ""
540
+ "是否应该导入 Foreman 中的 include 参数标签?在使用本地 Insights 时忽略。"
541
541
  ],
542
542
  "Show Advanced Settings": [
543
543
  "显示高级设置"
@@ -546,10 +546,10 @@
546
546
  "显示系统是否被配置为使用本地 iop-advisor-engine。"
547
547
  ],
548
548
  "Single-host report job": [
549
- ""
549
+ "单主机报告作业"
550
550
  ],
551
551
  "Single-host report job for host %s": [
552
- ""
552
+ "主机 %s 的单主机报告作业"
553
553
  ],
554
554
  "Start inventory synchronization": [
555
555
  "启动清单同步"
@@ -558,13 +558,13 @@
558
558
  "开始报告生成"
559
559
  ],
560
560
  "Started": [
561
- ""
561
+ "已启动"
562
562
  ],
563
563
  "Stopped": [
564
- ""
564
+ "停止"
565
565
  ],
566
566
  "Success": [
567
- ""
567
+ "成功"
568
568
  ],
569
569
  "Successfully synced hosts: ": [
570
570
  "成功同步的主机:"
@@ -603,7 +603,7 @@
603
603
  "没有适用于您的主机的建议"
604
604
  ],
605
605
  "There were no missing Insights facets": [
606
- ""
606
+ "没有缺失的 Insights 情况"
607
607
  ],
608
608
  "This action will also enable automatic reports upload": [
609
609
  "此操作还会启用自动报告上传"
@@ -624,7 +624,7 @@
624
624
  "总风险"
625
625
  ],
626
626
  "Unknown": [
627
- ""
627
+ "未知"
628
628
  ],
629
629
  "Upload hits from iop-advisor-engine": [
630
630
  "从 iop-advisor-engine 上传 hits"
@@ -633,13 +633,13 @@
633
633
  "上传 hits 信息"
634
634
  ],
635
635
  "Upload is disabled because subscription connection is not enabled. Enable it in Administer > Settings > Content.": [
636
- ""
636
+ "上传被禁用,因为订阅连接没有启用。通过 Administer > Settings > Content 启用。"
637
637
  ],
638
638
  "Upload rules related to the hits": [
639
639
  "上传与 hits 相关的 rule"
640
640
  ],
641
641
  "Uploaded": [
642
- ""
642
+ "已上传"
643
643
  ],
644
644
  "Uploading": [
645
645
  "上载中"
@@ -654,10 +654,10 @@
654
654
  "禁用 Red Hat Insights"
655
655
  ],
656
656
  "View task": [
657
- ""
657
+ "查看任务"
658
658
  ],
659
659
  "View task details": [
660
- ""
660
+ "查看任务详情"
661
661
  ],
662
662
  "Vulnerabilities": [
663
663
  "安全漏洞"
@@ -666,22 +666,22 @@
666
666
  "安全漏洞"
667
667
  ],
668
668
  "Vulnerability analysis disabled": [
669
- ""
669
+ "禁用漏洞分析"
670
670
  ],
671
671
  "Vulnerability analysis enabled": [
672
- ""
672
+ "启用漏洞分析"
673
673
  ],
674
674
  "Wait and %s": [
675
675
  "等待和 %s"
676
676
  ],
677
677
  "Warning": [
678
- ""
678
+ "警告"
679
679
  ],
680
680
  "Whether the resolution requires reboot": [
681
681
  "resolution 是否需要重启"
682
682
  ],
683
683
  "You do not have permission to perform this action": [
684
- ""
684
+ "您没有执行此操作的权限"
685
685
  ],
686
686
  "category name": [
687
687
  "类别名称"
@@ -224,14 +224,21 @@ module ForemanRhCloud
224
224
  def scope_request?(original_request, path)
225
225
  return nil unless original_request.get?
226
226
 
227
- # Only consider patterns that define tag_name - this ensures patterns without
228
- # tag_name (permission-only entries) cannot override tag-supporting patterns
229
- matching_patterns = SCOPED_REQUESTS.select { |pattern| pattern[:tag_name] && pattern[:test].match?(path) }
227
+ # Find patterns that match this path AND are relevant for GET requests.
228
+ # A pattern is relevant if it either:
229
+ # - Has tag_name defined (supports scoping)
230
+ # - Has GET permissions defined (explicitly handles GET, even without tags)
231
+ # This ensures patterns like api/vulnerability/v1/cves/[^/]+$ (GET without tags)
232
+ # take precedence over general patterns, while POST-only patterns are ignored.
233
+ matching_patterns = SCOPED_REQUESTS.select do |pattern|
234
+ pattern[:test].match?(path) && (pattern[:tag_name] || pattern.dig(:permissions, 'GET'))
235
+ end
230
236
  return nil if matching_patterns.empty?
231
237
 
232
- # Choose the most specific pattern by regex source length for consistency
233
- # with required_permission_for behavior
238
+ # Choose the most specific pattern by regex source length
234
239
  request_pattern = matching_patterns.max_by { |pattern| pattern[:test].source.length }
240
+
241
+ # Return the tag_name (may be nil if the most specific pattern doesn't support tags)
235
242
  request_pattern[:tag_name]
236
243
  end
237
244
 
@@ -1,3 +1,3 @@
1
1
  module ForemanRhCloud
2
- VERSION = '13.2.3'.freeze
2
+ VERSION = '13.2.5'.freeze
3
3
  end