Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/ai-inference-circuit-breaker-fallback-1768.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/armoriq-dlq-replay-telemetry-1765.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-sarif-export-ghas-1766.md

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
[![Prisma](https://img.shields.io/badge/Prisma-3982CE?style=for-the-badge&logo=Prisma&logoColor=white)](https://www.prisma.io/)
[![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white)](https://tailwindcss.com/)
[![SecureFlow Status](http://secure-flow-six.vercel.app/api/badge/GauravKarakoti/SecureFlow)](http://secure-flow-six.vercel.app)

> _"In this heist, we're not stealing — we're protecting."_
> **SecureFlow automatically detects vulnerabilities, hardcoded secrets, and code flaws before they reach production.**
Expand Down Expand Up @@ -527,7 +528,7 @@ For more in-depth details about the architecture, developer API, and security pr
Add a live security-status badge to your repository README:

```markdown
![SecureFlow](https://your-secureflow-instance.com/api/badge/OWNER/REPO)
![SecureFlow](https://secure-flow-six.vercel.app/api/badge/OWNER/REPO)
```

The badge reflects the latest scan: **passing** (green), **review required** (yellow), **blocked** (red), or **unknown** (grey). Enable it in your repository settings — see the [Status Badge docs](./docs/status-badge.md) for details.
Expand Down
8 changes: 8 additions & 0 deletions cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# secureflow-cli

## 3.5.0

### Minor Changes

- 3d7ea4a: Implement circuit breaker protection and static fallback management for AI inference calls across remediation patch, security explanation, and Web3 explanation flows (#1768).
- 75c0e19: Implement automated DLQ replay mechanism and telemetry for ArmorIQ events (#1765)
- 282c068: Add native SARIF export format support in secureflow-cli (#1766)

## 3.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ jobs:
```

SARIF findings exported by SecureFlow conform strictly to OASIS SARIF v2.1.0 specifications and include:

- Normalized relative file URIs
- Precise line ranges and character columns
- Standard GitHub severity mappings (`CRITICAL`/`HIGH` -> `error`, `MEDIUM` -> `warning`, `LOW`/`INFO` -> `note`)
- Cryptographic code snippet fingerprints for tracking issues across code refactors
- Automated remediation patch replacements within SARIF `fixes` arrays


---

## 🔒 Air-Gapped & Local Mode (`--local`)
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "secureflow-cli",
"version": "3.4.0",
"version": "3.5.0",
"description": "Pre-commit secret logging detector for secure development workflows",
"main": "./dist/index.js",
"bin": {
Expand Down
12 changes: 7 additions & 5 deletions cli/src/sarif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,7 @@ export function buildSarifFix(
/**
* Converts finding severity into SARIF level ("error" | "warning" | "note") (#1766).
*/
export function severityToSarifLevel(
severity?: string,
): "error" | "warning" | "note" {
export function severityToSarifLevel(severity?: string): "error" | "warning" | "note" {
switch (severity?.toUpperCase()) {
case "CRITICAL":
case "HIGH":
Expand Down Expand Up @@ -633,7 +631,9 @@ export function generateSarifReport(
sarifResults.push({
ruleId: ruleInfo.descriptor.id,
ruleIndex: ruleInfo.index,
level: violation.severity ? severityToSarifLevel(violation.severity) : (ruleInfo.descriptor.defaultConfiguration?.level || "error"),
level: violation.severity
? severityToSarifLevel(violation.severity)
: ruleInfo.descriptor.defaultConfiguration?.level || "error",
message: {
text: `[SecureFlow] ${violation.reason} passed to console call: "${violation.text}"`,
},
Expand Down Expand Up @@ -711,7 +711,9 @@ export function generateSarifReport(
},
region: {
startLine: line,
...(aiFinding.lineEnd && aiFinding.lineEnd >= line ? { endLine: aiFinding.lineEnd } : {}),
...(aiFinding.lineEnd && aiFinding.lineEnd >= line
? { endLine: aiFinding.lineEnd }
: {}),
snippet: {
text: snippet,
},
Expand Down
4 changes: 2 additions & 2 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
import "./.next/types/root-params.d.ts";
import "./.next/dev/types/routes.d.ts";
import "./.next/dev/types/root-params.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"react-hook-form": "^7.91.0",
"react-is": "^19.3.1",
"recharts": "^3.10.1",
"secureflow-cli": "^3.4.0",
"secureflow-cli": "^3.5.0",
"sonner": "^2.0.8",
"swagger-ui-react": "^5.34.1",
"tailwind-merge": "^3.6.0",
Expand Down
2 changes: 2 additions & 0 deletions prisma/migrations/20261115161911/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Repository" ADD COLUMN "publicBadgeEnabled" BOOLEAN NOT NULL DEFAULT false;
2 changes: 0 additions & 2 deletions prisma/migrations/20261115212000/migration.sql

This file was deleted.

4 changes: 1 addition & 3 deletions scripts/armoriq-verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ describe("scripts/armoriq-verify.ts (#1710, #1751)", () => {
expect(consoleSpy).toHaveBeenCalledWith(
expect.stringContaining("Inspecting ArmorIQ Dead-Letter Queue Payloads & Telemetry"),
);
expect(consoleSpy).toHaveBeenCalledWith(
expect.stringContaining("Telemetry Metrics"),
);
expect(consoleSpy).toHaveBeenCalledWith(expect.stringContaining("Telemetry Metrics"));
consoleSpy.mockRestore();
});
});
12 changes: 9 additions & 3 deletions scripts/armoriq-verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,18 @@ export async function runArmorIQCheck(options: CliCheckOptions = {}) {
if (options.inspectDlq) {
console.log("🔍 Inspecting ArmorIQ Dead-Letter Queue Payloads & Telemetry (#1765)...");
const dlqStatus = await inspectRemediationDlqPayloads();
console.log(`📊 DLQ Total: ${dlqStatus.total} | Queued: ${dlqStatus.queued.length} | Quarantined: ${dlqStatus.quarantined.length} | Failed: ${dlqStatus.failed.length}`);
console.log(`📈 Telemetry Metrics: Total Queued: ${dlqStatus.telemetry.totalQueued}, Replayed: ${dlqStatus.telemetry.totalReplayed}, Retries: ${dlqStatus.telemetry.totalRetries}, Quarantined: ${dlqStatus.telemetry.totalQuarantined}`);
console.log(
`📊 DLQ Total: ${dlqStatus.total} | Queued: ${dlqStatus.queued.length} | Quarantined: ${dlqStatus.quarantined.length} | Failed: ${dlqStatus.failed.length}`,
);
console.log(
`📈 Telemetry Metrics: Total Queued: ${dlqStatus.telemetry.totalQueued}, Replayed: ${dlqStatus.telemetry.totalReplayed}, Retries: ${dlqStatus.telemetry.totalRetries}, Quarantined: ${dlqStatus.telemetry.totalQuarantined}`,
);
if (dlqStatus.quarantined.length > 0) {
console.log("🚨 Quarantined Events:");
for (const q of dlqStatus.quarantined) {
console.log(` - [${q.id}] ${q.quarantineReason || "Quarantined"} (retries: ${q.retryCount})`);
console.log(
` - [${q.id}] ${q.quarantineReason || "Quarantined"} (retries: ${q.retryCount})`,
);
}
}
}
Expand Down
Loading
Loading