ciso-assistant-api 2.3.13__tar.gz → 2.3.14__tar.gz
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.
- ciso_assistant_api-2.3.14/PKG-INFO +110 -0
- ciso_assistant_api-2.3.14/README.md +82 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/kg_ingest.py +13 -3
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/kg_media.py +4 -3
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/mcp_server.py +14 -1
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/__init__.py +1 -1
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/access_contracts.ttl +10 -9
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/certification.json +3 -3
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/ciso.ttl +20 -58
- ciso_assistant_api-2.3.14/ciso_assistant_api/ontology/shapes/connector.shacl.ttl +84 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-analytics-metrology-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-api-development/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-assets-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-auth-users-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-chat-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-compliance-audit/SKILL.md +19 -8
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-compliance-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-crq-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-ebios-rm-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-evidence-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-frameworks-libraries-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-governance-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-incident-evidence/SKILL.md +20 -9
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-incidents-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-integrations-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-operations/SKILL.md +20 -1
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-privacy-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-resilience-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-risk-management/SKILL.md +20 -9
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-risk-management-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-security-findings-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-settings-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-tasks-timeline-tools/SKILL.md +16 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-third-party-tools/SKILL.md +16 -0
- ciso_assistant_api-2.3.14/ciso_assistant_api.egg-info/PKG-INFO +110 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api.egg-info/SOURCES.txt +2 -1
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api.egg-info/requires.txt +3 -3
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/pyproject.toml +4 -4
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_auth.py +2 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_kg_ingest.py +9 -2
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_kg_media.py +9 -2
- ciso_assistant_api-2.3.14/tests/test_pack_extends_core.py +67 -0
- ciso_assistant_api-2.3.14/tests/test_scion_sdk_0_10_imports.py +58 -0
- ciso_assistant_api-2.3.13/PKG-INFO +0 -45
- ciso_assistant_api-2.3.13/README.md +0 -17
- ciso_assistant_api-2.3.13/ciso_assistant_api/ontology/shapes/connector.shacl.ttl +0 -204
- ciso_assistant_api-2.3.13/ciso_assistant_api.egg-info/PKG-INFO +0 -45
- ciso_assistant_api-2.3.13/scripts/security_sanitizer.py +0 -318
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/LICENSE +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/MANIFEST.in +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/__main__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/_operation_manifest.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_analytics_metrology.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_assets.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_auth_users.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_base.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_chat.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_compliance.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_crq.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_ebios_rm.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_evidence.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_frameworks_libraries.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_governance.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_incidents.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_integrations.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_privacy.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_resilience.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_risk_management.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_security_findings.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_settings.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_tasks_timeline.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api/api_client_third_party.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/api_client.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/auth.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/bundled_mcp.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ciso_assistant_models.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/connector_contracts.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/connector_sources.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/connectors/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/mcp/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/mcp/mcp_custom_api.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/mcp/mcp_kg_ingest.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/fixtures/records.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/mappings/source.yaml +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/migrations/manifest.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/ciso-assistant-compliance-librarian.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/ciso-assistant-grc-administrator.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/ciso-assistant-mcp-operator.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/ciso-assistant-privacy-officer.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/ciso-assistant-risk-quantification-analyst.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/prompts/grc_specialist.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/skills/ciso-assistant-operations/agents/openai.yaml +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/specs/ciso_assistant.json +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api.egg-info/dependency_links.txt +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api.egg-info/entry_points.txt +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api.egg-info/top_level.txt +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/scripts/generate_from_openapi.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/setup.cfg +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/__init__.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/conftest.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_access_contracts.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_ciso_assistant_brute_force_coverage.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_ciso_assistant_coverage.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_credential_refs.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_default_content_surfaces.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_fleet_name.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_mcp_server.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_publication_workflow.py +0 -0
- {ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/tests/test_startup.py +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ciso-assistant-api
|
|
3
|
+
Version: 2.3.14
|
|
4
|
+
Summary: CISO Assistant API + MCP Server — 100% API coverage
|
|
5
|
+
Author-email: Repository Maintainers <maintainers@knuckles.team>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Development Status :: 4 - Beta
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Requires-Python: <3.15,>=3.12
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1
|
|
16
|
+
Requires-Dist: python-dotenv>=1.2.4
|
|
17
|
+
Requires-Dist: requests>=2.34.2
|
|
18
|
+
Provides-Extra: mcp
|
|
19
|
+
Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1; extra == "mcp"
|
|
20
|
+
Provides-Extra: all
|
|
21
|
+
Requires-Dist: scion-sdk[mcp]<0.15,>=0.14.1; extra == "all"
|
|
22
|
+
Provides-Extra: test
|
|
23
|
+
Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
|
|
24
|
+
Requires-Dist: pytest>=9.1.1; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-asyncio>=1.4.0; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == "test"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# Ciso Assistant Api
|
|
30
|
+
## MCP
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+

|
|
36
|
+

|
|
37
|
+

|
|
38
|
+

|
|
39
|
+

|
|
40
|
+

|
|
41
|
+

|
|
42
|
+

|
|
43
|
+

|
|
44
|
+

|
|
45
|
+

|
|
46
|
+

|
|
47
|
+

|
|
48
|
+

|
|
49
|
+

|
|
50
|
+
|
|
51
|
+
> **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
|
|
52
|
+
> and A2A agent interfaces are maintained in the
|
|
53
|
+
> [official documentation](https://knuckles-team.github.io/ciso-assistant-api/).
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Overview
|
|
58
|
+
|
|
59
|
+
CISO Assistant API + MCP Server — 100% API coverage
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Installation
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
# MCP server with the full medulla engine contract
|
|
67
|
+
uv pip install "ciso-assistant-api[mcp]"
|
|
68
|
+
|
|
69
|
+
# Everything (development)
|
|
70
|
+
uv pip install "ciso-assistant-api[all]" # or: python -m pip install "ciso-assistant-api[all]"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Container images (`:mcp`)
|
|
74
|
+
|
|
75
|
+
One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
|
|
76
|
+
|
|
77
|
+
| Image tag | Build target | Contents | Entrypoint |
|
|
78
|
+
|-----------|--------------|----------|------------|
|
|
79
|
+
| `${CISO_ASSISTANT_MCP_IMAGE}` | `--target mcp` | `ciso-assistant-api[mcp]` — MCP + `medulla`, no agent runtime | `ciso-assistant-mcp` |
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
docker build --target mcp -t "${CISO_ASSISTANT_MCP_IMAGE}" docker/
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Documentation
|
|
88
|
+
|
|
89
|
+
The complete documentation is published as the
|
|
90
|
+
[official documentation site](https://knuckles-team.github.io/ciso-assistant-api/) and is
|
|
91
|
+
the recommended reference for installation, deployment, and day-to-day operation.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Repository Owners
|
|
96
|
+
|
|
97
|
+
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+

|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Contribute
|
|
105
|
+
|
|
106
|
+
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
|
|
107
|
+
- Format code using `ruff format .`
|
|
108
|
+
- Lint code using `ruff check .`
|
|
109
|
+
- Validate type-safety with `mypy .`
|
|
110
|
+
- Run test suites using `pytest`
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Ciso Assistant Api
|
|
2
|
+
## MCP
|
|
3
|
+
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
|
+

|
|
14
|
+

|
|
15
|
+

|
|
16
|
+

|
|
17
|
+

|
|
18
|
+

|
|
19
|
+

|
|
20
|
+

|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
> **Documentation** — Installation, deployment, and usage across the API, CLI, MCP,
|
|
24
|
+
> and A2A agent interfaces are maintained in the
|
|
25
|
+
> [official documentation](https://knuckles-team.github.io/ciso-assistant-api/).
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Overview
|
|
30
|
+
|
|
31
|
+
CISO Assistant API + MCP Server — 100% API coverage
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# MCP server with the full medulla engine contract
|
|
39
|
+
uv pip install "ciso-assistant-api[mcp]"
|
|
40
|
+
|
|
41
|
+
# Everything (development)
|
|
42
|
+
uv pip install "ciso-assistant-api[all]" # or: python -m pip install "ciso-assistant-api[all]"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Container images (`:mcp`)
|
|
46
|
+
|
|
47
|
+
One multi-stage `docker/Dockerfile` builds the MCP-only image (`--target mcp`):
|
|
48
|
+
|
|
49
|
+
| Image tag | Build target | Contents | Entrypoint |
|
|
50
|
+
|-----------|--------------|----------|------------|
|
|
51
|
+
| `${CISO_ASSISTANT_MCP_IMAGE}` | `--target mcp` | `ciso-assistant-api[mcp]` — MCP + `medulla`, no agent runtime | `ciso-assistant-mcp` |
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
docker build --target mcp -t "${CISO_ASSISTANT_MCP_IMAGE}" docker/
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Documentation
|
|
60
|
+
|
|
61
|
+
The complete documentation is published as the
|
|
62
|
+
[official documentation site](https://knuckles-team.github.io/ciso-assistant-api/) and is
|
|
63
|
+
the recommended reference for installation, deployment, and day-to-day operation.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Repository Owners
|
|
68
|
+
|
|
69
|
+
<img width="100%" height="180em" src="https://github-readme-stats.vercel.app/api?username=example&show_icons=true&hide_border=true&&count_private=true&include_all_commits=true" />
|
|
70
|
+
|
|
71
|
+

|
|
72
|
+

|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Contribute
|
|
77
|
+
|
|
78
|
+
Contributions are welcome! Please ensure code quality by running local checks before submitting pull requests:
|
|
79
|
+
- Format code using `ruff format .`
|
|
80
|
+
- Lint code using `ruff check .`
|
|
81
|
+
- Validate type-safety with `mypy .`
|
|
82
|
+
- Run test suites using `pytest`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Medulla ingestion for CISO Assistant GRC records (typed graph nodes).
|
|
2
2
|
|
|
3
3
|
CONCEPT:AU-KG.ingest.enterprise-source-extractor. This is the record-source twin of
|
|
4
4
|
media-downloader's blob ingestion: the package pushes its governance-risk-
|
|
@@ -19,14 +19,16 @@ reachable engine, or a malformed record). Node ids follow
|
|
|
19
19
|
|
|
20
20
|
from __future__ import annotations
|
|
21
21
|
|
|
22
|
+
import hashlib
|
|
22
23
|
import logging
|
|
24
|
+
from pathlib import Path
|
|
23
25
|
from typing import Any
|
|
24
26
|
|
|
25
27
|
from scion_sdk.ingest import (
|
|
26
28
|
ChangeSet,
|
|
29
|
+
ContractSource,
|
|
27
30
|
Document,
|
|
28
31
|
Entity,
|
|
29
|
-
IngestBinding,
|
|
30
32
|
IngestError,
|
|
31
33
|
KnowledgeIngest,
|
|
32
34
|
Relationship,
|
|
@@ -36,7 +38,15 @@ from scion_sdk.privacy import sanitize_for_persistence
|
|
|
36
38
|
|
|
37
39
|
logger = logging.getLogger("ciso_assistant_api.kg")
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
#: The local declaration the engine must have accepted: the connector's mappings.
|
|
42
|
+
_DECLARATION = Path(__file__).parent / "ontology" / "mappings" / "source.yaml"
|
|
43
|
+
|
|
44
|
+
#: The contract every binding of this connector runs under; its digest is the
|
|
45
|
+
#: SHA-256 of the shipped mapping declaration, so a changed declaration is
|
|
46
|
+
#: refused (``contract_not_accepted``) until the engine accepts the new one.
|
|
47
|
+
CONTRACT = ContractSource(digest=hashlib.sha256(_DECLARATION.read_bytes()).hexdigest())
|
|
48
|
+
|
|
49
|
+
_BINDING = CONTRACT.bind("ciso-assistant-mcp", "ciso")
|
|
40
50
|
|
|
41
51
|
_ENTITY_RESERVED_KEYS = frozenset({"id", "node_type"})
|
|
42
52
|
_RELATIONSHIP_RESERVED_KEYS = frozenset({"source", "target", "relationship"})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""Medulla blob ingestion for CISO Assistant evidence attachments.
|
|
2
2
|
|
|
3
3
|
CONCEPT:AU-KG.ingest.list-durable-media. Evidence in a GRC program is only as good as
|
|
4
4
|
its attached artifact (a scan, a signed policy PDF, an exported report). When a live
|
|
@@ -21,16 +21,17 @@ from typing import Any
|
|
|
21
21
|
|
|
22
22
|
from scion_sdk.ingest import (
|
|
23
23
|
ChangeSet,
|
|
24
|
-
IngestBinding,
|
|
25
24
|
IngestError,
|
|
26
25
|
KnowledgeIngest,
|
|
27
26
|
MediaAsset,
|
|
28
27
|
current_ingest,
|
|
29
28
|
)
|
|
30
29
|
|
|
30
|
+
from ciso_assistant_api.kg_ingest import CONTRACT
|
|
31
|
+
|
|
31
32
|
logger = logging.getLogger("ciso_assistant_api.kg_media")
|
|
32
33
|
|
|
33
|
-
_BINDING =
|
|
34
|
+
_BINDING = CONTRACT.bind("ciso-assistant-mcp", "ciso")
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
async def ingest_evidence_attachment(
|
|
@@ -17,6 +17,19 @@ from ciso_assistant_api.auth import get_client
|
|
|
17
17
|
|
|
18
18
|
__version__ = connector_version("ciso_assistant_api")
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
def _owner_approval(operation: dict[str, Any]) -> dict[str, Any]:
|
|
22
|
+
"""Flag a non-read operation whose name holds the ``merge`` token.
|
|
23
|
+
|
|
24
|
+
scion-sdk refuses to serve such an operation unless its manifest entry sets
|
|
25
|
+
``owner_approval_required`` (SCION-SCM-R003.3).
|
|
26
|
+
"""
|
|
27
|
+
name = str(operation.get("method") or operation.get("operation_id") or "")
|
|
28
|
+
if operation.get("http") != "GET" and "merge" in name.split("_"):
|
|
29
|
+
return {**operation, "owner_approval_required": True}
|
|
30
|
+
return operation
|
|
31
|
+
|
|
32
|
+
|
|
20
33
|
# Redirect logging to stderr to prevent MCP stdout corruption
|
|
21
34
|
logger = get_logger(name="ciso_assistant_mcp")
|
|
22
35
|
logger.setLevel(logging.INFO)
|
|
@@ -34,7 +47,7 @@ def register_server_surface(mcp: FastMCP):
|
|
|
34
47
|
get_client=get_client,
|
|
35
48
|
service="ciso-assistant-api",
|
|
36
49
|
tool_registry=TOOL_REGISTRY,
|
|
37
|
-
manifest=OPERATIONS,
|
|
50
|
+
manifest=[_owner_approval(operation) for operation in OPERATIONS],
|
|
38
51
|
)
|
|
39
52
|
|
|
40
53
|
# Native KG ingestion: privacy-sanitized typed-node persistence. Raw evidence
|
{ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/__init__.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Ciso Assistant ontology contribution (CONCEPT:AU-KG.ontology.federation-provider-leg).
|
|
2
2
|
|
|
3
3
|
Data-only subpackage: it carries ``ciso.ttl`` (the ``owl:Ontology``
|
|
4
|
-
``
|
|
4
|
+
``https://knuckles-team.github.io/ontology/connector/ciso`` module) which the scion-sdk hub federates in via
|
|
5
5
|
the ``scion_sdk.ontology_providers`` entry-point. It holds no business logic
|
|
6
6
|
and no heavy imports so the hub can resolve it cheaply.
|
|
7
7
|
"""
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
@prefix
|
|
2
|
-
@prefix
|
|
3
|
-
@prefix
|
|
1
|
+
@prefix core: <https://knuckles-team.github.io/ontology/core#> .
|
|
2
|
+
@prefix ac: <https://knuckles-team.github.io/ontology/access#> .
|
|
3
|
+
@prefix : <https://knuckles-team.github.io/ontology/connector/ciso-assistant#> .
|
|
4
|
+
@prefix ca: <https://knuckles-team.github.io/ontology/connector/ciso-assistant/access#> .
|
|
4
5
|
|
|
5
6
|
ca:appliedControlAccess a ac:AccessContract ;
|
|
6
|
-
ac:classIri
|
|
7
|
+
ac:classIri :Control ;
|
|
7
8
|
ac:sourceId "ciso-assistant-api" ;
|
|
8
9
|
ac:entity "applied_control" ;
|
|
9
10
|
ac:keyField "id" ;
|
|
@@ -17,12 +18,12 @@ ca:appliedControlAccess a ac:AccessContract ;
|
|
|
17
18
|
ac:costHint "low" .
|
|
18
19
|
|
|
19
20
|
ca:appliedControlStatus a ac:PropertyBinding ;
|
|
20
|
-
ac:contract ca:appliedControlAccess ; ac:property
|
|
21
|
+
ac:contract ca:appliedControlAccess ; ac:property :controlStatus ; ac:field "status" .
|
|
21
22
|
ca:appliedControlRiskScenarioId a ac:PropertyBinding ;
|
|
22
|
-
ac:contract ca:appliedControlAccess ; ac:property
|
|
23
|
+
ac:contract ca:appliedControlAccess ; ac:property :riskScenarioId ; ac:field "risk_scenarios" .
|
|
23
24
|
|
|
24
25
|
ca:riskScenarioAccess a ac:AccessContract ;
|
|
25
|
-
ac:classIri
|
|
26
|
+
ac:classIri core:RiskScenario ;
|
|
26
27
|
ac:sourceId "ciso-assistant-api" ;
|
|
27
28
|
ac:entity "risk_scenario" ;
|
|
28
29
|
ac:keyField "id" ;
|
|
@@ -36,6 +37,6 @@ ca:riskScenarioAccess a ac:AccessContract ;
|
|
|
36
37
|
ac:costHint "low" .
|
|
37
38
|
|
|
38
39
|
ca:riskScenarioServiceRef a ac:PropertyBinding ;
|
|
39
|
-
ac:contract ca:riskScenarioAccess ; ac:property
|
|
40
|
+
ac:contract ca:riskScenarioAccess ; ac:property :serviceRef ; ac:field "assets" .
|
|
40
41
|
ca:riskScenarioName a ac:PropertyBinding ;
|
|
41
|
-
ac:contract ca:riskScenarioAccess ; ac:property
|
|
42
|
+
ac:contract ca:riskScenarioAccess ; ac:property :name ; ac:field "name" .
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_version": "graphos.io/v1",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"ciso_assistant_api/ontology/ciso.ttl": "
|
|
4
|
+
"ciso_assistant_api/ontology/ciso.ttl": "a8efd0cb38c8a458c64d96a976a18b72cf8bdf37d4d7b116d8f4e09b94c907b3",
|
|
5
5
|
"ciso_assistant_api/ontology/fixtures/records.json": "1a0ec217364be9ee03e042a6f91e0b8b746872fe49dc5a6529f1d96739981a95",
|
|
6
6
|
"ciso_assistant_api/ontology/mappings/source.yaml": "1f2315d0dabc6d92f5a593c24c0ba60cea5a6b1337afbacf82fe57c6d770f361",
|
|
7
7
|
"ciso_assistant_api/ontology/migrations/manifest.json": "c5d5d30b62a340e13e4b165154988f3f316224c1eb8676351cbc3c9f13498787",
|
|
8
|
-
"ciso_assistant_api/ontology/shapes/connector.shacl.ttl": "
|
|
8
|
+
"ciso_assistant_api/ontology/shapes/connector.shacl.ttl": "629afed1fde1dd60fbc28122a18123c9033039160f145f958ad932a502ac0acf"
|
|
9
9
|
},
|
|
10
10
|
"checks": {
|
|
11
11
|
"declared_tool_schema": "passed",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"signer": "UNSIGNED-PREVIEW",
|
|
30
30
|
"signing_public_key": "",
|
|
31
31
|
"status": "source-validated",
|
|
32
|
-
"validated_at": "2026-
|
|
32
|
+
"validated_at": "2026-12-03T21:53:49Z"
|
|
33
33
|
}
|
{ciso_assistant_api-2.3.13 → ciso_assistant_api-2.3.14}/ciso_assistant_api/ontology/ciso.ttl
RENAMED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@prefix cat: <https://knuckles-team.github.io/ontology/catalog#> .
|
|
1
2
|
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
|
|
3
|
+
@prefix core: <https://knuckles-team.github.io/ontology/core#> .
|
|
2
4
|
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
3
5
|
@prefix dc: <http://purl.org/dc/terms/> .
|
|
4
|
-
@prefix : <
|
|
6
|
+
@prefix : <https://knuckles-team.github.io/ontology/connector/ciso-assistant#> .
|
|
5
7
|
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
6
8
|
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
7
9
|
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
@@ -18,10 +20,6 @@
|
|
|
18
20
|
rdfs:label "Risk Assessment" ;
|
|
19
21
|
rdfs:comment "A scoped risk study evaluating scenarios against a risk matrix (api_risk_assessments)." .
|
|
20
22
|
|
|
21
|
-
:RiskScenario a owl:Class ;
|
|
22
|
-
rdfs:label "Risk Scenario" ;
|
|
23
|
-
rdfs:comment "A single risk within an assessment, scored inherent/current/residual (api_risk_scenarios)." .
|
|
24
|
-
|
|
25
23
|
:Control a owl:Class ;
|
|
26
24
|
rdfs:label "Applied Control" ;
|
|
27
25
|
rdfs:comment "A security measure applied to treat risk or satisfy a requirement (api_applied_controls)." .
|
|
@@ -30,71 +28,45 @@
|
|
|
30
28
|
rdfs:label "Compliance Assessment" ;
|
|
31
29
|
rdfs:comment "An assessment (audit) of compliance against a framework, with progress and outcome (api_compliance_assessments)." .
|
|
32
30
|
|
|
33
|
-
:Framework a owl:Class .
|
|
34
|
-
|
|
35
|
-
|
|
36
31
|
:Threat a owl:Class ;
|
|
37
32
|
rdfs:label "Threat" ;
|
|
38
33
|
rdfs:comment "A catalogued threat that can be realized against assets (api_threats)." .
|
|
39
34
|
|
|
40
|
-
:Vulnerability a owl:Class .
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
:Incident a owl:Class .
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
:Asset a owl:Class ;
|
|
47
|
-
rdfs:label "Asset" ;
|
|
48
|
-
rdfs:comment "A primary or supporting asset under protection (api_assets)." .
|
|
49
|
-
|
|
50
|
-
:Evidence a owl:Class .
|
|
51
|
-
|
|
52
|
-
|
|
53
35
|
# --- links (owl:ObjectProperty) ---
|
|
54
36
|
|
|
55
37
|
:includesScenario a owl:ObjectProperty ;
|
|
56
38
|
rdfs:label "includes scenario" ;
|
|
57
39
|
rdfs:comment "Links a RiskAssessment to a RiskScenario it contains." ;
|
|
58
40
|
rdfs:domain :RiskAssessment ;
|
|
59
|
-
rdfs:range :RiskScenario .
|
|
60
|
-
|
|
61
|
-
:mitigatedBy a owl:ObjectProperty ;
|
|
62
|
-
rdfs:label "mitigated by" ;
|
|
63
|
-
rdfs:comment "Links a RiskScenario or Vulnerability to a Control that treats it." ;
|
|
64
|
-
rdfs:range :Control .
|
|
41
|
+
rdfs:range core:RiskScenario .
|
|
65
42
|
|
|
66
43
|
:hasThreat a owl:ObjectProperty ;
|
|
67
44
|
rdfs:label "has threat" ;
|
|
68
45
|
rdfs:comment "Links a RiskScenario to a Threat it realizes." ;
|
|
69
|
-
rdfs:domain :RiskScenario ;
|
|
46
|
+
rdfs:domain core:RiskScenario ;
|
|
70
47
|
rdfs:range :Threat .
|
|
71
48
|
|
|
72
49
|
:affectsAsset a owl:ObjectProperty ;
|
|
73
50
|
rdfs:label "affects asset" ;
|
|
74
51
|
rdfs:comment "Links a RiskScenario, Incident, or Vulnerability to an Asset it impacts." ;
|
|
75
|
-
rdfs:range :Asset .
|
|
52
|
+
rdfs:range cat:Asset .
|
|
76
53
|
|
|
77
54
|
:assessesFramework a owl:ObjectProperty ;
|
|
78
55
|
rdfs:label "assesses framework" ;
|
|
79
56
|
rdfs:comment "Links a compliance Audit to the Framework it is scored against." ;
|
|
80
57
|
rdfs:domain :Audit ;
|
|
81
|
-
rdfs:range :Framework .
|
|
58
|
+
rdfs:range core:Framework .
|
|
82
59
|
|
|
83
60
|
:evidencedBy a owl:ObjectProperty ;
|
|
84
61
|
rdfs:label "evidenced by" ;
|
|
85
62
|
rdfs:comment "Links a Control or Audit to an Evidence record substantiating it." ;
|
|
86
|
-
rdfs:range :Evidence .
|
|
63
|
+
rdfs:range core:Evidence .
|
|
87
64
|
|
|
88
65
|
:hasAttachment a owl:ObjectProperty ;
|
|
89
66
|
rdfs:label "has attachment" ;
|
|
90
67
|
rdfs:comment "Links an Evidence record to the stored :Blob / :MediaAsset holding its file bytes." ;
|
|
91
|
-
rdfs:domain :Evidence ;
|
|
92
|
-
rdfs:range :
|
|
93
|
-
|
|
94
|
-
:ownedBy a owl:ObjectProperty ;
|
|
95
|
-
rdfs:label "owned by" ;
|
|
96
|
-
rdfs:comment "Links a Control, RiskScenario, Asset, or Evidence to the Person accountable for it." ;
|
|
97
|
-
rdfs:range :Person .
|
|
68
|
+
rdfs:domain core:Evidence ;
|
|
69
|
+
rdfs:range core:MediaFile .
|
|
98
70
|
|
|
99
71
|
# --- fields (owl:DatatypeProperty) ---
|
|
100
72
|
|
|
@@ -106,19 +78,19 @@
|
|
|
106
78
|
:riskTreatment a owl:DatatypeProperty ;
|
|
107
79
|
rdfs:label "risk treatment" ;
|
|
108
80
|
rdfs:comment "Treatment decision for a RiskScenario (open, mitigate, accept, avoid, transfer)." ;
|
|
109
|
-
rdfs:domain :RiskScenario ;
|
|
81
|
+
rdfs:domain core:RiskScenario ;
|
|
110
82
|
rdfs:range xsd:string .
|
|
111
83
|
|
|
112
84
|
:residualLevel a owl:DatatypeProperty ;
|
|
113
85
|
rdfs:label "residual level" ;
|
|
114
86
|
rdfs:comment "Residual risk level of a RiskScenario after applied controls." ;
|
|
115
|
-
rdfs:domain :RiskScenario ;
|
|
87
|
+
rdfs:domain core:RiskScenario ;
|
|
116
88
|
rdfs:range xsd:string .
|
|
117
89
|
|
|
118
90
|
:currentLevel a owl:DatatypeProperty ;
|
|
119
91
|
rdfs:label "current level" ;
|
|
120
92
|
rdfs:comment "Current risk level of a RiskScenario given existing controls." ;
|
|
121
|
-
rdfs:domain :RiskScenario ;
|
|
93
|
+
rdfs:domain core:RiskScenario ;
|
|
122
94
|
rdfs:range xsd:string .
|
|
123
95
|
|
|
124
96
|
:riskScenarioId a owl:DatatypeProperty ;
|
|
@@ -130,7 +102,7 @@
|
|
|
130
102
|
:serviceRef a owl:DatatypeProperty ;
|
|
131
103
|
rdfs:label "service reference" ;
|
|
132
104
|
rdfs:comment "Reference to the service or asset a RiskScenario concerns, as listed on the risk scenario." ;
|
|
133
|
-
rdfs:domain :RiskScenario ;
|
|
105
|
+
rdfs:domain core:RiskScenario ;
|
|
134
106
|
rdfs:range xsd:string .
|
|
135
107
|
|
|
136
108
|
:controlStatus a owl:DatatypeProperty ;
|
|
@@ -143,23 +115,13 @@
|
|
|
143
115
|
rdfs:comment "Priority ranking of a Control (P1-P4)." ;
|
|
144
116
|
rdfs:range xsd:string .
|
|
145
117
|
|
|
146
|
-
:severity a owl:DatatypeProperty ;
|
|
147
|
-
rdfs:label "severity" ;
|
|
148
|
-
rdfs:comment "Severity of an Incident or Vulnerability." ;
|
|
149
|
-
rdfs:range xsd:string .
|
|
150
|
-
|
|
151
118
|
:complianceProgress a owl:DatatypeProperty ;
|
|
152
119
|
rdfs:label "compliance progress" ;
|
|
153
120
|
rdfs:comment "Percent completion of a compliance Audit." ;
|
|
154
121
|
rdfs:domain :Audit ;
|
|
155
122
|
rdfs:range xsd:integer .
|
|
156
123
|
|
|
157
|
-
|
|
158
|
-
rdfs:label "compliance status" ;
|
|
159
|
-
rdfs:comment "Workflow status of an Audit (planned, in_progress, in_review, done, deprecated)." ;
|
|
160
|
-
rdfs:range xsd:string .
|
|
161
|
-
|
|
162
|
-
<http://knuckles.team/kg/ciso> a owl:Ontology ;
|
|
124
|
+
<https://knuckles-team.github.io/ontology/connector/ciso> a owl:Ontology ;
|
|
163
125
|
rdfs:label "CISO Assistant GRC Ontology" ;
|
|
164
126
|
rdfs:comment """CISO Assistant governance-risk-compliance model — risk assessments and
|
|
165
127
|
scenarios, applied controls, compliance audits and frameworks, threats,
|
|
@@ -168,8 +130,8 @@
|
|
|
168
130
|
hub. Reuses the shared :Document / :Blob / :MediaAsset / :Person classes.""" .
|
|
169
131
|
|
|
170
132
|
# ontology-codemod R4
|
|
171
|
-
|
|
172
|
-
<
|
|
173
|
-
<
|
|
174
|
-
<
|
|
175
|
-
<
|
|
133
|
+
|
|
134
|
+
<https://knuckles-team.github.io/ontology/connector/ciso-assistant#RiskAssessment> rdfs:subClassOf <https://knuckles-team.github.io/ontology/core#Assessment> .
|
|
135
|
+
<https://knuckles-team.github.io/ontology/connector/ciso-assistant#Audit> rdfs:subClassOf <https://knuckles-team.github.io/ontology/core#Assessment> .
|
|
136
|
+
<https://knuckles-team.github.io/ontology/connector/ciso-assistant#Control> rdfs:subClassOf <https://knuckles-team.github.io/ontology/core#Concept> .
|
|
137
|
+
<https://knuckles-team.github.io/ontology/connector/ciso-assistant#Threat> rdfs:subClassOf <https://knuckles-team.github.io/ontology/core#Concept> .
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@prefix : <https://knuckles-team.github.io/ontology/core#> .
|
|
2
|
+
@prefix shape: <https://knuckles-team.github.io/ontology/connector/ciso-shapes#> .
|
|
3
|
+
@prefix sh: <http://www.w3.org/ns/shacl#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
|
|
6
|
+
shape:AuditGovernanceShape a sh:NodeShape ;
|
|
7
|
+
sh:targetClass :Audit ;
|
|
8
|
+
sh:closed false ;
|
|
9
|
+
sh:property [
|
|
10
|
+
sh:path :sourceRecordRef ;
|
|
11
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
12
|
+
] ;
|
|
13
|
+
sh:property [
|
|
14
|
+
sh:path :tenantReference ;
|
|
15
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
16
|
+
] ;
|
|
17
|
+
sh:property [
|
|
18
|
+
sh:path :accessPolicyReference ;
|
|
19
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
20
|
+
] ;
|
|
21
|
+
sh:property [
|
|
22
|
+
sh:path :provenanceReference ;
|
|
23
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
24
|
+
] .
|
|
25
|
+
|
|
26
|
+
shape:ControlGovernanceShape a sh:NodeShape ;
|
|
27
|
+
sh:targetClass :Control ;
|
|
28
|
+
sh:closed false ;
|
|
29
|
+
sh:property [
|
|
30
|
+
sh:path :sourceRecordRef ;
|
|
31
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
32
|
+
] ;
|
|
33
|
+
sh:property [
|
|
34
|
+
sh:path :tenantReference ;
|
|
35
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
36
|
+
] ;
|
|
37
|
+
sh:property [
|
|
38
|
+
sh:path :accessPolicyReference ;
|
|
39
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
40
|
+
] ;
|
|
41
|
+
sh:property [
|
|
42
|
+
sh:path :provenanceReference ;
|
|
43
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
44
|
+
] .
|
|
45
|
+
|
|
46
|
+
shape:RiskAssessmentGovernanceShape a sh:NodeShape ;
|
|
47
|
+
sh:targetClass :RiskAssessment ;
|
|
48
|
+
sh:closed false ;
|
|
49
|
+
sh:property [
|
|
50
|
+
sh:path :sourceRecordRef ;
|
|
51
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
52
|
+
] ;
|
|
53
|
+
sh:property [
|
|
54
|
+
sh:path :tenantReference ;
|
|
55
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
56
|
+
] ;
|
|
57
|
+
sh:property [
|
|
58
|
+
sh:path :accessPolicyReference ;
|
|
59
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
60
|
+
] ;
|
|
61
|
+
sh:property [
|
|
62
|
+
sh:path :provenanceReference ;
|
|
63
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
64
|
+
] .
|
|
65
|
+
|
|
66
|
+
shape:ThreatGovernanceShape a sh:NodeShape ;
|
|
67
|
+
sh:targetClass :Threat ;
|
|
68
|
+
sh:closed false ;
|
|
69
|
+
sh:property [
|
|
70
|
+
sh:path :sourceRecordRef ;
|
|
71
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
72
|
+
] ;
|
|
73
|
+
sh:property [
|
|
74
|
+
sh:path :tenantReference ;
|
|
75
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
76
|
+
] ;
|
|
77
|
+
sh:property [
|
|
78
|
+
sh:path :accessPolicyReference ;
|
|
79
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
80
|
+
] ;
|
|
81
|
+
sh:property [
|
|
82
|
+
sh:path :provenanceReference ;
|
|
83
|
+
sh:minCount 1 ; sh:maxCount 1 ; sh:datatype xsd:string
|
|
84
|
+
] .
|
|
@@ -18,6 +18,22 @@ Each tool maps to exactly one API operation and takes that operation's parameter
|
|
|
18
18
|
- Never print credentials, tokens or attachment bytes.
|
|
19
19
|
- Delete tools (names ending in `_destroy`) need explicit approval and a stated reason.
|
|
20
20
|
|
|
21
|
+
## Steps
|
|
22
|
+
|
|
23
|
+
1. List the candidate records with `ciso_assistant_api_metrology_builtin_metric_samples_list`, passing the narrowest filters and a bounded limit. Verify the response holds records from the intended folder or perimeter before going further.
|
|
24
|
+
2. Read the exact record with `ciso_assistant_api_metrology_builtin_metric_samples_retrieve` using an id taken from the list. Verify the returned id equals the id you intend to cite.
|
|
25
|
+
3. After operator approval of the stated change, call `ciso_assistant_api_metrology_builtin_metric_samples_create` once with the approved parameters. Verify the response echoes the submitted fields and returns a new record id.
|
|
26
|
+
4. Remove a record only with `ciso_assistant_api_metrology_builtin_metric_samples_destroy`, after explicit approval and a stated reason. Verify with `ciso_assistant_api_metrology_builtin_metric_samples_retrieve` that the record is no longer returned.
|
|
27
|
+
|
|
28
|
+
## Failure recovery
|
|
29
|
+
|
|
30
|
+
| Failure | Cause | Recovery |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| Tool returns an authentication or permission error | Connector credentials are missing, expired or lack rights on this area | Stop and report the error to the operator without printing any token; resume with `ciso_assistant_api_metrology_builtin_metric_samples_list` after the operator confirms refreshed credentials. |
|
|
33
|
+
| List result is empty | Filters or folder scope exclude the records | Call `ciso_assistant_api_metrology_builtin_metric_samples_list` with the filters removed, then narrow again using the folder id of a record you can already see. |
|
|
34
|
+
| Retrieve reports not found | The id is wrong or stale | Call `ciso_assistant_api_metrology_builtin_metric_samples_list` again and copy the id from the fresh result before calling `ciso_assistant_api_metrology_builtin_metric_samples_retrieve`. |
|
|
35
|
+
| Delete is refused or approval is missing | No explicit approval or reason was recorded | Do not call `ciso_assistant_api_metrology_builtin_metric_samples_destroy`; ask the operator for approval with a reason, then call `ciso_assistant_api_metrology_builtin_metric_samples_destroy` with that approval. |
|
|
36
|
+
|
|
21
37
|
## Agg Data
|
|
22
38
|
- `ciso_assistant_api_agg_data_retrieve`
|
|
23
39
|
|