@taiga-ai/mcp-server 0.36.0-dev.809 → 0.36.0-dev.811
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/dist/index.js +158 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26377,6 +26377,164 @@ object({
|
|
|
26377
26377
|
*/
|
|
26378
26378
|
const MAINTENANCE_LICENSE_FILTER_MAX = 4096;
|
|
26379
26379
|
//#endregion
|
|
26380
|
+
//#region ../../packages/types/dist/finding-controls.js
|
|
26381
|
+
/**
|
|
26382
|
+
* A committed credential.
|
|
26383
|
+
*
|
|
26384
|
+
* SEC-3.4 "Secrets must never be stored in source code or logs"
|
|
26385
|
+
* SEC-5.1 "Secrets must be stored in an approved secrets management system"
|
|
26386
|
+
* SEC-5.2 "Secrets must be rotated at least annually" -- the half Taiga cannot
|
|
26387
|
+
* do, and the reason the remediation initiative insists the PR say so.
|
|
26388
|
+
* SDLC-3.5 "Secret detection must run pre-commit and in CI pipeline"
|
|
26389
|
+
*/
|
|
26390
|
+
const SECRET_CONTROLS = [
|
|
26391
|
+
"SEC-3.4",
|
|
26392
|
+
"SEC-5.1",
|
|
26393
|
+
"SEC-5.2",
|
|
26394
|
+
"SDLC-3.5"
|
|
26395
|
+
];
|
|
26396
|
+
/**
|
|
26397
|
+
* A vulnerable dependency.
|
|
26398
|
+
*
|
|
26399
|
+
* SCS-2.6 "critical security patches within 7 days, others within 30 days"
|
|
26400
|
+
* -- breached by a vulnerability whose fix has been out past its
|
|
26401
|
+
* window, and by no other (PRO-3420). One found this morning has missed
|
|
26402
|
+
* nothing; neither has one with no fixed release to move to.
|
|
26403
|
+
* SCS-5.2 "Critical vulnerabilities must block deployment"
|
|
26404
|
+
*
|
|
26405
|
+
* Two controls this map deliberately does NOT claim:
|
|
26406
|
+
* - SCS-2.5 "Transitive dependency vulnerabilities must be monitored
|
|
26407
|
+
* continuously". A finding is that monitoring working, not evidence it is
|
|
26408
|
+
* missing; every vulnerable dependency read as a breach of it. The sweep's
|
|
26409
|
+
* own record shows it met instead (sweep-evidence.ts).
|
|
26410
|
+
* - Anything for an outdated dependency that is no vulnerability: SCS-2.6's
|
|
26411
|
+
* rationale is "timely vulnerability remediation", and an update that fixes
|
|
26412
|
+
* nothing is not a security patch.
|
|
26413
|
+
*/
|
|
26414
|
+
const DEPENDENCY_CONTROLS = ["SCS-2.6", "SCS-5.2"];
|
|
26415
|
+
/**
|
|
26416
|
+
* A package whose licence the allowlist does not satisfy (PRO-2862).
|
|
26417
|
+
*
|
|
26418
|
+
* TIC-6.2 "Open source licenses must be reviewed and approved before adoption"
|
|
26419
|
+
* -- the same policy section lists the approved licences and the ones
|
|
26420
|
+
* requiring review, which is where the default allowlist comes from.
|
|
26421
|
+
*/
|
|
26422
|
+
const LICENSE_CONTROLS = ["TIC-6.2"];
|
|
26423
|
+
/**
|
|
26424
|
+
* Injection and unsanitized input, whatever the sink.
|
|
26425
|
+
*
|
|
26426
|
+
* SDLC-5.1 "All user input must be validated and sanitized"
|
|
26427
|
+
* SEC-6.1 "All API endpoints must validate and sanitize input"
|
|
26428
|
+
*/
|
|
26429
|
+
const INJECTION_CONTROLS = ["SDLC-5.1", "SEC-6.1"];
|
|
26430
|
+
/**
|
|
26431
|
+
* Every opengrep rule Taiga ships, mapped explicitly.
|
|
26432
|
+
*
|
|
26433
|
+
* A closed set, unlike checkov's -- these rules are ours, so an exhaustive map
|
|
26434
|
+
* is possible and a keyword heuristic would be a worse answer to an easier
|
|
26435
|
+
* question. `policy-map.test.ts` reads the rule ids straight out of the YAML
|
|
26436
|
+
* so a new rule that lands unmapped fails the build instead of silently
|
|
26437
|
+
* emitting no control.
|
|
26438
|
+
*/
|
|
26439
|
+
const SAST_CONTROLS = {
|
|
26440
|
+
"taiga.csharp.sql-string-concat": INJECTION_CONTROLS,
|
|
26441
|
+
"taiga.go.sql-string-concat": INJECTION_CONTROLS,
|
|
26442
|
+
"taiga.javascript.sql-template-concat": INJECTION_CONTROLS,
|
|
26443
|
+
"taiga.python.sqli-fstring": INJECTION_CONTROLS,
|
|
26444
|
+
"taiga.rust.sql-format-concat": INJECTION_CONTROLS,
|
|
26445
|
+
"taiga.csharp.process-start-shell-dynamic": INJECTION_CONTROLS,
|
|
26446
|
+
"taiga.go.exec-command-dynamic": INJECTION_CONTROLS,
|
|
26447
|
+
"taiga.javascript.child-process-exec-dynamic": INJECTION_CONTROLS,
|
|
26448
|
+
"taiga.python.os-system-dynamic": INJECTION_CONTROLS,
|
|
26449
|
+
"taiga.python.subprocess-shell-true": INJECTION_CONTROLS,
|
|
26450
|
+
"taiga.rust.command-shell-dynamic": INJECTION_CONTROLS,
|
|
26451
|
+
"taiga.javascript.eval-dynamic": INJECTION_CONTROLS,
|
|
26452
|
+
"taiga.python.eval-exec-dynamic": INJECTION_CONTROLS,
|
|
26453
|
+
"taiga.javascript.dangerously-set-inner-html": INJECTION_CONTROLS,
|
|
26454
|
+
"taiga.javascript.innerhtml-dynamic": INJECTION_CONTROLS,
|
|
26455
|
+
"taiga.csharp.binaryformatter-deserialize": ["SDLC-5.7"],
|
|
26456
|
+
"taiga.python.pickle-load-untrusted": ["SDLC-5.7"],
|
|
26457
|
+
"taiga.python.yaml-load-unsafe": ["SDLC-5.7"],
|
|
26458
|
+
"taiga.csharp.cert-validation-disabled": ["SEC-3.2"],
|
|
26459
|
+
"taiga.go.tls-insecure-skip-verify": ["SEC-3.2"],
|
|
26460
|
+
"taiga.javascript.tls-reject-unauthorized-false": ["SEC-3.2"],
|
|
26461
|
+
"taiga.python.requests-verify-false": ["SEC-3.2"],
|
|
26462
|
+
"taiga.rust.tls-verification-disabled": ["SEC-3.2"],
|
|
26463
|
+
"taiga.javascript.jwt-verify-none": ["SDLC-5.4", "SEC-9.1"],
|
|
26464
|
+
"taiga.python.flask-debug-true": ["SDLC-5.5"],
|
|
26465
|
+
"taiga.go.pprof-import": ["SDLC-5.5"],
|
|
26466
|
+
"taiga.csharp.weak-hash": [],
|
|
26467
|
+
"taiga.go.weak-hash": [],
|
|
26468
|
+
"taiga.javascript.weak-hash": [],
|
|
26469
|
+
"taiga.python.weak-hash": [],
|
|
26470
|
+
"taiga.rust.weak-hash": [],
|
|
26471
|
+
"taiga.go.math-rand-for-secrets": [],
|
|
26472
|
+
"taiga.rust.non-crypto-rng-for-secrets": []
|
|
26473
|
+
};
|
|
26474
|
+
/**
|
|
26475
|
+
* Checkov, matched on the check's own description.
|
|
26476
|
+
*
|
|
26477
|
+
* Checkov's rule set is open and numbers in the thousands, so an exhaustive
|
|
26478
|
+
* id map is not available the way it is for our own rules. These phrases are
|
|
26479
|
+
* matched against the check title checkov itself writes ("Ensure all data
|
|
26480
|
+
* stored in the RDS is securely encrypted at rest"), and they are deliberately
|
|
26481
|
+
* narrow: a title matching nothing yields no control, which is the safe
|
|
26482
|
+
* direction to be wrong in.
|
|
26483
|
+
*
|
|
26484
|
+
* Exported so `policy-map.test.ts` validates THESE ids against the registry
|
|
26485
|
+
* too. They are the half most likely to drift, and an id-map that only
|
|
26486
|
+
* validates the closed half is a claim the tests do not support.
|
|
26487
|
+
*/
|
|
26488
|
+
const IAC_PHRASES = [
|
|
26489
|
+
{
|
|
26490
|
+
pattern: /encrypt\w*\s+at\s+rest|at\s+rest.*encrypt|securely encrypted/i,
|
|
26491
|
+
controls: ["SEC-3.1"],
|
|
26492
|
+
why: "at-rest encryption"
|
|
26493
|
+
},
|
|
26494
|
+
{
|
|
26495
|
+
pattern: /\bKMS\b|customer[- ]managed key|\bCMK\b/i,
|
|
26496
|
+
controls: ["SEC-3.3"],
|
|
26497
|
+
why: "key management"
|
|
26498
|
+
},
|
|
26499
|
+
{
|
|
26500
|
+
pattern: /in\s+transit|\bTLS\b|\bSSL\b|\bHTTPS\b/i,
|
|
26501
|
+
controls: ["SEC-3.2"],
|
|
26502
|
+
why: "transport encryption"
|
|
26503
|
+
},
|
|
26504
|
+
{
|
|
26505
|
+
pattern: /0\.0\.0\.0\/0|ingress from|security group/i,
|
|
26506
|
+
controls: ["CLD-7.2"],
|
|
26507
|
+
why: "network default-deny"
|
|
26508
|
+
},
|
|
26509
|
+
{
|
|
26510
|
+
pattern: /public(ly)?\s+(access|read|write|expos)|public access/i,
|
|
26511
|
+
controls: ["CLD-1.3"],
|
|
26512
|
+
why: "public exposure"
|
|
26513
|
+
},
|
|
26514
|
+
{
|
|
26515
|
+
pattern: /least privilege|wildcard|admin(istrator)? (policy|access)/i,
|
|
26516
|
+
controls: ["SEC-2.1"],
|
|
26517
|
+
why: "least privilege"
|
|
26518
|
+
},
|
|
26519
|
+
{
|
|
26520
|
+
pattern: /backup|point[- ]in[- ]time recovery/i,
|
|
26521
|
+
controls: ["OPS-4.1"],
|
|
26522
|
+
why: "backup"
|
|
26523
|
+
},
|
|
26524
|
+
{
|
|
26525
|
+
pattern: /audit log|cloudtrail|access logging|logging (is )?enabled/i,
|
|
26526
|
+
controls: ["SDLC-5.8"],
|
|
26527
|
+
why: "security logging"
|
|
26528
|
+
}
|
|
26529
|
+
];
|
|
26530
|
+
[.../* @__PURE__ */ new Set([
|
|
26531
|
+
...SECRET_CONTROLS,
|
|
26532
|
+
...DEPENDENCY_CONTROLS,
|
|
26533
|
+
...LICENSE_CONTROLS,
|
|
26534
|
+
...Object.values(SAST_CONTROLS).flat(),
|
|
26535
|
+
...IAC_PHRASES.flatMap((p) => p.controls)
|
|
26536
|
+
])];
|
|
26537
|
+
//#endregion
|
|
26380
26538
|
//#region ../../packages/types/dist/custom-documents.js
|
|
26381
26539
|
/**
|
|
26382
26540
|
* Shared types for the custom-documents feature: customer-uploaded reference
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ai/mcp-server",
|
|
3
|
-
"version": "0.36.0-dev.
|
|
3
|
+
"version": "0.36.0-dev.811",
|
|
4
4
|
"description": "Taiga for AI coding assistants: read products, policies, initiatives and runs, and operate the line, over MCP",
|
|
5
5
|
"mcpName": "ga.tai/mcp-server",
|
|
6
6
|
"license": "UNLICENSED",
|