SShortSingh.

Programming

0
ProgrammingDEV Community ·

How a deprecated cryptographic key exposed a flaw in schema validation design

A developer encountered a validation failure after adding a retired signing key whose scheme was no longer in the accepted set. Rather than widening the live set or discarding the old key, the solution was to introduce a separate 'schemes_retired' field, keeping the two sets distinct by capability rather than by time. The published specification was updated by retiring the old claim and adding a new scoped one alongside it, preserving an auditable record of the change. A pre-existing audit tool flagged the retired key as a violation, but this was logged as a known gap rather than silently patched, to avoid masking an underlying design flaw. The episode highlighted how naming conventions and set boundaries that appear cosmetic can carry real downstream consequences for counters, audits, and published guarantees.

0
ProgrammingDEV Community ·

Why a Single Accuracy Score Can't Measure Bot Detection's Real Cost

Bot detection systems that report high overall accuracy can still cause significant harm by wrongly blocking legitimate users, a problem known as false positives. The consequences vary sharply by route — a blocked checkout interrupts revenue, while a failed password reset locks out a real customer. Because most traffic on consumer-facing apps is legitimate, a detector can appear 99.7% accurate while still mishandling thousands of genuine requests daily. Experts recommend evaluating three separate metrics — precision, recall, and false-positive rate — rather than relying on a single aggregate score. Different enforcement actions such as hard blocks, challenges, and monitoring should each be governed by different thresholds based on the cost of each type of error.

0
ProgrammingDEV Community ·

AI Agent Authentication in 2026 Requires Layered Stack, Not a Single Protocol

As AI agents grow more complex, experts warn that no single protocol can handle their full authentication needs. A 2026 IETF Internet-Draft proposed a multi-layer architecture covering agent credentials, delegated user authority, workload identity, authorization, and audit trails. Google separately announced the open Agentic Resource Discovery (ARD) specification to help agents find and verify agentic capabilities without relying on hard-coded endpoints. Together, ARD, Web Bot Auth, OAuth, and workload identity standards each address distinct gaps in the agent identity chain. Collapsing these layers into a single API key, experts note, eliminates the audit trail and exposes systems to serious security risks.

0
ProgrammingDEV Community ·

How to Control Reasoning Effort in Codex CLI for Faster or Smarter Responses

OpenAI's Codex CLI offers a configurable 'model_reasoning_effort' setting that lets developers control how deeply the model reasons before responding, with five levels ranging from 'minimal' to 'xhigh'. The setting can be applied permanently via the ~/.codex/config.toml file, overridden for a single run using the -c flag, or adjusted mid-session with the /model command. Higher effort levels suit complex tasks like multi-file design changes or hard algorithms, while lower levels are better for simple fixes and formatting tasks. Developers can also bundle effort settings into named profiles for repeated workflows, such as code reviews requiring maximum reasoning. Additional keys like 'plan_mode_reasoning_effort' and 'agents.default_subagent_reasoning_effort' allow fine-grained control over planning mode and subagent behavior separately.

0
ProgrammingDEV Community ·

Browser Fingerprinting in 2026: JS Signals Fade as Network-Level Techniques Rise

Browser fingerprinting remains viable in 2026, but the landscape has shifted significantly as major browsers have neutralized many traditional tracking signals. Chrome, Firefox, Safari, and Brave have frozen or restricted JavaScript-accessible APIs such as User-Agent strings, navigator.plugins, and navigator.platform, rendering them largely useless for identification. Meanwhile, techniques like WebGL rendering, AudioContext, and TLS fingerprinting via JA4 continue to provide meaningful identifying signals due to hardware-level variation or network-layer operation. Network-level signals, including HTTP/2 settings and TCP/IP stack analysis, are increasingly favored because they operate below the browser API surface and cannot be blocked by privacy extensions. Experts caution that no single fingerprint should be treated as definitive proof of a visitor's identity or intent, and much of the guidance published just two years ago is now considered outdated.

0
ProgrammingHacker News ·

How Python Libraries Use Rust Internally via PyO3

A technical blog post by Belderbos explains how Python libraries can run Rust code internally using PyO3, a popular Rust-Python binding tool. PyO3 allows developers to write performance-critical components in Rust while exposing them seamlessly to Python users. This approach lets libraries gain Rust's speed and memory safety without requiring end users to know any Rust. The post has gained modest traction on Hacker News, attracting 8 points and 5 comments from the developer community.

0
ProgrammingDEV Community ·

CAPTCHAs No Longer Stop Bots in 2026 as Solver Markets Undercut Their Value

CAPTCHAs, originally designed in 2003 to distinguish humans from automated bots, have lost their effectiveness because all three core assumptions behind them — that challenges are hard for machines, easy for humans, and cheap to generate — no longer hold. Commercial solver services such as 2Captcha and AntiCaptcha now resolve most CAPTCHA types for as little as $1–$3 per 1,000 attempts, making them a negligible cost for attackers running large-scale credential-stuffing operations. A bad actor running 100,000 daily login attempts, for example, might spend only $300 on CAPTCHA solving while earning $6,000 from compromised accounts. Modern AI vision models independently solve image-based CAPTCHAs at rates exceeding 90%, often outperforming average human users on the same puzzles. As a result, security engineers are increasingly looking beyond traditional CAPTCHAs toward behavioral analysis, device fingerprinting, and risk-based authentication to defend against automated threats.

