Urgent.News

What's breaking now, across thousands of outlets.

Tech

Node.js Feature Flag Rollouts: Stable Bucketing for 10% Notification Releases

Short answer: store the rollout percentage in the flag system, but make the release decision in the request path with a deterministic hash of an immutable user or account ID. For a property-management notification service, that means the same tenant stays on the same delivery path while a 10% release is evaluated; otherwise, users switch cohorts between requests and the delivery-failure signal…

When implementing Node.js feature flags for stable bucketing, store the rollout percentage in the flag system but make the release decision in the request path. Use a deterministic hash of an immutable user or account ID to determine the delivery path, ensuring that the same tenant consistently receives notifications. This approach avoids noise from switching cohorts between requests and simplifies the design to a single percentage, a documented hash rule, and an SLO guardrail.

To avoid using a random-number generator on every request, implement a small, deterministic evaluation rule using an immutable identifier. For property management, an account ID is often a better unit than a user ID, as multiple staff members in the same property should not receive different delivery behavior. If intentional user-level variation is needed, document this explicitly.

A Go implementation of this approach uses SHA-256 to create a stable identifier, taking the first eight bytes and mapping them into 10,000 buckets. The percentage rollout is then checked against this bucket. The contract is precise enough to reproduce in a Node.js backend and for offline analysis.

When designing the alerting page for on-call engineers, display the flag key, rollout percentage, region, channel, and cohort, along with a link to the affected delivery attempts. This provides clear context and helps responders understand the release state without reconstructing it.

Thresholds should be set based on cohort-specific error-budget burn comparisons between the new path and the stable path. Split traffic dimensions (such as US and EU tenants) before applying the threshold to account for varying traffic volumes and delivery dependencies. For low-volume slices, implement a minimum sample rule or a longer window to ensure weak evidence does not trigger unnecessary alerts. Finally, define the minimum evidence and error-budget action before enabling the feature flag.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

My refund handler checked the ledger before paying. It still paid twice.

A refund handler commits the refund, then loses its reply. Maybe the HTTP response timed out. Maybe the worker died before it acknowledged the queue message.

  • Refund handlers check ledger before payment but still pay twice due to various reasons.
  • Four handlers tested: naive always pays twice, others pay correctly once in 200 trials.

HyperShift CVE-2026-101919 — CVSS 8.8 Tenant Isolation Bypass via Kubeconfig Passthrough

An authenticated tenant with basic namespace permissions can break out to the host control plane in OpenShift clusters running Multicluster Engine with HyperShift.

  • OpenShift clusters with Multicluster Engine and HyperShift vulnerable to tenant isolation bypass.
  • CVE-2026-101919 rated CVSS 3.1 8.8 by Red Hat as Important.
  • Patch available; restrict Secret creation, deploy admission webhook, audit kubeconfig Secrets.

Phishing domains impersonate govt agencies

ISLAMABAD: The National Cyber Security Emergency Response Team (NCERT) has detected a number of suspected phishing domains created in the name of key national institutions, apparently aimed at…

More from Tuesday 6 October →