English fallback
This translation is missing; the canonical English reference follows.
fuzzy1337.kubernetes_inventory¶
This Experimental offline input profile imports one caller-owned Kubernetes
v1/List JSON evidence record into the existing Security Object Model. It
performs no live discovery, cluster API call, kubectl execution or policy update.
KubernetesInventoryLimits and ApplyVerifiedKubernetesList are the supported
surface. All other helpers remain Internal. The importer requires an existing
declared cluster ASSET, the current persisted model basis, an immutable owning
kubernetes-list/application/json record and exact source/workspace/scope/version/
time/reference attribution. Exact typed inputs, frozen contracts and fixed
byte/resource/collection ceilings are revalidated before owning reads. Selected
source shapes and the current model basis are validated before atomic application.
The caller owns canonical model CAS persistence.
Supported namespaces, workloads, Pods, container declarations, Services, Ingress, ServiceAccounts, nominal RBAC and NetworkPolicy metadata reuse existing canonical types. Resource identities include the declared cluster and literal exported UID. Same-export selector and owner-reference associations retain their configured meaning; missing references do not create resources. Labels are used transiently for selector matching and never projected. Arbitrary labels, annotations, environment, commands, credentials, User/Group names and CRI imageIDs remain outside normalized metadata. Unsupported item kinds, including Secret, are refused before resource normalization. Original evidence remains exact and is not redacted; callers must supply non-sensitive owned exports.
Direct OPEN advisory findings describe configured conditions and preserve operator triage on refresh. Effective permissions, ClusterRole aggregation, CNI enforcement and image digest domains remain unknown. Relations grant no authorization or physical reachability; existing reachability projections remain UNKNOWN without separate admitted proof. One in-memory transition supports exact no-op replay and workspace relocation without a model schema change. Live discovery and effective privilege validation remain separate work.
See Owned Kubernetes inventory and ADR 0074.
fuzzy1337.kubernetes_inventory
¶
Experimental owned Kubernetes List facts without live discovery or effective access claims.
KubernetesInventoryLimits
dataclass
¶
Bound original bytes, resources, containers, selected collections and associations.
Source code in fuzzy1337/kubernetes_inventory.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
__post_init__() -> None
¶
Reject relaxed or malformed ceilings even for explicitly caller-owned input.
Source code in fuzzy1337/kubernetes_inventory.py
85 86 87 88 89 90 91 | |
InventoryBatch
¶
Collect a bounded fully attributed candidate while existing stores retain ownership.
Source code in fuzzy1337/kubernetes_inventory.py
468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 | |
__init__(state: ModelState, provenance: ModelProvenance, cluster: str, limits: KubernetesInventoryLimits, records: list[dict[str, object]]) -> None
¶
Retain verified basis and transient exported-resource lookup coordinates.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
ModelState
|
Reconstructed canonical workspace snapshot. |
required |
provenance
|
ModelProvenance
|
Exact immutable acquisition attribution. |
required |
cluster
|
str
|
Validated existing declared cluster reference. |
required |
limits
|
KubernetesInventoryLimits
|
Revalidated profile ceilings. |
required |
records
|
list[dict[str, object]]
|
Complete supported source records. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 | |
Object(identity: ObjectIdentity, attributes: Mapping[str, object]) -> SecurityObject
¶
Retain only selected facts, leaving earlier source facts with canonical merge logic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
identity
|
ObjectIdentity
|
Existing canonical identity family. |
required |
attributes
|
Mapping[str, object]
|
Whitelisted source interpretation. |
required |
Returns:
| Type | Description |
|---|---|
SecurityObject
|
Validated immutable model entity. |
Source code in fuzzy1337/kubernetes_inventory.py
494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | |
Edge(source: str, target: str, association: str, attributes: Mapping[str, object] | None = None, *, kind: RelationKind = RelationKind.RELATED_TO) -> None
¶
Retain configuration associations without asserting authorization or reachability.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str
|
Existing or candidate source reference. |
required |
target
|
str
|
Existing or candidate target reference. |
required |
association
|
str
|
Fixed descriptive source meaning. |
required |
attributes
|
Mapping[str, object] | None
|
Selected additional association facts. |
None
|
kind
|
RelationKind
|
Existing canonical relation kind. |
RELATED_TO
|
Source code in fuzzy1337/kubernetes_inventory.py
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 | |
Finding(entity: SecurityObject, check: str, location: str, summary: str, severity: FindingSeverity) -> None
¶
Describe a direct configured condition without modifying effective access or triage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
SecurityObject
|
Validated selected subject. |
required |
check
|
str
|
Fixed configured-condition suffix. |
required |
location
|
str
|
Stable selected source location. |
required |
summary
|
str
|
Fixed advisory text without provider values. |
required |
severity
|
FindingSeverity
|
Explicit configured-condition severity. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
557 558 559 560 561 562 563 564 565 566 567 568 569 570 | |
BoundedListStore
¶
Bases: LocalEvidenceStore
Check the actual parsed owner reference before an eager immutable-blob read.
Source code in fuzzy1337/kubernetes_inventory.py
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 | |
__init__(root: Path, maximum: int) -> None
¶
Retain the explicit evidence root and revalidated original-byte budget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
Existing owned workspace evidence directory. |
required |
maximum
|
int
|
Inclusive original-byte ceiling. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 | |
Read(reference: EvidenceReference) -> bytes
¶
Validate actual owning role/media/size before unchanged integrity and storage checks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference
|
EvidenceReference
|
Actual parsed immutable owner reference. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
Exact original bytes verified by the existing evidence owner. |
Source code in fuzzy1337/kubernetes_inventory.py
1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 | |
Integer(value: object, maximum: int) -> int
¶
Require an exact positive integer within one fixed inclusive ceiling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Supplied quota or port, excluding boolean substitutions. |
required |
maximum
|
int
|
Inclusive maximum. |
required |
Returns:
| Type | Description |
|---|---|
int
|
Validated positive integer. |
Source code in fuzzy1337/kubernetes_inventory.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
Text(value: object, maximum: int = 4096, *, empty: bool = False) -> str
¶
Validate selected UTF-8 text without including rejected source values in errors.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Selected scalar source text, never environment or credential fields. |
required |
maximum
|
int
|
Inclusive UTF-8 byte ceiling. |
4096
|
empty
|
bool
|
Whether an explicit empty string is meaningful in this field. |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Original single-line text. |
Source code in fuzzy1337/kubernetes_inventory.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
Fields(value: object) -> dict[str, object]
¶
Require an actual decoded JSON object without coercing custom mappings.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Selected source object. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
String-keyed object. |
Source code in fuzzy1337/kubernetes_inventory.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
OptionalFields(value: object) -> dict[str, object]
¶
Preserve absent/null nested fields as unknown lookup entries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Selected object or unknown value. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Original fields or an empty lookup object. |
Source code in fuzzy1337/kubernetes_inventory.py
139 140 141 142 143 144 145 146 147 148 149 | |
Items(value: object, maximum: int) -> list[object]
¶
Require a bounded actual JSON array rather than arbitrary iteration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Selected collection. |
required |
maximum
|
int
|
Inclusive collection ceiling. |
required |
Returns:
| Type | Description |
|---|---|
list[object]
|
Original array. |
Source code in fuzzy1337/kubernetes_inventory.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |
Name(value: object, *, namespace: bool = False) -> str
¶
Validate literal resource or namespace names without interpreting path-like text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Explicit selected source name. |
required |
namespace
|
bool
|
Whether to require a DNS label instead of the bounded resource grammar. |
False
|
Returns:
| Type | Description |
|---|---|
str
|
Exact literal name. |
Source code in fuzzy1337/kubernetes_inventory.py
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
OptionalBool(value: object) -> bool | None
¶
Keep unknown security flags and refuse numeric/string boolean substitutions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Selected explicit boolean or absent/null. |
required |
Returns:
| Type | Description |
|---|---|
bool | None
|
Exact configured flag or None. |
Source code in fuzzy1337/kubernetes_inventory.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
UniqueFields(pairs: list[tuple[str, object]]) -> dict[str, object]
¶
Reject duplicate JSON keys even in ignored fields without echoing their values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pairs
|
list[tuple[str, object]]
|
Decoder-supplied ordered object entries. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object]
|
Unique-key mapping. |
Source code in fuzzy1337/kubernetes_inventory.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
RejectConstant(value: str) -> None
¶
Refuse non-standard numeric tokens without exposing source text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Decoder token outside standard JSON. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
Non-finite constants are outside the profile. |
Source code in fuzzy1337/kubernetes_inventory.py
225 226 227 228 229 230 231 232 233 234 235 | |
FiniteFloat(value: str) -> float
¶
Reject overflowed JSON numeric notation even in unselected provider fields.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
Original JSON numeric token. |
required |
Returns:
| Type | Description |
|---|---|
float
|
Finite number. |
Source code in fuzzy1337/kubernetes_inventory.py
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | |
Decode(raw: bytes, limits: KubernetesInventoryLimits) -> list[dict[str, object]]
¶
Admit a complete bounded supported List before normalizing any resource.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raw
|
bytes
|
Exact original bytes from the unchanged evidence owner. |
required |
limits
|
KubernetesInventoryLimits
|
Revalidated immutable source and collection ceilings. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, object]]
|
Supported original records sorted by UID. |
Source code in fuzzy1337/kubernetes_inventory.py
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | |
Labels(value: object, limits: KubernetesInventoryLimits) -> dict[str, str] | None
¶
Read bounded label data only for transient selector matching, never model projection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Explicit source labels or absent/null. |
required |
limits
|
KubernetesInventoryLimits
|
Selected collection ceiling. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, str] | None
|
Transient labels; missing data remains unknown. |
Source code in fuzzy1337/kubernetes_inventory.py
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 | |
Selector(value: object, limits: KubernetesInventoryLimits, *, service: bool = False) -> list[tuple[str, str, tuple[str, ...]]] | None
¶
Validate supported selector requirements without retaining arbitrary keys or values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
LabelSelector or Service selector map, or unknown value. |
required |
limits
|
KubernetesInventoryLimits
|
Selected collection ceiling. |
required |
service
|
bool
|
Whether the source is a Service's equality-only map. |
False
|
Returns:
| Type | Description |
|---|---|
list[tuple[str, str, tuple[str, ...]]] | None
|
Transient AND requirements, or unknown/no automatic selection for missing/empty Services. |
Source code in fuzzy1337/kubernetes_inventory.py
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 | |
Matches(requirements: list[tuple[str, str, tuple[str, ...]]], labels: dict[str, str]) -> bool
¶
Evaluate an explicit AND selector against known transient labels without defaults.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
requirements
|
list[tuple[str, str, tuple[str, ...]]]
|
Validated source selector requirements. |
required |
labels
|
dict[str, str]
|
Explicit known labels on one exported candidate Pod. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
Whether every supported requirement matches; NotIn also admits an absent key. |
Source code in fuzzy1337/kubernetes_inventory.py
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | |
PodSpec(record: dict[str, object]) -> dict[str, object] | None
¶
Select explicit Pod or workload-template specification without creating runtime Pods.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
dict[str, object]
|
Supported original resource. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, object] | None
|
Explicit selected specification or None when the template/spec is unknown. |
Source code in fuzzy1337/kubernetes_inventory.py
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 | |
Containers(batch: InventoryBatch, resource: SecurityObject, spec: dict[str, object]) -> None
¶
Normalize bounded declared containers, selected booleans and advisory conditions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Verified in-memory candidate. |
required |
resource
|
SecurityObject
|
Exported Pod or workload resource, never a synthesized runtime instance. |
required |
spec
|
dict[str, object]
|
Explicit selected Pod specification or workload template. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 | |
StringList(value: object, maximum: int, *, empty: bool = False) -> list[str]
¶
Validate bounded unique selected RBAC tokens with no environment/credential projection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Actual source array. |
required |
maximum
|
int
|
Inclusive entry ceiling. |
required |
empty
|
bool
|
Whether an explicit empty string is valid, as for the core API group. |
False
|
Returns:
| Type | Description |
|---|---|
list[str]
|
Sorted unique original tokens. |
Source code in fuzzy1337/kubernetes_inventory.py
650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 | |
Rules(record: dict[str, object], limits: KubernetesInventoryLimits) -> list[dict[str, object]]
¶
Retain supplied nominal resource/non-resource RBAC rules without permission evaluation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
record
|
dict[str, object]
|
Supported original Role or ClusterRole. |
required |
limits
|
KubernetesInventoryLimits
|
Selected collection ceiling. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, object]]
|
Sorted selected rules; the resource caller separately preserves absent rules as unknown. |
Source code in fuzzy1337/kubernetes_inventory.py
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 | |
ServicePorts(value: object, limits: KubernetesInventoryLimits) -> list[dict[str, object]] | None
¶
Preserve explicit configured ports without assuming listening endpoints or exposure.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Supplied Service port array or unknown value. |
required |
limits
|
KubernetesInventoryLimits
|
Selected collection ceiling. |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, object]] | None
|
Selected configured ports or None. |
Source code in fuzzy1337/kubernetes_inventory.py
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 | |
Resource(batch: InventoryBatch, record: dict[str, object]) -> None
¶
Normalize one supported exported resource's selected facts and direct advisory checks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Verified candidate owner. |
required |
record
|
dict[str, object]
|
Original supported UID-bearing resource. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 | |
SelectedPods(batch: InventoryBatch, record: dict[str, object], entity: SecurityObject) -> None
¶
Associate explicit same-export pod selector matches without copying labels or policy claims.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Verified candidate and original record lookup. |
required |
record
|
dict[str, object]
|
Supported workload, Service or NetworkPolicy. |
required |
entity
|
SecurityObject
|
Corresponding selected model resource. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 | |
Binding(batch: InventoryBatch, record: dict[str, object], entity: SecurityObject) -> None
¶
Retain nominal role and exported ServiceAccount subject links without permission grants.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Verified candidate and exported resource coordinates. |
required |
record
|
dict[str, object]
|
Supported original binding. |
required |
entity
|
SecurityObject
|
Corresponding binding object. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 | |
Ingress(batch: InventoryBatch, record: dict[str, object], entity: SecurityObject) -> None
¶
Associate only configured Service backends, retaining routing and TLS secrets outside model.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Verified candidate and exported service lookup. |
required |
record
|
dict[str, object]
|
Supported networking/v1 Ingress. |
required |
entity
|
SecurityObject
|
Corresponding resource. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 | |
Associations(batch: InventoryBatch, record: dict[str, object]) -> None
¶
Resolve selected exported references without inventing missing resources or live state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
batch
|
InventoryBatch
|
Fully normalized candidate and original export lookup. |
required |
record
|
dict[str, object]
|
Supported source resource. |
required |
Source code in fuzzy1337/kubernetes_inventory.py
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 | |
ApplyVerifiedKubernetesList(state: ModelState, record: EvidenceRecord, provenance: ModelProvenance, *, cluster_reference: str, workspace_root: Path, limits: KubernetesInventoryLimits = KubernetesInventoryLimits()) -> tuple[ModelState, ModelDelta]
¶
Apply bounded caller-owned List evidence through existing workspace/evidence/model owners.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
ModelState
|
Current canonical snapshot in the explicit existing workspace. |
required |
record
|
EvidenceRecord
|
Exact original kubernetes-list / application/json evidence manifest. |
required |
provenance
|
ModelProvenance
|
Matching source, scope, time, provider version and raw reference attribution. |
required |
cluster_reference
|
str
|
Existing declared ASSET cluster anchor with a literal cluster_id. |
required |
workspace_root
|
Path
|
Owned existing workspace, accessed only through canonical storage owners. |
required |
limits
|
KubernetesInventoryLimits
|
Positive fixed ceilings; excess never means partial success. |
KubernetesInventoryLimits()
|
Returns:
| Type | Description |
|---|---|
ModelState
|
Atomic validated in-memory transition and delta ready for caller-owned CAS persistence. |
ModelDelta
|
Exact replay is a no-op; refreshed detector evidence preserves existing finding triage. |
Raises:
| Type | Description |
|---|---|
ValueError
|
Contracts, original profile, cluster basis or selected facts are invalid. |
EvidenceError
|
Original owner manifest/blob is missing, corrupt or unsafe. |
OSError
|
Existing workspace metadata cannot be read. |
This experimental function performs only explicit owning reads. It executes no command, contacts no cluster and grants no authorization, enforcement or reachability claim.
Source code in fuzzy1337/kubernetes_inventory.py
1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 | |