<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Architecture &amp; Security on Xomaps Tech Blog</title><link>https://blog.xomaps.com/en/categories/architecture--security/</link><description>Recent content in Architecture &amp; Security on Xomaps Tech Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 28 Nov 2026 09:00:00 +0800</lastBuildDate><atom:link href="https://blog.xomaps.com/en/categories/architecture--security/index.xml" rel="self" type="application/rss+xml"/><item><title>A Metadata-Preserving Watermark Pipeline for Evidence Photos: Pre-Extraction, Orientation Awareness, Rewrite-Back, and Three-Level Fallback</title><link>https://blog.xomaps.com/en/post/exif-watermark-pipeline/</link><pubDate>Sat, 28 Nov 2026 09:00:00 +0800</pubDate><guid>https://blog.xomaps.com/en/post/exif-watermark-pipeline/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is an image-processing pipeline note, scoped to server-side batch watermarking of field evidence photos. Method names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is preserving metadata and orientation and keeping batches reliable, not the business rules of watermark content or delivery workflow.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The conclusion first: &lt;strong&gt;metadata preservation cannot be an &amp;ldquo;overall copy-back&amp;rdquo; after processing; it must be a second channel running through the entire pipeline.&lt;/strong&gt; Three judgments up front: 1) a conventional decode-draw-encode flow outputs re-encoded pixel data, and &lt;u&gt;EXIF metadata, a structure inside the JPEG APP1 marker segment, is not carried along with pixels automatically&lt;/u&gt;&lt;sup&gt;[1][3]&lt;/sup&gt;; 2) orientation correction must happen before watermark drawing, otherwise the watermark lands on the wrong pixel orientation and copying metadata back afterward cannot fix the misplaced content; 3) in batch processing, one image aborting the whole batch costs more than one failed image, so the fallback chain must be designed for &amp;ldquo;never interrupt,&amp;rdquo; not for &amp;ldquo;throw correctly.&amp;rdquo;&lt;/p&gt;</description></item><item><title>The Read Gate of Multi-Tenant Isolation: Persistence Lifecycle Callbacks and Aspect Ordering</title><link>https://blog.xomaps.com/en/post/tenant-isolation-read-gate/</link><pubDate>Sat, 28 Nov 2026 09:00:00 +0800</pubDate><guid>https://blog.xomaps.com/en/post/tenant-isolation-read-gate/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This is an isolation-mechanism note, scoped to ORM-based multi-tenant systems with shared schemas and shared applications. Component names and step numbers correspond to a working implementation; organization, customer, and deployment details are omitted. The subject is framework-level mechanism, not conventions such as &amp;ldquo;remember to add the tenant condition in business code.&amp;rdquo;&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The conclusion first: &lt;strong&gt;multi-tenant isolation that relies solely on ORM query filters is incomplete, and the gap is not in how queries are written — it is the primary-key load path that never passes through the filter.&lt;/strong&gt; The repair is not another business-layer condition but a read gate pushed down into persistence lifecycle callbacks: every entity row entering the persistence context has its tenant ownership checked once at &lt;code&gt;@PostLoad&lt;/code&gt;, and a mismatch terminates the load. Three judgments up front: 1) if filter activation matches annotations or class names, renames and package moves silently disable isolation, so drift must be eliminated mechanically; 2) wrong aspect ordering disables the whole mechanism — filter activation requires an active transaction and persistence context; 3) the write side must trust only server-side tenant context, never a caller-supplied tenant identifier.&lt;/p&gt;</description></item><item><title>API Access and Integrity Risk Catalog</title><link>https://blog.xomaps.com/en/post/api-access-integrity-risks/</link><pubDate>Thu, 12 Nov 2026 15:00:00 +0800</pubDate><guid>https://blog.xomaps.com/en/post/api-access-integrity-risks/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;This post distills the API governance methodology developed for the Xomaps (信朴科技) location management system: a risk catalog of 17 control measures for enterprise internal systems, designed for architecture reviews, security requirement writing, and threat modeling.&lt;/p&gt;&#10;&lt;p&gt;Scope: &lt;strong&gt;enterprise internal systems&lt;/strong&gt; — systems where the data is a company-level asset and every user is both a user and a maintainer of that asset. This includes command channels (consolidated command layer on the write side) / multi-tenant middle platforms / open APIs (MCP, mini-program mobile clients).&#10;Purpose: a standard risk catalog for architecture reviews, security requirements, and threat modeling.&#10;Positioning: belongs to the &amp;ldquo;API Access and Integrity Risk&amp;rdquo; category, alongside Transport Security and Authentication Security.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item></channel></rss>