SShortSingh.
Back to feed

Source maps should be excluded from protected builds to avoid exposing readable code

0
·3 views

The article warns that after a MeowShield protection step, publishing a source map can reverse the protection by revealing the readable original program. It recommends keeping source maps only for unprotected builds used in local development and staging. For protected output, it advises against generating public maps, leaving stale maps on CDNs, or referencing internal maps reachable without authentication. The author suggests a release check that refuses to publish protected artifacts carrying a source map reference, and recommends debugging production incidents in a private environment rather than posting maps publicly.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Devtop: a native Mac app that shows every dev server, port and project in one place

The developer behind Devtop built the tool after Activity Monitor could only show a generic node process using 4 GB of memory without context. Devtop is a native macOS app that lists dev servers, ports, projects, Docker containers, databases and coding agent sessions, letting users start, stop or inspect them from one place. It groups processes by project, flags leftover processes from coding agents, and offers a CLI for checking and freeing ports. The app is free and MIT licensed, runs on macOS 14 or later on Apple silicon and Intel, and is installable via Homebrew.

0
ProgrammingDEV Community ·

Auto-generating schema mappings for AWS integrations rises from 5% to 79% accuracy in four passes

A developer needed to automatically generate about 98 mapping files that join Steampipe AWS table columns to Stave's JSON Schema property paths, benchmarked against 11 hand-authored files. A first leaf-name matching heuristic scored only 5% accuracy against 107 expected column-to-path pairs. The author attributes the failure to missing namespaced identity fields, ambiguous leaf names such as 'enabled', and a missing 'properties.' prefix on hand-written paths. Fixes included always adding the prefix and inferring namespaces from asset-type prefixes like aws_s3_ and aws_iam_role. Most of the final gain to 79% reportedly came from a lookup table rather than a rule.

0
ProgrammingDEV Community ·

Admin patches critical PHP RCE on an EOL Amazon Linux 2 server and hits three traps

A critical unauthenticated PHP remote code execution flaw, CVE-2026-109618/109619, was disclosed on October 22, and the author managed a production e-commerce site running an outdated PHP 8.2 build on an end-of-life OS. Remi's repository no longer carried fixed packages, but amazon-linux-extras still delivered PHP 8.2.35 to both production and dev. A simple httpd reload left the old libphp loaded, so the author had to restart Apache instead to avoid symbol mismatch errors. Maintenance-mode rules in Apache's configuration also behaved unexpectedly, requiring inheritance directives, SetEnvIfExpr, and header changes to avoid breaking session cookies. Traffic analysis showed late-night periods were mostly bot activity, and a live test purchase confirmed the patched system worked end to end.

0
ProgrammingDEV Community ·

RevOS Splits AI Work: Models Design, Deterministic SQL Computes Every Number

The article argues that language models are probabilistic and so can give different answers to the same question, which suits design work but not calculating figures that need sign-off. RevOS assigns the LLM to propose entities, metric definitions, playbook rules and SQL, while the warehouse's deterministic queries compute every metric with lineage to source fields. Proposed logic appears as a reviewable diff that must pass tests, data contracts and CI, and be approved by a person before reaching production. The author cites Snowflake's text-to-SQL evaluation, where a general model scored about 51% from a raw schema but over 90% when grounded in a governed semantic model. Probabilistic methods remain appropriate for predictive scores and forecasts, which are estimates by nature.