@radicaltools/mcp 0.6.1 → 0.6.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/README.md +1 -1
- package/dist/{chunk-H2EUPF2D.js → chunk-DQYB4GAU.js} +13 -6
- package/dist/{chunk-CKZSHFE5.js → chunk-U5QA6HBS.js} +1 -1
- package/dist/{dist-3IBN4PU7.js → dist-MPDDP2CV.js} +2 -2
- package/dist/{elkLayout-7MVDIEFO.js → elkLayout-SUGCAZZ5.js} +2 -2
- package/dist/hub-catalogue/concern/concern-accessibility.radical +85 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-errors.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +121 -3
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +78 -1
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +78 -1
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +83 -7
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +77 -1
- package/dist/hub-catalogue/concern/concern-authentication.radical +178 -8
- package/dist/hub-catalogue/concern/concern-authorization.radical +133 -7
- package/dist/hub-catalogue/concern/concern-availability.radical +156 -6
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +71 -8
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +136 -6
- package/dist/hub-catalogue/concern/concern-caching.radical +73 -1
- package/dist/hub-catalogue/concern/concern-capacity.radical +124 -5
- package/dist/hub-catalogue/concern/concern-ci-cd-pipeline.radical +154 -15
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +131 -13
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +116 -7
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +174 -13
- package/dist/hub-catalogue/concern/concern-code-style.radical +148 -16
- package/dist/hub-catalogue/concern/concern-communication-style.radical +94 -7
- package/dist/hub-catalogue/concern/concern-data-classification.radical +77 -1
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +87 -5
- package/dist/hub-catalogue/concern/concern-data-store.radical +87 -5
- package/dist/hub-catalogue/concern/concern-decomposition.radical +78 -1
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +150 -11
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +130 -5
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +127 -10
- package/dist/hub-catalogue/concern/concern-deployment.radical +113 -9
- package/dist/hub-catalogue/concern/concern-encryption.radical +146 -5
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +118 -12
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +69 -1
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +148 -9
- package/dist/hub-catalogue/concern/concern-incident-management.radical +122 -1
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +54 -1
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +110 -5
- package/dist/hub-catalogue/concern/concern-messaging.radical +89 -2
- package/dist/hub-catalogue/concern/concern-mobile-performance.radical +67 -1
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +92 -5
- package/dist/hub-catalogue/concern/concern-observability.radical +105 -1
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +140 -5
- package/dist/hub-catalogue/concern/concern-personal-data.radical +206 -7
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +104 -12
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +110 -1
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +99 -7
- package/dist/hub-catalogue/concern/concern-retention.radical +130 -9
- package/dist/hub-catalogue/concern/concern-secrets.radical +196 -12
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +122 -1
- package/dist/hub-catalogue/concern/concern-secure-development.radical +118 -1
- package/dist/hub-catalogue/concern/concern-security-detection.radical +124 -1
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +116 -1
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +162 -19
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +152 -18
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +111 -1
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +83 -7
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +120 -1
- package/dist/hub-catalogue/concern/concern-usability.radical +84 -5
- package/dist/index.js +1862 -1066
- package/dist/{pdfjs-DDCLOUBH.js → pdfjs-PK44HJZP.js} +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,109 @@
|
|
|
18
18
|
"trigger": "LIST RELATIONS WHERE (source.type = \"person\" OR source.external = true) AND target.external != true AND (target.type = \"system\" OR target.type = \"container\" OR target.type = \"webapp\" OR target.type = \"component\")",
|
|
19
19
|
"applyTo": "target",
|
|
20
20
|
"why": "people or external systems reach these elements, so who is calling has to be decided.",
|
|
21
|
-
"group": "security"
|
|
21
|
+
"group": "security",
|
|
22
|
+
"scope": {
|
|
23
|
+
"group": "security",
|
|
24
|
+
"questions": [
|
|
25
|
+
{
|
|
26
|
+
"key": "EXPOSURE",
|
|
27
|
+
"label": "Who can reach it?",
|
|
28
|
+
"default": "customers",
|
|
29
|
+
"hint": "The more strangers can reach it, the more attacks it meets that need no inside knowledge (Microsoft SDL asks this first).",
|
|
30
|
+
"options": [
|
|
31
|
+
{
|
|
32
|
+
"value": "staff",
|
|
33
|
+
"label": "only our own staff",
|
|
34
|
+
"description": "An internal system: everyone who reaches it works for the organisation that runs it, from its network or with its accounts."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"value": "customers",
|
|
38
|
+
"label": "our customers and staff",
|
|
39
|
+
"description": "People who come to us for a service (to book, order, pay, look something up) and our staff; there is no open sign-up, community or API for strangers."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "public",
|
|
43
|
+
"label": "anyone, at scale",
|
|
44
|
+
"description": "Open sign-up, a public API, content anyone can post, or so many users that bots and automated abuse come with them."
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "DATA",
|
|
50
|
+
"label": "What would a leak of its data harm?",
|
|
51
|
+
"default": "ordinary",
|
|
52
|
+
"hint": "The most sensitive data it keeps decides (FIPS 199 confidentiality; GDPR Art. 9 for special categories).",
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"value": "none",
|
|
56
|
+
"label": "nothing: nothing private",
|
|
57
|
+
"description": "Public information only, and staff sign-in."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"value": "ordinary",
|
|
61
|
+
"label": "little: ordinary personal or business data",
|
|
62
|
+
"description": "Names, e-mail addresses, orders, ordinary business documents: a leak is unpleasant, not ruinous."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"value": "confidential",
|
|
66
|
+
"label": "a lot: confidential data",
|
|
67
|
+
"description": "Financial or account data, identity numbers, location, private messages, trade secrets or customer lists: a leak seriously harms people or the business."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "special",
|
|
71
|
+
"label": "people deeply: special categories",
|
|
72
|
+
"description": "Health, biometrics, genetic data, religion, politics, sexual orientation, union membership, criminal records, or children's data (GDPR Art. 9 and 10)."
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"key": "TENANCY",
|
|
78
|
+
"label": "How many customer organisations does one running copy serve?",
|
|
79
|
+
"default": "one",
|
|
80
|
+
"hint": "Several organisations in one deployment means one missed filter shows one customer another's data (AWS SaaS Lens).",
|
|
81
|
+
"options": [
|
|
82
|
+
{
|
|
83
|
+
"value": "one",
|
|
84
|
+
"label": "one organisation",
|
|
85
|
+
"description": "It serves one organisation (a shop, a company, a public body), however many people use it."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"value": "shared",
|
|
89
|
+
"label": "several, sharing",
|
|
90
|
+
"description": "Several customer organisations (tenants) share the same deployment and data stores, kept apart by the software."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"value": "separate",
|
|
94
|
+
"label": "several, each its own",
|
|
95
|
+
"description": "Several customer organisations, each with its own database or its own copy of the system."
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "CAPACITY",
|
|
101
|
+
"label": "Who looks after its IT and security?",
|
|
102
|
+
"default": "ig1",
|
|
103
|
+
"hint": "What an organisation can run decides how much security practice it can keep up (CIS Controls Implementation Groups 1 to 3).",
|
|
104
|
+
"options": [
|
|
105
|
+
{
|
|
106
|
+
"value": "ig1",
|
|
107
|
+
"label": "the people who build it",
|
|
108
|
+
"description": "A few people who build it; nobody works on IT or security full time (CIS IG1)."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"value": "ig2",
|
|
112
|
+
"label": "people who run IT",
|
|
113
|
+
"description": "There are people whose job includes running and protecting the infrastructure; several departments rely on it (CIS IG2)."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"value": "ig3",
|
|
117
|
+
"label": "security specialists",
|
|
118
|
+
"description": "A security team or specialists of their own (security operations, penetration testers), under regulators' eyes (CIS IG3)."
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
22
124
|
},
|
|
23
125
|
"sources": [
|
|
24
126
|
{
|
|
@@ -94,7 +196,13 @@
|
|
|
94
196
|
"label": "none",
|
|
95
197
|
"description": "No other system calls it; only people reach it. Pick it when the model shows no other system calling."
|
|
96
198
|
}
|
|
97
|
-
]
|
|
199
|
+
],
|
|
200
|
+
"scopeWhen": {
|
|
201
|
+
"CAPACITY": [
|
|
202
|
+
"ig2",
|
|
203
|
+
"ig3"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
98
206
|
},
|
|
99
207
|
{
|
|
100
208
|
"key": "STEP_UP",
|
|
@@ -113,7 +221,13 @@
|
|
|
113
221
|
"label": "the session alone",
|
|
114
222
|
"description": "A signed-in session may do everything its account may. Pick it only when no operation is worth more than the session itself."
|
|
115
223
|
}
|
|
116
|
-
]
|
|
224
|
+
],
|
|
225
|
+
"scopeWhen": {
|
|
226
|
+
"DATA": [
|
|
227
|
+
"confidential",
|
|
228
|
+
"special"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
117
231
|
},
|
|
118
232
|
{
|
|
119
233
|
"key": "SESSION_MINUTES",
|
|
@@ -209,6 +323,10 @@
|
|
|
209
323
|
"IDENTITY": [
|
|
210
324
|
"idp",
|
|
211
325
|
"own"
|
|
326
|
+
],
|
|
327
|
+
"STEP_UP": [
|
|
328
|
+
"yes",
|
|
329
|
+
"no"
|
|
212
330
|
]
|
|
213
331
|
}
|
|
214
332
|
},
|
|
@@ -281,12 +399,28 @@
|
|
|
281
399
|
]
|
|
282
400
|
}
|
|
283
401
|
},
|
|
402
|
+
{
|
|
403
|
+
"id": "req-no-machines",
|
|
404
|
+
"type": "requirement",
|
|
405
|
+
"label": "No system calls it",
|
|
406
|
+
"x": 260,
|
|
407
|
+
"y": 1040,
|
|
408
|
+
"ears_type": "ubiquitous",
|
|
409
|
+
"action": "accept no call from another system: every operation it offers answers a person, as {{IDENTITY}} decides",
|
|
410
|
+
"rationale": "The team said no other system calls it; a requirement keeps a machine credential from being added on the quiet.",
|
|
411
|
+
"unchecked": "The reviewer of a pull request that adds a machine credential or a calling system asks for the decision of the second-level Other systems question first; whether a caller is a person is read in the review, not measured.",
|
|
412
|
+
"hubWhen": {
|
|
413
|
+
"MACHINE": [
|
|
414
|
+
"none"
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
},
|
|
284
418
|
{
|
|
285
419
|
"id": "req-public",
|
|
286
420
|
"type": "requirement",
|
|
287
421
|
"label": "Public by design",
|
|
288
422
|
"x": 260,
|
|
289
|
-
"y":
|
|
423
|
+
"y": 1170,
|
|
290
424
|
"ears_type": "ubiquitous",
|
|
291
425
|
"action": "offer people no sign-in and no session, keep no person's credential, and run for anyone who reaches it only operations that are safe for anyone",
|
|
292
426
|
"rationale": "Nobody signs in, so nothing may depend on knowing which person is calling; this makes that a requirement instead of an accident.",
|
|
@@ -357,6 +491,10 @@
|
|
|
357
491
|
"IDENTITY": [
|
|
358
492
|
"idp",
|
|
359
493
|
"own"
|
|
494
|
+
],
|
|
495
|
+
"STEP_UP": [
|
|
496
|
+
"yes",
|
|
497
|
+
"no"
|
|
360
498
|
]
|
|
361
499
|
}
|
|
362
500
|
},
|
|
@@ -426,12 +564,27 @@
|
|
|
426
564
|
]
|
|
427
565
|
}
|
|
428
566
|
},
|
|
567
|
+
{
|
|
568
|
+
"id": "sc-no-machines",
|
|
569
|
+
"type": "scenario",
|
|
570
|
+
"label": "No machine caller",
|
|
571
|
+
"x": 520,
|
|
572
|
+
"y": 1040,
|
|
573
|
+
"given": "the element as deployed",
|
|
574
|
+
"when": "every caller of its operations is listed",
|
|
575
|
+
"then": "each is a person, and no machine credential is accepted",
|
|
576
|
+
"hubWhen": {
|
|
577
|
+
"MACHINE": [
|
|
578
|
+
"none"
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
},
|
|
429
582
|
{
|
|
430
583
|
"id": "sc-public",
|
|
431
584
|
"type": "scenario",
|
|
432
585
|
"label": "No sign-in surface",
|
|
433
586
|
"x": 520,
|
|
434
|
-
"y":
|
|
587
|
+
"y": 1170,
|
|
435
588
|
"given": "the element as deployed",
|
|
436
589
|
"when": "every route or command it offers is listed",
|
|
437
590
|
"then": "none signs a person in, keeps a session or stores a person's credential",
|
|
@@ -451,7 +604,7 @@
|
|
|
451
604
|
"status": "accepted",
|
|
452
605
|
"date": "",
|
|
453
606
|
"context": "People or other systems reach this element from outside, so it must know who is calling before it acts for them. The forces: credentials leak and get guessed (credential stuffing tries billions of leaked pairs); sessions outlive the person on a shared or lost device; self-contained tokens stay valid until they expire unless revocation is designed in; other systems call too, and a call from inside the network is not a call from a known system; and after an incident the record of who did what has to hold.",
|
|
454
|
-
"decision": "Users sign in through an external identity provider with OpenID Connect (authorization code flow with PKCE); we store no password. Sessions end after {{SESSION_MINUTES}} minutes without a request and are revoked within {{REVOKE_SECONDS}} seconds. Revocation is a server-side check on every instance (a shared session or revocation store, or token introspection), not the token's lifetime: providers keep the shortest access-token lifetime at minutes, not seconds (Entra ID 10 minutes at the least), so access tokens live 5 to 10 minutes and refresh tokens are rotated on use.
|
|
607
|
+
"decision": "Users sign in through an external identity provider with OpenID Connect (authorization code flow with PKCE); we store no password. Sessions end after {{SESSION_MINUTES}} minutes without a request and are revoked within {{REVOKE_SECONDS}} seconds. Revocation is a server-side check on every instance (a shared session or revocation store, or token introspection), not the token's lifetime: providers keep the shortest access-token lifetime at minutes, not seconds (Entra ID 10 minutes at the least), so access tokens live 5 to 10 minutes and refresh tokens are rotated on use. Operations open without sign-in are on a public list kept in the code. Choosing the provider: the one the users' organisation already runs (Entra ID, Okta, Google Workspace) for business users; Auth0, Cognito or Keycloak for consumers, by cost per active user and where the data may be kept.",
|
|
455
608
|
"consequences": "• No passwords to store, reset or leak; MFA, lockout and breached-password checks come from the provider.\n• The provider is on the sign-in path: when it is down nobody new signs in, sessions already open keep working until they expire.\n• Revocation within {{REVOKE_SECONDS}} s means a revocation store or introspection call on every request, a little latency and one more thing every instance must reach.\n• Who may do what (authorisation) is still yours to design: a valid token says who, not what.",
|
|
456
609
|
"alternatives": "1. Our own user store: full control of the experience, but you own password storage, lockout, MFA and breach response.\n2. Server-side sessions only (cookies): simple for one web app, awkward for APIs called by other systems and mobile clients.\n3. Long-lived tokens without revocation: fewer calls to the provider, but a stolen token works until it expires.",
|
|
457
610
|
"hubWhen": {
|
|
@@ -470,7 +623,7 @@
|
|
|
470
623
|
"status": "accepted",
|
|
471
624
|
"date": "",
|
|
472
625
|
"context": "People or other systems reach this element from outside, so it must know who is calling before it acts for them. The forces: credentials leak and get guessed (credential stuffing tries billions of leaked pairs); sessions outlive the person on a shared or lost device; self-contained tokens stay valid until they expire unless revocation is designed in; other systems call too, and a call from inside the network is not a call from a known system; and after an incident the record of who did what has to hold.",
|
|
473
|
-
"decision": "Users sign in with an account in our own user store: passwords kept as Argon2id hashes, failed attempts slowed per account and per address, breached passwords refused (Have I Been Pwned range API). Sessions end after {{SESSION_MINUTES}} minutes without a request and are revoked within {{REVOKE_SECONDS}} seconds; session state lives on the server, so revoking is deleting it.
|
|
626
|
+
"decision": "Users sign in with an account in our own user store: passwords kept as Argon2id hashes, failed attempts slowed per account and per address, breached passwords refused (Have I Been Pwned range API). Sessions end after {{SESSION_MINUTES}} minutes without a request and are revoked within {{REVOKE_SECONDS}} seconds; session state lives on the server, so revoking is deleting it. Operations open without sign-in are on a public list kept in the code. Use the framework's maintained identity library (ASP.NET Core Identity, Spring Security, Devise, Better Auth) rather than code of our own.",
|
|
474
627
|
"consequences": "• We own the whole of sign-in: password storage, resets, lockout, MFA and the response to a breach.\n• No third party on the sign-in path, and no per-user cost of a provider.\n• Server-side sessions make revocation immediate, but every instance needs the session store.\n• Single sign-on with customers' own identity providers is a later project.",
|
|
475
628
|
"alternatives": "1. An external identity provider (OpenID Connect): no passwords to keep, MFA and lockout included, but a dependency on the sign-in path and a cost per user.\n2. Passwordless sign-in by e-mail link or passkeys only: nothing to guess, but sign-in is as safe as the mailbox or needs passkey support everywhere.",
|
|
476
629
|
"hubWhen": {
|
|
@@ -489,7 +642,7 @@
|
|
|
489
642
|
"status": "accepted",
|
|
490
643
|
"date": "",
|
|
491
644
|
"context": "People or other systems reach this element from outside, so it must know who is calling before it acts for them. The forces: credentials leak and get guessed (credential stuffing tries billions of leaked pairs); sessions outlive the person on a shared or lost device; self-contained tokens stay valid until they expire unless revocation is designed in; other systems call too, and a call from inside the network is not a call from a known system; and after an incident the record of who did what has to hold. Here no person needs to be told apart: the element serves the same to everyone who reaches it.",
|
|
492
|
-
"decision": "No person signs in: the element has no sign-in and no session for people and keeps no person's credential; everything people reach is public and safe for anyone.
|
|
645
|
+
"decision": "No person signs in: the element has no sign-in and no session for people and keeps no person's credential; everything people reach is public and safe for anyone. Any credential the element checks belongs to a calling system, never to a person. Anything that would need to know which person is calling is out of scope until this decision is superseded.",
|
|
493
646
|
"consequences": "• Nothing to steal at sign-in and nothing to revoke for people.\n• Any feature that depends on who the user is (their own data, rights, an audit of who did what) needs this decision superseded first.\n• Abuse is limited by what the element offers, not by who asks: rate limits and the shape of the operations matter more.",
|
|
494
647
|
"alternatives": "1. Sign-in through an external identity provider, kept for later.\n2. A shared secret for everyone: no real identity, and a secret everyone knows is not one.",
|
|
495
648
|
"hubWhen": {
|
|
@@ -598,6 +751,10 @@
|
|
|
598
751
|
"IDENTITY": [
|
|
599
752
|
"idp",
|
|
600
753
|
"own"
|
|
754
|
+
],
|
|
755
|
+
"STEP_UP": [
|
|
756
|
+
"yes",
|
|
757
|
+
"no"
|
|
601
758
|
]
|
|
602
759
|
}
|
|
603
760
|
},
|
|
@@ -755,6 +912,13 @@
|
|
|
755
912
|
"relationType": "derives",
|
|
756
913
|
"quote": "People and other systems reach this element from outside. Whatever it does on their behalf rests on knowing who they are: a stolen or guessed credential, a session that outlives its user, a token that cannot be taken back, or a call from a system nobody vouched for each turns into data read or changed by the wrong party. Sign-in also has to stay usable, and the evidence of who did what has to hold up after an incident. The snippets assume the application under src/ (src/app exports the router's table, src/auth the sign-in code, src/audit the audit store) and the tests under tests/ with their fixtures in tests/auth."
|
|
757
914
|
},
|
|
915
|
+
{
|
|
916
|
+
"id": "req-no-machines--derives--need",
|
|
917
|
+
"sourceId": "req-no-machines",
|
|
918
|
+
"targetId": "need",
|
|
919
|
+
"relationType": "derives",
|
|
920
|
+
"quote": "People and other systems reach this element from outside. Whatever it does on their behalf rests on knowing who they are: a stolen or guessed credential, a session that outlives its user, a token that cannot be taken back, or a call from a system nobody vouched for each turns into data read or changed by the wrong party. Sign-in also has to stay usable, and the evidence of who did what has to hold up after an incident. The snippets assume the application under src/ (src/app exports the router's table, src/auth the sign-in code, src/audit the audit store) and the tests under tests/ with their fixtures in tests/auth."
|
|
921
|
+
},
|
|
758
922
|
{
|
|
759
923
|
"id": "req-public--derives--need",
|
|
760
924
|
"sourceId": "req-public",
|
|
@@ -810,6 +974,12 @@
|
|
|
810
974
|
"targetId": "req-machine",
|
|
811
975
|
"relationType": "verifies"
|
|
812
976
|
},
|
|
977
|
+
{
|
|
978
|
+
"id": "sc-no-machines--verifies--req-no-machines",
|
|
979
|
+
"sourceId": "sc-no-machines",
|
|
980
|
+
"targetId": "req-no-machines",
|
|
981
|
+
"relationType": "verifies"
|
|
982
|
+
},
|
|
813
983
|
{
|
|
814
984
|
"id": "sc-public--verifies--req-public",
|
|
815
985
|
"sourceId": "sc-public",
|
|
@@ -19,7 +19,109 @@
|
|
|
19
19
|
"trigger": "LIST RELATIONS WHERE (source.type = \"person\" OR source.external = true) AND target.external != true AND (target.type = \"system\" OR target.type = \"container\" OR target.type = \"webapp\" OR target.type = \"component\")",
|
|
20
20
|
"applyTo": "target",
|
|
21
21
|
"why": "people or other systems use these elements, so what each of them may see and do has to be decided.",
|
|
22
|
-
"group": "security"
|
|
22
|
+
"group": "security",
|
|
23
|
+
"scope": {
|
|
24
|
+
"group": "security",
|
|
25
|
+
"questions": [
|
|
26
|
+
{
|
|
27
|
+
"key": "EXPOSURE",
|
|
28
|
+
"label": "Who can reach it?",
|
|
29
|
+
"default": "customers",
|
|
30
|
+
"hint": "The more strangers can reach it, the more attacks it meets that need no inside knowledge (Microsoft SDL asks this first).",
|
|
31
|
+
"options": [
|
|
32
|
+
{
|
|
33
|
+
"value": "staff",
|
|
34
|
+
"label": "only our own staff",
|
|
35
|
+
"description": "An internal system: everyone who reaches it works for the organisation that runs it, from its network or with its accounts."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "customers",
|
|
39
|
+
"label": "our customers and staff",
|
|
40
|
+
"description": "People who come to us for a service (to book, order, pay, look something up) and our staff; there is no open sign-up, community or API for strangers."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"value": "public",
|
|
44
|
+
"label": "anyone, at scale",
|
|
45
|
+
"description": "Open sign-up, a public API, content anyone can post, or so many users that bots and automated abuse come with them."
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "DATA",
|
|
51
|
+
"label": "What would a leak of its data harm?",
|
|
52
|
+
"default": "ordinary",
|
|
53
|
+
"hint": "The most sensitive data it keeps decides (FIPS 199 confidentiality; GDPR Art. 9 for special categories).",
|
|
54
|
+
"options": [
|
|
55
|
+
{
|
|
56
|
+
"value": "none",
|
|
57
|
+
"label": "nothing: nothing private",
|
|
58
|
+
"description": "Public information only, and staff sign-in."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"value": "ordinary",
|
|
62
|
+
"label": "little: ordinary personal or business data",
|
|
63
|
+
"description": "Names, e-mail addresses, orders, ordinary business documents: a leak is unpleasant, not ruinous."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "confidential",
|
|
67
|
+
"label": "a lot: confidential data",
|
|
68
|
+
"description": "Financial or account data, identity numbers, location, private messages, trade secrets or customer lists: a leak seriously harms people or the business."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"value": "special",
|
|
72
|
+
"label": "people deeply: special categories",
|
|
73
|
+
"description": "Health, biometrics, genetic data, religion, politics, sexual orientation, union membership, criminal records, or children's data (GDPR Art. 9 and 10)."
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "TENANCY",
|
|
79
|
+
"label": "How many customer organisations does one running copy serve?",
|
|
80
|
+
"default": "one",
|
|
81
|
+
"hint": "Several organisations in one deployment means one missed filter shows one customer another's data (AWS SaaS Lens).",
|
|
82
|
+
"options": [
|
|
83
|
+
{
|
|
84
|
+
"value": "one",
|
|
85
|
+
"label": "one organisation",
|
|
86
|
+
"description": "It serves one organisation (a shop, a company, a public body), however many people use it."
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"value": "shared",
|
|
90
|
+
"label": "several, sharing",
|
|
91
|
+
"description": "Several customer organisations (tenants) share the same deployment and data stores, kept apart by the software."
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "separate",
|
|
95
|
+
"label": "several, each its own",
|
|
96
|
+
"description": "Several customer organisations, each with its own database or its own copy of the system."
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "CAPACITY",
|
|
102
|
+
"label": "Who looks after its IT and security?",
|
|
103
|
+
"default": "ig1",
|
|
104
|
+
"hint": "What an organisation can run decides how much security practice it can keep up (CIS Controls Implementation Groups 1 to 3).",
|
|
105
|
+
"options": [
|
|
106
|
+
{
|
|
107
|
+
"value": "ig1",
|
|
108
|
+
"label": "the people who build it",
|
|
109
|
+
"description": "A few people who build it; nobody works on IT or security full time (CIS IG1)."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"value": "ig2",
|
|
113
|
+
"label": "people who run IT",
|
|
114
|
+
"description": "There are people whose job includes running and protecting the infrastructure; several departments rely on it (CIS IG2)."
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"value": "ig3",
|
|
118
|
+
"label": "security specialists",
|
|
119
|
+
"description": "A security team or specialists of their own (security operations, penetration testers), under regulators' eyes (CIS IG3)."
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
23
125
|
},
|
|
24
126
|
"sources": [
|
|
25
127
|
{
|
|
@@ -126,7 +228,13 @@
|
|
|
126
228
|
"label": "no direct access",
|
|
127
229
|
"description": "Nobody reaches production data except through the element's own operations, which are authorized and audited like any other. Pick it when support needs are covered by admin screens in the product and infrastructure is fully automated."
|
|
128
230
|
}
|
|
129
|
-
]
|
|
231
|
+
],
|
|
232
|
+
"scopeWhen": {
|
|
233
|
+
"CAPACITY": [
|
|
234
|
+
"ig2",
|
|
235
|
+
"ig3"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
130
238
|
},
|
|
131
239
|
{
|
|
132
240
|
"key": "REVIEW",
|
|
@@ -145,7 +253,13 @@
|
|
|
145
253
|
"label": "directory sync",
|
|
146
254
|
"description": "Grants come only from groups in the identity provider (SCIM or group claims), so joiners, movers and leavers follow the HR system automatically. Pick it when every user is in a corporate directory that is kept up to date."
|
|
147
255
|
}
|
|
148
|
-
]
|
|
256
|
+
],
|
|
257
|
+
"scopeWhen": {
|
|
258
|
+
"CAPACITY": [
|
|
259
|
+
"ig2",
|
|
260
|
+
"ig3"
|
|
261
|
+
]
|
|
262
|
+
}
|
|
149
263
|
},
|
|
150
264
|
{
|
|
151
265
|
"key": "REVIEW_DAYS",
|
|
@@ -238,6 +352,10 @@
|
|
|
238
352
|
"hubWhen": {
|
|
239
353
|
"MODEL": [
|
|
240
354
|
"roles"
|
|
355
|
+
],
|
|
356
|
+
"REVIEW": [
|
|
357
|
+
"periodic",
|
|
358
|
+
"directory"
|
|
241
359
|
]
|
|
242
360
|
}
|
|
243
361
|
},
|
|
@@ -534,6 +652,10 @@
|
|
|
534
652
|
"hubWhen": {
|
|
535
653
|
"MODEL": [
|
|
536
654
|
"roles"
|
|
655
|
+
],
|
|
656
|
+
"REVIEW": [
|
|
657
|
+
"periodic",
|
|
658
|
+
"directory"
|
|
537
659
|
]
|
|
538
660
|
}
|
|
539
661
|
},
|
|
@@ -768,7 +890,7 @@
|
|
|
768
890
|
"status": "accepted",
|
|
769
891
|
"date": "",
|
|
770
892
|
"context": "People and other systems use this element with different rights. The forces: most access-control flaws are not broken sign-ins but a check missing at one operation, or a check on the type of record and not on the record itself (OWASP API1:2023, broken object level authorization); anything the interface hides can still be called; checks scattered through the code drift apart, while a central policy adds a dependency on the request path; administrators and support staff need more than everyone else, and standing privileges are what attackers look for; and permissions accumulate as people change jobs and keep what they had.",
|
|
771
|
-
"decision": "Users get roles and roles get permissions (NIST core RBAC with static separation of duty), kept in one permission matrix: operation × role, versioned with the code. Every operation checks its permission on the server, on the record it touches as well as its type; anything without a rule is refused. Permissions are decided {{ENFORCE}}
|
|
893
|
+
"decision": "Users get roles and roles get permissions (NIST core RBAC with static separation of duty), kept in one permission matrix: operation × role, versioned with the code. Every operation checks its permission on the server, on the record it touches as well as its type; anything without a rule is refused. Permissions are decided {{ENFORCE}}. Keep the roles under about 20: when an exception would become a role, it is a sign that relationships or attributes are needed.",
|
|
772
894
|
"consequences": "• One matrix to read, review and test: a test can call every operation as every role.\n• Rules that depend on the record (only the owner may edit) do not fit roles and need an explicit check per operation.\n• Role explosion when every exception becomes a role.\n• Separation of duties can be checked when roles are granted.",
|
|
773
895
|
"alternatives": "1. Relationships (ReBAC): expresses ownership and sharing, harder to review as a whole.\n2. Attribute policies (ABAC): precise, but the attributes have to be kept fresh.\n3. One level of access for every caller: only right while nothing is meant for some users.",
|
|
774
896
|
"hubWhen": {
|
|
@@ -787,7 +909,7 @@
|
|
|
787
909
|
"status": "accepted",
|
|
788
910
|
"date": "",
|
|
789
911
|
"context": "People and other systems use this element with different rights. The forces: most access-control flaws are not broken sign-ins but a check missing at one operation, or a check on the type of record and not on the record itself (OWASP API1:2023, broken object level authorization); anything the interface hides can still be called; checks scattered through the code drift apart, while a central policy adds a dependency on the request path; administrators and support staff need more than everyone else, and standing privileges are what attackers look for; and permissions accumulate as people change jobs and keep what they had.",
|
|
790
|
-
"decision": "Access follows from relationships between callers and records (owner, editor, viewer, member of the team or parent folder), modelled as a Zanzibar-style authorization model: object types, relations and the rules that derive one relation from another. Permissions are decided {{ENFORCE}}: with a policy engine, OpenFGA (CNCF, simple to run) or SpiceDB (stronger consistency options, Postgres or Spanner backends) holds the relationship tuples, chosen by the consistency and scale needed; in code, a relationship table queried by one authorization module. Every check names the record; lists ask for the records the caller may see (ListObjects or a filtered query). A removed relationship takes effect within 10 seconds, and a caller's own change is never evaluated against an older snapshot (a consistency token from the write is passed to the check).
|
|
912
|
+
"decision": "Access follows from relationships between callers and records (owner, editor, viewer, member of the team or parent folder), modelled as a Zanzibar-style authorization model: object types, relations and the rules that derive one relation from another. Permissions are decided {{ENFORCE}}: with a policy engine, OpenFGA (CNCF, simple to run) or SpiceDB (stronger consistency options, Postgres or Spanner backends) holds the relationship tuples, chosen by the consistency and scale needed; in code, a relationship table queried by one authorization module. Every check names the record; lists ask for the records the caller may see (ListObjects or a filtered query). A removed relationship takes effect within 10 seconds, and a caller's own change is never evaluated against an older snapshot (a consistency token from the write is passed to the check).",
|
|
791
913
|
"consequences": "• Sharing, ownership and nested folders or teams are expressed directly, without a role per case.\n• Relationship tuples are a second source of truth beside the domain data and must be written in the same change as it (outbox or transactional write).\n• Lists of what a caller may see are expensive on large graphs and need their own design.\n• A stale read can grant just-removed access: consistency tokens are needed.",
|
|
792
914
|
"alternatives": "1. Roles (RBAC): simpler to review, cannot express \"shared with me\".\n2. Attribute policies (ABAC): good for rules over data, awkward for sharing and nesting.\n3. Access control lists per record: simple, but hard to change for a whole team or folder.",
|
|
793
915
|
"hubWhen": {
|
|
@@ -806,7 +928,7 @@
|
|
|
806
928
|
"status": "accepted",
|
|
807
929
|
"date": "",
|
|
808
930
|
"context": "People and other systems use this element with different rights. The forces: most access-control flaws are not broken sign-ins but a check missing at one operation, or a check on the type of record and not on the record itself (OWASP API1:2023, broken object level authorization); anything the interface hides can still be called; checks scattered through the code drift apart, while a central policy adds a dependency on the request path; administrators and support staff need more than everyone else, and standing privileges are what attackers look for; and permissions accumulate as people change jobs and keep what they had.",
|
|
809
|
-
"decision": "Permissions are policies over attributes of the caller (department, region, clearance), the record (owner, classification, region) and the request (time, network, assurance level), written as policy as code. Permissions are decided {{ENFORCE}}: with a policy engine, Open Policy Agent (Rego, general purpose, sidecar or library) or Cedar with Amazon Verified Permissions (typed, analysable policies, managed on AWS), chosen by the platform and whether policies must be provably analysable; in code, Casbin or CASL. Attributes come from named sources with a freshness limit of 15 minutes, and a missing or stale attribute denies.
|
|
931
|
+
"decision": "Permissions are policies over attributes of the caller (department, region, clearance), the record (owner, classification, region) and the request (time, network, assurance level), written as policy as code. Permissions are decided {{ENFORCE}}: with a policy engine, Open Policy Agent (Rego, general purpose, sidecar or library) or Cedar with Amazon Verified Permissions (typed, analysable policies, managed on AWS), chosen by the platform and whether policies must be provably analysable; in code, Casbin or CASL. Attributes come from named sources with a freshness limit of 15 minutes, and a missing or stale attribute denies.",
|
|
810
932
|
"consequences": "• Rules such as \"own region, working hours only\" are written once, not as roles per region.\n• Every attribute is an input to keep correct and fresh: a wrong department is a wrong decision.\n• Policies are code: they need tests and review of their own.\n• Who may see what is harder to answer for an auditor than with a role matrix.",
|
|
811
933
|
"alternatives": "1. Roles (RBAC): easy to review, but a role per region or classification explodes.\n2. Relationships (ReBAC): better for sharing, weaker for rules over data.\n3. One level of access for every caller: only right while nothing is meant for some users.",
|
|
812
934
|
"hubWhen": {
|
|
@@ -825,7 +947,7 @@
|
|
|
825
947
|
"status": "accepted",
|
|
826
948
|
"date": "",
|
|
827
949
|
"context": "People and other systems use this element with different rights. The forces: most access-control flaws are not broken sign-ins but a check missing at one operation, or a check on the type of record and not on the record itself (OWASP API1:2023, broken object level authorization); anything the interface hides can still be called; checks scattered through the code drift apart, while a central policy adds a dependency on the request path; administrators and support staff need more than everyone else, and standing privileges are what attackers look for; and permissions accumulate as people change jobs and keep what they had. Here nobody needs more than anyone else: the element offers the same to every signed-in caller.",
|
|
828
|
-
"decision": "Every signed-in caller may do everything the element offers; there are no roles or permissions in the application, so no decision point and no review of grants are needed. Anything meant for some callers only stays out of it until this decision is superseded.
|
|
950
|
+
"decision": "Every signed-in caller may do everything the element offers; there are no roles or permissions in the application, so no decision point and no review of grants are needed. Anything meant for some callers only stays out of it until this decision is superseded.",
|
|
829
951
|
"consequences": "• Nothing to manage, test or review in the application.\n• The first feature for some callers only needs this decision superseded first.\n• Who signs in is the only boundary: authentication carries all the weight.",
|
|
830
952
|
"alternatives": "1. Roles, added when the first restricted feature comes.\n2. Two roles (user, administrator) from the start: little cost now, but an untested boundary until something needs it.",
|
|
831
953
|
"hubWhen": {
|
|
@@ -1111,6 +1233,10 @@
|
|
|
1111
1233
|
"hubWhen": {
|
|
1112
1234
|
"MODEL": [
|
|
1113
1235
|
"roles"
|
|
1236
|
+
],
|
|
1237
|
+
"REVIEW": [
|
|
1238
|
+
"periodic",
|
|
1239
|
+
"directory"
|
|
1114
1240
|
]
|
|
1115
1241
|
}
|
|
1116
1242
|
},
|