🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 3 Min Lesezeit
0

Manage Secret Scanning Custom Patterns as Code With a Safe REST Sync

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

GitHub's July 13, 2026 changelog lists REST API management for secret scanning custom patterns. That makes a reviewed configuration-as-code workflow possible.



Primary source: GitHub Changelog archive, July 2026. Follow the July 13 entry to the current REST documentation before implementation.



The transport below is an unexecuted design. Endpoint paths, payload fields, permissions, pagination, and plan availability must come from the linked official API reference—not from guessed examples.






Define the sync contract



A safe synchronizer should:




  1. read desired patterns from version control;

  2. fetch the remote collection;

  3. match each pattern by a stable identity;

  4. emit create, update, unchanged, and delete actions;

  5. refuse deletion unless explicitly enabled;

  6. apply only after the plan is reviewed.




CODE
patterns.json -> normalize -> diff remote -> plan.json -> approval -> apply






Keep API-specific payloads opaque to the diff engine:




CODE
{
"patterns": [
{
"stableKey": "internal-service-token-v1",
"remoteId": "SET_AFTER_CREATION",
"payload": {
"REPLACE_WITH_DOCUMENTED_FIELD": "REPLACE_WITH_REVIEWED_VALUE"
}
}
],
"allowDelete": false
}






Placeholders are deliberate. A secret detector's regex fields and matching semantics are security contracts and should never be invented from a blog post.






Build a deterministic planner






CODE
export function plan(desired, current) {
const remote = new Map(current.map(x => [x.id, x]));
const changes = [];

for (const item of desired.patterns) {
if (!item.remoteId) {
changes.push({ action: "create", key: item.stableKey });
continue;
}
const found = remote.get(item.remoteId);
if (!found) throw new Error(`Missing remote pattern ${item.remoteId}`);

const same = JSON.stringify(canonical(found)) ===
JSON.stringify(canonical(item.payload));
changes.push({ action: same ? "unchanged" : "update", key: item.stableKey });
remote.delete(item.remoteId);
}

for (const orphan of remote.values()) {
changes.push({ action: "delete", id: orphan.id });
}
return changes;
}






canonical() should compare only documented mutable fields, sorted consistently. Server-generated values otherwise create endless drift.



Run planning with read permission in pull requests. Put apply behind a protected environment and a separate write credential. Never print tokens or full secret-like fixture values.






Fail closed on ambiguity



Renaming can look like create plus delete. Pagination can hide remote resources. API normalization can look like drift. Any of these should stop apply.



Require explicit approval for deletion and record:




  • pattern owner and purpose;

  • positive, negative, boundary, and high-volume synthetic fixtures;

  • known false positives;

  • documented endpoint and API version;

  • rollback procedure;

  • planned remote ID.



The sync does not prove a regular expression is safe or effective. It does not replace GitHub's pattern testing facilities, historical scans, or review of reduced coverage. Its value is the delivery contract: declarative state, deterministic planning, non-destructive defaults, separated credentials, and an auditable apply step.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Manage Secret Scanning Custom Patterns as Code With a Safe REST Sync

Thematisch verwandte Begriffe: Manage, Secret, Scanning, Custom · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...