0
ProgrammingDEV Community ·

How to Implement StpInterface in Sa-Token for RBAC Permission Control

Sa-Token, a Java authentication framework, requires developers to implement the StpInterface by overriding two key methods: getPermissionList and getRoleList. This is necessary because Sa-Token has no built-in knowledge of a project's database structure, so developers must define how permissions and roles are retrieved. The implementation involves creating a StpInterfaceImpl component that queries user-specific permission and role codes from the database using custom service methods. SQL queries use JOIN operations across user-role and role-permission tables to fetch distinct, active records tied to a given user ID. Once configured, access control becomes straightforward through annotations such as @SaCheckLogin, @SaCheckPermission, and @SaCheckRole.

0
ProgrammingDEV Community ·

Why Hiding Your Achievements Holds Back Others, Not Just Yourself

Many high-achieving professionals routinely downplay or stay silent about their accomplishments due to fear of appearing arrogant or alienating peers. This pattern creates a lose-lose situation: sharing a win triggers guilt, while staying quiet fuels imposter syndrome and self-doubt. Experts and creators in the tech community argue that publicly acknowledging milestones serves as a roadmap for others who are struggling and seeking proof that success is attainable. When someone reacts negatively to another person's growth, that response typically reflects their own insecurities rather than any fault in the person sharing. Building and communicating progress openly is increasingly seen as a form of community contribution, not self-promotion.

0
ProgrammingDEV Community ·

Power BI Data Modelling Explained: Schemas, Relationships, and Joins

A Power BI report's effectiveness depends heavily on how its underlying data model is structured, not just on its visuals or charts. Data modelling involves organising tables and defining relationships so Power BI can analyse information accurately and efficiently. Three common schema approaches exist — flat tables, star schemas, and snowflake schemas — each with distinct trade-offs in complexity, performance, and scalability. Star schemas are widely preferred for separating factual transaction data from descriptive dimension tables, simplifying DAX formulas and improving filter behaviour. Poorly designed models can lead to slow performance, maintenance difficulties, and unreliable calculations as datasets grow.

0
ProgrammingHacker News ·

Prior.chat Launches Predictive Intelligence Tool for Anticipating Outcomes

A new platform called Prior.chat has emerged, positioning itself around predictive intelligence capabilities. The tool claims to help users anticipate events or outcomes before they occur. It was shared on Hacker News, where it received modest early traction with 4 points and 4 comments. Details about the underlying technology, pricing, or target users remain limited based on available information.

0
ProgrammingDEV Community ·

Audit of 50 AI-coded Projects Reveals 4 Recurring Security Flaws in Cursor and Claude Output

A developer who audited 50 projects built using Cursor and Claude identified four recurring security and performance issues in AI-generated code. The most common problems included missing tenant isolation in database queries, insecure webhook token comparisons, network calls placed inside active database transactions, and the use of floating-point numbers for currency calculations. The developer attributes these flaws to AI coding tools prioritizing functional code over production-ready, secure code, especially during long chat sessions where system prompts are forgotten. To address this, they released an open-source tool called secure-code, which injects security and performance constraints into Cursor, Claude, and Copilot configuration files via a single terminal command. The project supports TypeScript, Python, Go, Rust, and several other languages, and is available under the MIT license on GitHub.

0
ProgrammingDEV Community ·

Silent pipeline flaw: passing checks whose results never reached the system that needed them

A software team discovered that an automated check was running and passing correctly for weeks, yet its results never appeared in the acceptance report because the check was missing from the device routing list that writes to the permanent record. Neither the check nor the acceptance step flagged an error — the gap simply produced an 'absent' status, which the system treated as 'not yet applicable' rather than a failure. A second issue caused intermittent digest mismatches in a map component, traced to the append-only record being incorrectly pinned as an input, meaning every new log entry invalidated the map's freshness. Both defects were invisible from within their respective components and produced no red alerts, only ambiguous or silent outputs. The key lesson drawn is that verifying a component works is insufficient — what must be tested is whether its results are actually reachable by the systems that depend on them.

0
ProgrammingDEV Community ·

AWS Lambda timeout raised 6x to 90 minutes for managed instance event-driven functions

AWS has increased the maximum execution timeout for Lambda functions using Event Source Mapping (ESM) on Lambda Managed Instances (LMI) from 15 minutes to 90 minutes, a sixfold improvement. The change addresses longstanding limitations for workloads such as AI inference, media transcoding, financial simulations, and large-scale ETL pipelines that routinely exceed the previous 15-minute cap. The extended timeout applies only to asynchronous and ESM invocations on managed instances; standard on-demand Lambda functions and synchronous invocations via API Gateway or load balancers remain capped at 15 minutes. Supported event sources include SQS, Kinesis, DynamoDB Streams, Amazon MSK, and self-managed Apache Kafka, while Amazon MQ and DocumentDB mappings are still limited to 15 minutes. AWS confirmed there is no additional charge for the new limit, with standard managed instance compute rates continuing to apply.

