3 Commits

Author SHA1 Message Date
quiet-professional 7fecb4905e patched table
Build and Release Core / Test and Build (push) Successful in 4m50s
2026-05-02 13:28:02 -04:00
quiet-professional 2a01e0fc08 patched bug
Build and Release Core / Test and Build (push) Successful in 5m3s
2026-05-01 13:02:30 -04:00
quiet-professional ead3c9043d updated branding
Build and Release Core / Test and Build (push) Successful in 4m44s
2026-05-01 09:59:58 -04:00
3 changed files with 29 additions and 8 deletions
+14 -3
View File
@@ -55,7 +55,6 @@ CREATE TABLE IF NOT EXISTS sessions (
expires_at DATETIME NOT NULL,
FOREIGN KEY(user_id) REFERENCES users(id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS tickets (
id INTEGER PRIMARY KEY AUTOINCREMENT,
domain TEXT NOT NULL DEFAULT 'Vulnerability',
@@ -75,7 +74,10 @@ CREATE TABLE IF NOT EXISTS tickets (
'Triaged',
'Assigned Out',
'Patched',
'False Positive'
'False Positive',
'Pending Risk Approval',
'Risk Accepted',
'Pending Verification'
)),
dedupe_hash TEXT UNIQUE NOT NULL,
patch_evidence TEXT,
@@ -83,6 +85,16 @@ CREATE TABLE IF NOT EXISTS tickets (
assignee TEXT DEFAULT 'Unassigned',
latest_comment TEXT DEFAULT '',
-- 🚀 RE-ADDED: The missing Enterprise Risk & CISA tracking fields!
is_cisa_kev BOOLEAN DEFAULT 0,
verification_requested_at DATETIME,
extension_count INTEGER DEFAULT 0,
risk_rationale TEXT,
risk_evidence TEXT,
risk_approved_by TEXT,
risk_approved_at DATETIME,
exception_expires_at DATETIME,
assigned_at DATETIME,
owner_viewed_at DATETIME,
triage_due_date DATETIME,
@@ -92,7 +104,6 @@ CREATE TABLE IF NOT EXISTS tickets (
patched_at DATETIME,
FOREIGN KEY(domain) REFERENCES domains(name) ON DELETE SET DEFAULT
);
CREATE INDEX IF NOT EXISTS idx_tickets_status ON tickets(status);
CREATE INDEX IF NOT EXISTS idx_tickets_severity ON tickets(severity);
CREATE INDEX IF NOT EXISTS idx_tickets_domain ON tickets(domain);
+10 -4
View File
@@ -3,16 +3,22 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RiskRancher OSS</title>
<title>RiskRancher {{if isProActive}}PRO{{else}}OSS{{end}}</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<header style="display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: white; border-bottom: 1px solid #e2e8f0;">
<div class="logo">
<h2 style="margin: 0;"><a href="/dashboard" style="color: #0f172a; text-decoration: none;">🐴 RiskRancher</a></h2>
<h2 style="margin: 0;">
<a href="/dashboard" style="color: #0f172a; text-decoration: none;">
🐴 RiskRancher{{if isProActive}}{{with getCompanyName}} | {{.}}{{end}}{{end}}
</a>
</h2>
</div>
<nav style="display: flex; align-items: center; gap: 15px;">
<span style="color: #475569; font-size: 0.9rem; font-family: monospace; padding-left: 15px; margin-left: 5px;">Community Edition</span>
<span style="color: {{if isProActive}}#059669{{else}}#475569{{end}}; font-size: 0.9rem; font-family: monospace; padding-left: 15px; margin-left: 5px; font-weight: {{if isProActive}}bold{{else}}normal{{end}};">
{{if isProActive}}PRO Edition{{else}}Community Edition{{end}}
</span>
<button onclick="logout()" style="background: #f1f5f9; color: #dc2626; border: 1px solid #e2e8f0; padding: 6px 12px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 0.85rem;">Log Out</button>
</nav>
</header>
@@ -29,7 +35,7 @@
{{template "content" .}}
</main>
<footer style="text-align: center; padding: 20px; margin-top: 40px; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: 0.85rem;">
🐴 RiskRancher Core Edition | Version: <strong>{{.Version}}</strong> | Build: <strong>{{.Commit}}</strong>
🐴 RiskRancher {{if isProActive}}PRO Edition{{else}}Core Edition{{end}} | Version: <strong>{{.Version}}</strong> | Build: <strong>{{.Commit}}</strong>
</footer>
</body>
</html>
+5 -1
View File
@@ -36,7 +36,11 @@ func SetVersionInfo(version, commit string) {
}
func init() {
funcMap := template.FuncMap{"lower": strings.ToLower}
funcMap := template.FuncMap{
"lower": strings.ToLower,
"isProActive": func() bool { return false },
"getCompanyName": func() string { return "" },
}
Pages = make(map[string]*template.Template)
var err error