@huawei-iac-tools/landingzone-workbench 0.0.0-stage → 0.0.2
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.
- package/LICENSE +201 -0
- package/README.md +85 -2
- package/cordis.patch.yml +21 -0
- package/knowledge/account-qualification.md +128 -0
- package/knowledge/blueprints/_base/blueprint.json +481 -0
- package/knowledge/blueprints/_base/defaults.json +127 -0
- package/knowledge/blueprints/foundation-lz/blueprint.json +43 -0
- package/knowledge/blueprints/foundation-lz/defaults.json +47 -0
- package/knowledge/blueprints/full-lz/blueprint.json +11 -0
- package/knowledge/blueprints/full-lz/defaults.json +8 -0
- package/knowledge/config.json +43 -0
- package/knowledge/error-rules.json +14 -0
- package/knowledge/ic-policies.json +21 -0
- package/knowledge/modules/account-structure.md +101 -0
- package/knowledge/modules/compliance/config-rms.md +212 -0
- package/knowledge/modules/compliance/cts.md +179 -0
- package/knowledge/modules/compliance/obs-lts.md +155 -0
- package/knowledge/modules/ic-policies.json +21 -0
- package/knowledge/modules/identity-center.md +603 -0
- package/knowledge/modules/module-layers.md +169 -0
- package/knowledge/modules/network/er.md +222 -0
- package/knowledge/modules/network/nat-eip.md +123 -0
- package/knowledge/modules/network/ram-share.md +92 -0
- package/knowledge/modules/network/vpc-subnet.md +142 -0
- package/knowledge/modules/organization-security/scp.md +122 -0
- package/knowledge/modules/organizations.md +212 -0
- package/knowledge/modules/recommended-config.md +157 -0
- package/knowledge/modules/recommended-rules.json +175 -0
- package/knowledge/modules/scp-policies.json +111 -0
- package/knowledge/modules/security/aad.md +94 -0
- package/knowledge/modules/security/cfw.md +105 -0
- package/knowledge/modules/security/waf.md +110 -0
- package/knowledge/param-mappings.json +133 -0
- package/knowledge/prompts.md +83 -0
- package/knowledge/resource-types.json +1162 -0
- package/knowledge/scp-policies.json +111 -0
- package/knowledge/state-machine.md +33 -0
- package/lib/client.js +21 -0
- package/lib/index.js +28592 -0
- package/lib/types/account-role.d.ts +19 -0
- package/lib/types/account-scope.d.ts +10 -0
- package/lib/types/agency.d.ts +38 -0
- package/lib/types/client/DropdownSelect.d.ts +49 -0
- package/lib/types/client/LoginGate.d.ts +20 -0
- package/lib/types/client/PanelIcon.d.ts +11 -0
- package/lib/types/client/WorkbenchShell.d.ts +21 -0
- package/lib/types/client/account-role.d.ts +15 -0
- package/lib/types/client/credential-status.d.ts +15 -0
- package/lib/types/client/huawei-mark.d.ts +37 -0
- package/lib/types/client/index.d.ts +26 -0
- package/lib/types/client/layout-ref.d.ts +23 -0
- package/lib/types/client/pages/ConfigPage/AdviceCard.d.ts +26 -0
- package/lib/types/client/pages/ConfigPage/AuditBar.d.ts +21 -0
- package/lib/types/client/pages/ConfigPage/ChangeSummaryCard.d.ts +22 -0
- package/lib/types/client/pages/ConfigPage/ChangesCard.d.ts +27 -0
- package/lib/types/client/pages/ConfigPage/ComplianceDetail.d.ts +25 -0
- package/lib/types/client/pages/ConfigPage/ComplianceSummaryCard.d.ts +31 -0
- package/lib/types/client/pages/ConfigPage/FindingsCard.d.ts +21 -0
- package/lib/types/client/pages/ConfigPage/GlossaryDrawer.d.ts +17 -0
- package/lib/types/client/pages/ConfigPage/OrgComplianceDetail.d.ts +15 -0
- package/lib/types/client/pages/ConfigPage/Pager.d.ts +32 -0
- package/lib/types/client/pages/ConfigPage/ResourceDrawer.d.ts +26 -0
- package/lib/types/client/pages/ConfigPage/ResourcesTable.d.ts +35 -0
- package/lib/types/client/pages/ConfigPage/RollupPanel.d.ts +17 -0
- package/lib/types/client/pages/ConfigPage/RuleDetailDrawer.d.ts +23 -0
- package/lib/types/client/pages/ConfigPage/StatusCards.d.ts +26 -0
- package/lib/types/client/pages/ConfigPage/UncoveredDialog.d.ts +22 -0
- package/lib/types/client/pages/ConfigPage/config-api.d.ts +101 -0
- package/lib/types/client/pages/ConfigPage/config-store.d.ts +57 -0
- package/lib/types/client/pages/ConfigPage/index.d.ts +21 -0
- package/lib/types/client/pages/ConfigPage/paging.d.ts +46 -0
- package/lib/types/client/pages/ConfigPage/scope-options.d.ts +51 -0
- package/lib/types/client/pages/CostPage/AccountAllocation.d.ts +24 -0
- package/lib/types/client/pages/CostPage/AccountBars.d.ts +20 -0
- package/lib/types/client/pages/CostPage/AccountColumns.d.ts +24 -0
- package/lib/types/client/pages/CostPage/AccountDonut.d.ts +18 -0
- package/lib/types/client/pages/CostPage/AccountSwitcher.d.ts +25 -0
- package/lib/types/client/pages/CostPage/AdviceCard.d.ts +43 -0
- package/lib/types/client/pages/CostPage/AdviceFindings.d.ts +43 -0
- package/lib/types/client/pages/CostPage/BillingPanels.d.ts +23 -0
- package/lib/types/client/pages/CostPage/BudgetCard.d.ts +36 -0
- package/lib/types/client/pages/CostPage/GlossaryDrawer.d.ts +16 -0
- package/lib/types/client/pages/CostPage/KpiRow.d.ts +23 -0
- package/lib/types/client/pages/CostPage/MarkdownBlock.d.ts +16 -0
- package/lib/types/client/pages/CostPage/ReportView.d.ts +17 -0
- package/lib/types/client/pages/CostPage/ResourceColumns.d.ts +19 -0
- package/lib/types/client/pages/CostPage/ResourceDonut.d.ts +18 -0
- package/lib/types/client/pages/CostPage/ResourcesCard.d.ts +40 -0
- package/lib/types/client/pages/CostPage/RuleDetailDrawer.d.ts +23 -0
- package/lib/types/client/pages/CostPage/SavingView.d.ts +38 -0
- package/lib/types/client/pages/CostPage/ServiceDonut.d.ts +17 -0
- package/lib/types/client/pages/CostPage/TrendChart.d.ts +24 -0
- package/lib/types/client/pages/CostPage/budget-input.d.ts +30 -0
- package/lib/types/client/pages/CostPage/cost-api.d.ts +266 -0
- package/lib/types/client/pages/CostPage/cost-store.d.ts +25 -0
- package/lib/types/client/pages/CostPage/format.d.ts +37 -0
- package/lib/types/client/pages/CostPage/index.d.ts +34 -0
- package/lib/types/client/pages/CostPage/trend-fold.d.ts +32 -0
- package/lib/types/client/pages/CostPage/useEcharts.d.ts +70 -0
- package/lib/types/client/pages/OrgStructurePage/AccountStatsCard.d.ts +22 -0
- package/lib/types/client/pages/OrgStructurePage/CoreAccountsCard.d.ts +18 -0
- package/lib/types/client/pages/OrgStructurePage/CreateAccountDialog.d.ts +28 -0
- package/lib/types/client/pages/OrgStructurePage/ManageUsersDialog.d.ts +28 -0
- package/lib/types/client/pages/OrgStructurePage/MemberAccountsTable.d.ts +32 -0
- package/lib/types/client/pages/OrgStructurePage/MoveAccountDialog.d.ts +29 -0
- package/lib/types/client/pages/OrgStructurePage/OrgGlossaryDrawer.d.ts +13 -0
- package/lib/types/client/pages/OrgStructurePage/OrgTreeCard.d.ts +31 -0
- package/lib/types/client/pages/OrgStructurePage/index.d.ts +21 -0
- package/lib/types/client/pages/OrgStructurePage/org-api.d.ts +166 -0
- package/lib/types/client/pages/OverviewPage/AnchorRow.d.ts +24 -0
- package/lib/types/client/pages/OverviewPage/AttentionList.d.ts +29 -0
- package/lib/types/client/pages/OverviewPage/OverviewCharts.d.ts +79 -0
- package/lib/types/client/pages/OverviewPage/OverviewGlossaryDrawer.d.ts +15 -0
- package/lib/types/client/pages/OverviewPage/index.d.ts +22 -0
- package/lib/types/client/pages/OverviewPage/overview-api.d.ts +115 -0
- package/lib/types/client/pages/ResourcePage/AccountResourceList.d.ts +21 -0
- package/lib/types/client/pages/ResourcePage/components/GlossaryDrawer.d.ts +20 -0
- package/lib/types/client/pages/ResourcePage/components/MetricCards.d.ts +19 -0
- package/lib/types/client/pages/ResourcePage/components/MultiSelect.d.ts +27 -0
- package/lib/types/client/pages/ResourcePage/components/PanelPager.d.ts +26 -0
- package/lib/types/client/pages/ResourcePage/components/RankBars.d.ts +25 -0
- package/lib/types/client/pages/ResourcePage/components/ScopeSelect.d.ts +27 -0
- package/lib/types/client/pages/ResourcePage/components/SourceConfigModal.d.ts +21 -0
- package/lib/types/client/pages/ResourcePage/components/SyncControls.d.ts +18 -0
- package/lib/types/client/pages/ResourcePage/components/TrendChart.d.ts +14 -0
- package/lib/types/client/pages/ResourcePage/components/useColumnWidths.d.ts +12 -0
- package/lib/types/client/pages/ResourcePage/format.d.ts +9 -0
- package/lib/types/client/pages/ResourcePage/index.d.ts +20 -0
- package/lib/types/client/pages/ResourcePage/summary-api.d.ts +205 -0
- package/lib/types/client/pages/SetupPage/AskPanel.d.ts +21 -0
- package/lib/types/client/pages/SetupPage/ChatEmbed.d.ts +40 -0
- package/lib/types/client/pages/SetupPage/ChatTab.d.ts +17 -0
- package/lib/types/client/pages/SetupPage/FormTab.d.ts +12 -0
- package/lib/types/client/pages/SetupPage/FormTabV2.d.ts +14 -0
- package/lib/types/client/pages/SetupPage/ProgressTreeView.d.ts +15 -0
- package/lib/types/client/pages/SetupPage/StageFlow.d.ts +16 -0
- package/lib/types/client/pages/SetupPage/index.d.ts +10 -0
- package/lib/types/client/pages/SetupPage/progress-types.d.ts +36 -0
- package/lib/types/client/pages/SetupPage/session-binding.d.ts +38 -0
- package/lib/types/client/pages/SetupPage/session-store.d.ts +57 -0
- package/lib/types/client/pages/SetupPage/sessions-ref.d.ts +5 -0
- package/lib/types/client/pages/SetupPage/setup-replan.d.ts +13 -0
- package/lib/types/client/pages/SetupPage/wb-api.d.ts +192 -0
- package/lib/types/client/pages/list-preview.d.ts +36 -0
- package/lib/types/client/permission-mode.d.ts +53 -0
- package/lib/types/client/store.d.ts +22 -0
- package/lib/types/collect.d.ts +78 -0
- package/lib/types/config/account-scope.d.ts +61 -0
- package/lib/types/config/advice-findings.d.ts +31 -0
- package/lib/types/config/advice-prompt.d.ts +60 -0
- package/lib/types/config/advice.d.ts +116 -0
- package/lib/types/config/cts.d.ts +30 -0
- package/lib/types/config/evidence/rules.d.ts +31 -0
- package/lib/types/config/evidence/types.d.ts +103 -0
- package/lib/types/config/failure-note.d.ts +46 -0
- package/lib/types/config/fingerprint-cache.d.ts +45 -0
- package/lib/types/config/identity.d.ts +67 -0
- package/lib/types/config/query.d.ts +49 -0
- package/lib/types/config/rms.d.ts +412 -0
- package/lib/types/config/routes.d.ts +32 -0
- package/lib/types/config/types.d.ts +785 -0
- package/lib/types/config/views.d.ts +158 -0
- package/lib/types/cost/accounts.d.ts +29 -0
- package/lib/types/cost/advice-findings.d.ts +77 -0
- package/lib/types/cost/advice-model.d.ts +19 -0
- package/lib/types/cost/advice-prompt.d.ts +73 -0
- package/lib/types/cost/advice-subagent-types.d.ts +6 -0
- package/lib/types/cost/advice-subagent.d.ts +116 -0
- package/lib/types/cost/advice-types.d.ts +63 -0
- package/lib/types/cost/advice.d.ts +125 -0
- package/lib/types/cost/aggregate.d.ts +157 -0
- package/lib/types/cost/assume.d.ts +43 -0
- package/lib/types/cost/bss.d.ts +166 -0
- package/lib/types/cost/budget-overview.d.ts +38 -0
- package/lib/types/cost/budget.d.ts +56 -0
- package/lib/types/cost/cache.d.ts +58 -0
- package/lib/types/cost/caliber.d.ts +40 -0
- package/lib/types/cost/console-links.d.ts +27 -0
- package/lib/types/cost/credentials.d.ts +38 -0
- package/lib/types/cost/data-window.d.ts +38 -0
- package/lib/types/cost/evidence/catalog.d.ts +35 -0
- package/lib/types/cost/evidence/index.d.ts +70 -0
- package/lib/types/cost/evidence/inventory.d.ts +44 -0
- package/lib/types/cost/evidence/pricing.d.ts +72 -0
- package/lib/types/cost/evidence/projects.d.ts +18 -0
- package/lib/types/cost/evidence/rules.d.ts +66 -0
- package/lib/types/cost/evidence/state.d.ts +38 -0
- package/lib/types/cost/evidence/thresholds.d.ts +68 -0
- package/lib/types/cost/evidence/types.d.ts +288 -0
- package/lib/types/cost/evidence/utilization.d.ts +37 -0
- package/lib/types/cost/history.d.ts +36 -0
- package/lib/types/cost/ledger.d.ts +97 -0
- package/lib/types/cost/normalize.d.ts +37 -0
- package/lib/types/cost/period-projection.d.ts +57 -0
- package/lib/types/cost/plan-check.d.ts +102 -0
- package/lib/types/cost/plan-db.d.ts +73 -0
- package/lib/types/cost/plan-types.d.ts +183 -0
- package/lib/types/cost/plan.d.ts +63 -0
- package/lib/types/cost/quote.d.ts +45 -0
- package/lib/types/cost/report.d.ts +136 -0
- package/lib/types/cost/resources.d.ts +108 -0
- package/lib/types/cost/routes.d.ts +38 -0
- package/lib/types/cost/scope.d.ts +42 -0
- package/lib/types/cost/types.d.ts +335 -0
- package/lib/types/cost/unit-prices-derive.d.ts +19 -0
- package/lib/types/cost/unit-prices.d.ts +23 -0
- package/lib/types/db.d.ts +228 -0
- package/lib/types/host-log.d.ts +7 -0
- package/lib/types/http.d.ts +42 -0
- package/lib/types/index.d.ts +30 -0
- package/lib/types/inventory.d.ts +286 -0
- package/lib/types/obs.d.ts +16 -0
- package/lib/types/org/aggregate.d.ts +36 -0
- package/lib/types/org/churn.d.ts +10 -0
- package/lib/types/org/orgs.d.ts +258 -0
- package/lib/types/org/routes.d.ts +28 -0
- package/lib/types/org-types.d.ts +156 -0
- package/lib/types/per-service.d.ts +39 -0
- package/lib/types/setup/blueprint-loader.d.ts +81 -0
- package/lib/types/setup/caller.d.ts +105 -0
- package/lib/types/setup/engine.d.ts +41 -0
- package/lib/types/setup/form-store.d.ts +13 -0
- package/lib/types/setup/nodes/n1-check.d.ts +14 -0
- package/lib/types/setup/nodes/n10-governance.d.ts +6 -0
- package/lib/types/setup/nodes/n11-infra.d.ts +6 -0
- package/lib/types/setup/nodes/n12-reconcile.d.ts +6 -0
- package/lib/types/setup/nodes/n2-region.d.ts +6 -0
- package/lib/types/setup/nodes/n3-blueprint.d.ts +6 -0
- package/lib/types/setup/nodes/n4-modules.d.ts +6 -0
- package/lib/types/setup/nodes/n5-details.d.ts +6 -0
- package/lib/types/setup/nodes/n6-plan.d.ts +6 -0
- package/lib/types/setup/nodes/n7-verify.d.ts +6 -0
- package/lib/types/setup/nodes/n8-approve.d.ts +6 -0
- package/lib/types/setup/nodes/n9-buildmode.d.ts +6 -0
- package/lib/types/setup/plan-state.d.ts +10 -0
- package/lib/types/setup/prompt-loader.d.ts +16 -0
- package/lib/types/setup/routes.d.ts +22 -0
- package/lib/types/setup/session-notify.d.ts +30 -0
- package/lib/types/setup/tools.d.ts +19 -0
- package/lib/types/setup/types.d.ts +157 -0
- package/lib/types/sse-bus.d.ts +23 -0
- package/lib/types/tools/config-facts.d.ts +16 -0
- package/lib/types/tools/cost-facts.d.ts +10 -0
- package/lib/types/tools/register.d.ts +18 -0
- package/lib/types/wb-conventions.d.ts +140 -0
- package/package.json +77 -4
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# 对象存储 OBS 与日志服务 LTS(obs-lts)
|
|
2
|
+
|
|
3
|
+
> OBS 存日志/配置快照,LTS 做日志检索。
|
|
4
|
+
> LZ 合规审计四件套的存储层。
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## 一、是什么 / 为什么需要
|
|
9
|
+
|
|
10
|
+
- **OBS(Object Storage Service)**:对象存储,存 CTS 日志 + Config 配置快照,长期留存
|
|
11
|
+
- **LTS(Log Tank Service)**:日志服务,CTS 日志转 LTS 做实时检索
|
|
12
|
+
|
|
13
|
+
**为什么需要**:合规要求日志长期留存(OBS)+ 可检索(LTS);OBS 是廉价的冷存储,LTS 是检索引擎。
|
|
14
|
+
|
|
15
|
+
## 二、里面应该有什么(子结构)
|
|
16
|
+
|
|
17
|
+
| 资源 | 职责 | 必备 | 归属账号 |
|
|
18
|
+
|---|---|---|---|
|
|
19
|
+
| OBS 桶(CTS 日志) | CTS 追踪器日志转储 | ✅ | LogArchive |
|
|
20
|
+
| OBS 桶(Config) | Config 资源记录器转储 | ✅ | 管理账号 |
|
|
21
|
+
| LTS 服务 | CTS 日志检索 | 等保二级+ | LogArchive |
|
|
22
|
+
|
|
23
|
+
## 三、注意点 / 最佳实践 / 坑
|
|
24
|
+
|
|
25
|
+
### 约束
|
|
26
|
+
- **OBS 是区域服务**,host 带 `obs.<region>.`(ListBuckets 也可用全局)
|
|
27
|
+
- **OBS 桶名全局唯一**:需生成不重名(常含账号 ID)
|
|
28
|
+
- **LTS 需手动开通**:控制台首次进入开通,不能纯 API
|
|
29
|
+
|
|
30
|
+
### 最佳实践
|
|
31
|
+
- CTS 日志桶放 LogArchive(日志账号)
|
|
32
|
+
- Config 桶放管理账号(Config 记录器是组织级管理账号资源,桶名含管理账号 domainId)
|
|
33
|
+
- 桶名含账号 ID 防冲突(如 `config-bucket-{domainId}`)
|
|
34
|
+
|
|
35
|
+
### 坑
|
|
36
|
+
- **OBS 不接受 STS 临时凭证**:需永久 AK/SK
|
|
37
|
+
- **LTS 开通是断点操作**:Agent 不能纯 API 开通,需人工控制台操作(断点引导)
|
|
38
|
+
- **桶名含账号 ID**:标准方案里 `config-bucket-019f8c84...` 是管理账号 ID 拼的,不是随便写的
|
|
39
|
+
|
|
40
|
+
## 四、费用属性(预计,仅作方案决策参考,非最终账单)
|
|
41
|
+
| 项目 | 月费(元,预计) | 说明 |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| OBS 桶(标准存储) | 5 | 按存储量+请求计费,日志量小预估 5 元(预估,仅供参考) |
|
|
44
|
+
| LTS 日志服务 | 0 | 基线免费额度内,日志量超量才计费 |
|
|
45
|
+
|
|
46
|
+
> ⚠️ OBS/LTS 费用随日志量浮动;预估仅作决策参考,实际以华为云账单为准。
|
|
47
|
+
|
|
48
|
+
## 五、创建依赖
|
|
49
|
+
|
|
50
|
+
### 前置
|
|
51
|
+
- **OBS 桶**:无前置(独立建)
|
|
52
|
+
- **LTS**:LogArchive 账号已建(开通 LTS)
|
|
53
|
+
|
|
54
|
+
### 被依赖
|
|
55
|
+
- CTS 追踪器依赖 OBS 桶(日志转储)
|
|
56
|
+
- Config 记录器依赖 OBS 桶(配置转储)
|
|
57
|
+
|
|
58
|
+
## 五、怎么查接口(指向 ops-deploy)
|
|
59
|
+
|
|
60
|
+
| 查什么 | productshort | 关键 API |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| OBS 桶 | OBS | ListBuckets / CreateBucket |
|
|
63
|
+
| LTS | LTS | (开通主要靠控制台,API 能力有限) |
|
|
64
|
+
|
|
65
|
+
**查法**:`apiexplorer('OBS')` → compact → `apiexplorerHost('OBS', region)`。
|
|
66
|
+
> OBS 桶操作 host 含桶名(`{bucket}.obs.<region>.`);ListBuckets 用 `obs.<region>.` 或全局。LTS 开通是断点,不依赖 API。
|
|
67
|
+
|
|
68
|
+
## 六、演示示例
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
CTS 审计日志桶: obs-cts-{domainId} (LogArchive 账号,专存全组织操作审计日志——与 config-bucket 配置快照桶职责分离,各管各的)
|
|
72
|
+
Config 桶: config-bucket-{domainId} (LogArchive 账号)
|
|
73
|
+
LTS: lz-cts-logarchive (LogArchive 账号,控制台开通)
|
|
74
|
+
```
|
|
75
|
+
> LTS 开通是断点操作:breakpoint 引导用户控制台开通后 verify。
|
|
76
|
+
|
|
77
|
+
## 五、资源探测指引
|
|
78
|
+
|
|
79
|
+
> OBS 桶探测(实测 2026-11-12):
|
|
80
|
+
> ⚠️ **探测能力边界(实测结论,如实声明)**:
|
|
81
|
+
> - 管理账号凭据(openapi_request AK 签名)对 OBS 端点可用,返回 XML ✓
|
|
82
|
+
> - 但 LZ 合规桶建在 **LogArchive 成员账号**内,管理账号凭据看不到(权限隔离)
|
|
83
|
+
> - 成员账号 assumed(STS)签名对 OBS 端点**不适用**(实测:Authorization header invalid
|
|
84
|
+
> ——OBS 用 OBS 专用签名,非华为云 API STS 签名)
|
|
85
|
+
> - 桶名含 {domainId} 占位 → 引擎判 pending,不假匹配 ✓
|
|
86
|
+
> - **如实结论:本插件当前无法探测成员账号内的 OBS 桶**——obs_bucket 探测保持 pending,
|
|
87
|
+
> 存在性交由 IaC 执行阶段预检(Terraform 的 huaweicloud_obs_bucket 自带幂等创建)。不用假数据。
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"probes": [
|
|
92
|
+
{
|
|
93
|
+
"typeId": "obs_bucket",
|
|
94
|
+
"service": "OBS",
|
|
95
|
+
"hostMode": "regional",
|
|
96
|
+
"steps": [
|
|
97
|
+
{
|
|
98
|
+
"step": 1,
|
|
99
|
+
"action": "query-host",
|
|
100
|
+
"productshort": "OBS",
|
|
101
|
+
"via": "apiexplorerHost",
|
|
102
|
+
"output": "obsHost"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"step": 2,
|
|
106
|
+
"action": "query-host",
|
|
107
|
+
"productshort": "Organizations",
|
|
108
|
+
"via": "apiexplorerHost",
|
|
109
|
+
"output": "orgsHost"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"step": 3,
|
|
113
|
+
"action": "query-list",
|
|
114
|
+
"method": "GET",
|
|
115
|
+
"api": "ShowOrganization",
|
|
116
|
+
"path": "/v1/organizations",
|
|
117
|
+
"hostKey": "orgsHost",
|
|
118
|
+
"extract": "organization.management_account_id",
|
|
119
|
+
"output": "domainId",
|
|
120
|
+
"save": true,
|
|
121
|
+
"depends": [
|
|
122
|
+
"orgsHost"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"step": 4,
|
|
127
|
+
"action": "query-list",
|
|
128
|
+
"method": "GET",
|
|
129
|
+
"api": "ListAllBuckets",
|
|
130
|
+
"path": "/?Action=ListAllBuckets",
|
|
131
|
+
"hostKey": "obsHost",
|
|
132
|
+
"output": "buckets_xml",
|
|
133
|
+
"save": true,
|
|
134
|
+
"depends": [
|
|
135
|
+
"obsHost"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"match": {
|
|
140
|
+
"field": "buckets_xml",
|
|
141
|
+
"expect": "xml-contains-bucket-name",
|
|
142
|
+
"semField": "name",
|
|
143
|
+
"namePlaceholder": "{domainId}",
|
|
144
|
+
"placeholderSource": "domainId"
|
|
145
|
+
},
|
|
146
|
+
"existsStatus": "historical_exists",
|
|
147
|
+
"existsDetail": "OBS 桶({name})已存在,复用",
|
|
148
|
+
"pendingDetail": "OBS 桶({name})未创建,待建"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}```
|
|
152
|
+
|
|
153
|
+
> match 说明:`xml-contains-bucket-name` 为 OBS 专用匹配(XML 响应非 JSON):
|
|
154
|
+
> ListAllBuckets 返回 XML,按 <Bucket><Name>{name}</Name> 子串判定存在(name 含 {domainId} 占位时先解析再匹配,同 param-resolver replaceDomainIdPlaceholder 规则)。
|
|
155
|
+
> 引擎尚未实现该 expect(探测能力边界,如实声明)——实现前保守标 pending,不用假数据。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "ic-policies-v1",
|
|
3
|
+
"description": "IC 权限集策略推荐定义(唯一来源)。planner.ts getModuleRecommendedConfig / applyModuleDetailParams 读此文件。改策略 content 只改本文件。路径 B:用自定义策略(PutCustomPolicyToPermissionSet),AK/SK 可调,不依赖系统策略 role id 查询(避免 ListPermissions 需 token 的障碍)。",
|
|
4
|
+
"policies": [
|
|
5
|
+
{
|
|
6
|
+
"code": "lzReadOnlyCustomPolicy",
|
|
7
|
+
"name": "LZ-ReadOnly-Custom",
|
|
8
|
+
"description": "Landing Zone 只读权限(查/列表/展示类操作全放开)",
|
|
9
|
+
"content": {
|
|
10
|
+
"Version": "5.0",
|
|
11
|
+
"Statement": [
|
|
12
|
+
{
|
|
13
|
+
"Effect": "Allow",
|
|
14
|
+
"Action": ["*:get*", "*:list*", "*:show*", "*:query*", "*:describe*"],
|
|
15
|
+
"Resource": ["*"]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|