0
ProgrammingHacker News ·

Cpak Introduces OCI-Based Application Package Format for Linux Systems

Cpak is a newly introduced application packaging format designed for Linux desktops, servers, and devices. It is built around the OCI (Open Container Initiative) standard, leveraging container image technology for software distribution. The project aims to provide a unified packaging solution across different types of Linux environments. Details about the format and its specifications are available on the official Cpak website. The announcement received early attention on Hacker News, drawing initial community interest.

0
ProgrammingDEV Community ·

Why Regulated AI Apps Need More Than a Vector Database

Developers at Apex Grid, building a regtech tool for Nigerian microfinance banks, have outlined a key architectural distinction between vector databases and data substrates in AI systems. A vector database excels at fast, embedding-based similarity search, making it useful for the retrieval phase of RAG pipelines, while a data substrate provides a versioned, traceable, and auditable layer linking AI decisions to specific data sources. In financial compliance contexts, the ability to trace why an AI flagged a transaction — including the regulation referenced and the data version used — is a regulatory requirement that vector databases alone cannot meet. The team uses a hybrid approach, leveraging vector databases for initial retrieval and a data substrate for governance and auditability. While this adds storage and schema complexity, they argue the tradeoff is justified given the high cost of untraceable AI decisions in Nigeria's regulated microfinance sector.

0
ProgrammingDEV Community ·

Fix Ollama Connection Errors in MuleSoft by Using host.docker.internal

Developers using the MuleSoft Inference Connector to connect to a locally running Ollama instance may encounter a connection refused error when setting the base URL to http://localhost:11434/v1. This happens because the MuleSoft runtime runs inside a Docker container, where localhost refers to the container itself rather than the host machine. The fix is to replace localhost with host.docker.internal in the openAICompatibleURL connector configuration, pointing it to http://host.docker.internal:11434/v1 instead. Once corrected, the connector successfully reaches the local Ollama service and returns a valid 200 response with the model's generated output. The solution was demonstrated on Mule 4 Community kernel version 4.12.0.

0
ProgrammingDEV Community ·

How a Successful Build Left Almost No Trace in the Permanent Record

A software build completed with all checks passing, yet the append-only logging system rejected the vast majority of its output — 934 lines were dropped and multiple blocks refused. The root cause was a vocabulary mismatch: print statement names had been renamed in code, but the record's fixed list of accepted names was never updated to match. Because the archive uses a closed vocabulary, unrecognized names are silently refused rather than stored, making the data gap invisible until someone attempted to write the record. The author argues this strict refusal was actually valuable, as an open vocabulary would have quietly accumulated typos and renamed duplicates, corrupting historical counts. The fix involved classifying every refused line into a deliberate outcome — either declaring it or explicitly dropping it by name — so that no unadjudicated output remained.

0
ProgrammingDEV Community ·

How NVIDIA Triton Inference Server Is Reshaping Modern AI-Driven ETL Pipelines

Traditional ETL pipelines, built for structured data and fixed transformation rules, are struggling to keep pace with the growing complexity of AI-driven and unstructured data workflows. NVIDIA Triton Inference Server (TIS), an open-source tool, addresses this gap by enabling scalable deployment of machine learning models across both GPU and CPU environments. TIS supports multiple frameworks including TensorFlow, PyTorch, and ONNX, and offers features like dynamic batching and concurrent model execution that are well-suited for high-throughput data processing. It integrates primarily at the Transform and Load stages of ETL architectures, allowing pipelines to perform real-time AI enrichment and intelligent data routing. Tools like NVIDIA NVTabular can be combined with trained models inside Triton ensembles to ensure consistency between training-time and inference-time data transformations.

0
ProgrammingDEV Community ·

MCPBouncer: Open-Source Firewall Shields AI Coding Agents from Local System Risks

Developers increasingly connect autonomous AI coding assistants like Cursor and Claude Desktop to local systems via the Model Context Protocol (MCP), but this access creates serious, unmonitored security risks. Without visibility into MCP traffic, AI agents can accidentally or maliciously execute destructive commands, leak credentials, or be hijacked through prompt injection attacks. To address this gap, a developer has built and open-sourced MCPBouncer, a zero-dependency local firewall and packet inspector that acts as an inline security proxy between AI clients and MCP servers. The tool offers real-time traffic inspection, human-in-the-loop approval for high-risk commands, automated credential scrubbing, and a cryptographic audit trail — all running entirely offline. MCPBouncer can be deployed via a simple npx command that scans and wraps existing MCP server configurations without requiring complex setup.

← NewerPage 1509 of 3453Older →