r/DistributedComputing • u/Traditional_Rain5661 • 23h ago
r/DistributedComputing • u/Traditional_Rain5661 • 23h ago
When your API gateway leaks its own keys: How Azure APIM Classic management exposure hit critical energy backends
TL;DR
Disclosed and patched November 18–19, 2026 (reported Nov 24): misconfigured Azure API Management (APIM) Classic instances exposed management-plane access externally. Attackers extracted Named Values secrets, OIDC client secrets, subscription keys, and management API tokens—hitting Norwegian energy giants Equinor and Skagerak Energi and triggering national advisories from Norway's NSM.
The Analogy: The Unlocked Intercom Hatch
Imagine an apartment building's front-desk intercom panel that routes visitors to every suite. Because an older model left its maintenance hatch unlocked, outsiders opened the panel from the street, copied the master keycodes taped inside, and walked straight into the building's power plant backends.
API gateways concentrate every downstream credential in one place. Exposing their management plane turns your security perimeter into a skeleton key.
Step-by-Step Compound Failure Chain
- Legacy Management-Plane Exposure: Misconfigured Azure APIM Classic instances exposed management functionality alongside public API routing, lacking strict private VNet isolation.
- Secret Store Enumeration: Threat actors scanned public IP ranges for exposed Classic instances and queried configuration stores, extracting Named Values, OIDC client secrets, subscription keys, and direct management API tokens.
- Static Non-Expiring Credential Blast Radius: Many organizations store static, long-lived secrets in Named Values with no short TTL or mTLS binding. Stealing them granted durable access rather than a brief window.
- Downstream Replay & Rotation Lag: Attackers replayed stolen OIDC secrets and keys directly against downstream backends (including Equinor and Skagerak Energi). Even after Microsoft closed the access path on Nov 19, already-stolen static secrets stayed valid until every downstream system rotated them manually.
Real Engineering Trade-offs & Production Costs
- Legacy Backend Incompatibility: Replacing static secrets with 15-minute mTLS-bound Managed Identity tokens often breaks older industrial/energy backends, forcing teams to run sidecar token translators.
- Identity Outage Coupling: Short-lived 15-minute token leases create a hard runtime dependency on Entra ID—if the identity issuer stalls, gateway token refreshes fail after 15 minutes.
- VNet Migration Friction: Moving off APIM Classic into isolated VNet tiers requires DNS cutovers and partner IP allowlist updates.
- Failure Boundaries: Private VNet isolation and short-TTL leases stop external enumeration and token replay, but cannot stop an insider with valid VPN access exporting private client certs.
r/DistributedComputing • u/Paige_Ward44 • 11d ago
is optimizing distributed batch jobs worth it vs just adding more nodes?
I've been thinking about something lately: when a distributed batch job starts slowing down, is adding more workers really the best way to deal with it, or would it make more sense to improve how the job runs I'm mainly looking at operations like sorting, joins and shuffles, since they can end up taking a fair amount of processing time.
The idea would be to figure out which parts of the workload are slowing things down, make those operations more efficient and see how that compares to adding more nodes. I haven't tried this on any large workloads yet, so most of what I've read comes from documentation and benchmarks. trino, clickhouse and dualbird are a few names I've come across while researching different options.
I'm interested in hearing from people who've worked with distributed systems. Is optimizing execution usually worth the effort, or does scaling out tend to be more practical?
Would appreciate any thoughts on data movement, overhead and whether the performance gains justify the added complexity.