<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andreas Buckenhofer on Medium]]></title>
        <description><![CDATA[Stories by Andreas Buckenhofer on Medium]]></description>
        <link>https://medium.com/@andreas.buckenhofer?source=rss-4ff79389298a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z4bkUzPJKOE-rT3YMZWmlA.jpeg</url>
            <title>Stories by Andreas Buckenhofer on Medium</title>
            <link>https://medium.com/@andreas.buckenhofer?source=rss-4ff79389298a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:27:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andreas.buckenhofer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Data privacy: anonymization and pseudonymization — Part 2]]></title>
            <link>https://medium.com/mercedes-benz-techinnovation-blog/data-privacy-anonymization-and-pseudonymization-part-2-2ee795a7cbda?source=rss-4ff79389298a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ee795a7cbda</guid>
            <category><![CDATA[anonymization]]></category>
            <category><![CDATA[pseudonymization]]></category>
            <category><![CDATA[synthetic-data]]></category>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[differential-privacy]]></category>
            <dc:creator><![CDATA[Andreas Buckenhofer]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 15:16:07 GMT</pubDate>
            <atom:updated>2020-11-05T15:16:07.606Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data privacy: anonymization and pseudonymization — Part 2</h3><p>Trustworthy handling of personal data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aC-LRZAhIvOTiT4EG9dDPQ.png" /></figure><p>Last week I published an <a href="https://medium.com/daimler-tss-tech/data-privacy-anonymization-and-pseudonymization-part-1-6b145459a3bf?source=friends_link&amp;sk=cd54ae907d70c6f2365776b38d2334b8">introduction into anonymization and pseudonymization</a>. This article follows up with anonymization techniques.</p><h3>Techniques</h3><p>The GDPR does not specify which anonymization techniques have to be used. The Article 29 Working Party has published an opinion on various measures that can be considered depending on the use case.</p><p>There are two overall approaches: in-place and out-of-place anonymization. Out-of-place methods create a new dataset (data copy) while in-place methods work directly on the production data.</p><h4>In-Place anonymization</h4><ul><li><strong>Data redaction </strong>hides data like credit card numbers from users, while the original data remains in the database. The technique is usually applied in production systems based on the user’s login credentials. This method is a particular case to only hide specific sensitive data from consumers, e.g. from a call-centre agent who is not allowed to see all data.<br>Many databases have built-in data redaction functionalities which is far superior compared to programming the functionality in the application. The Oracle-solution is shown in the example below with two queries on the credit_card column. A reduction policy controls the second query and returns only the last four digits of the credit_card number.</li></ul><figure><img alt="Oracle sample session for data redaction" src="https://cdn-images-1.medium.com/max/867/1*dBEsWEDo1arMdfgNZg-gSg.png" /></figure><ul><li><strong>Differential privacy</strong> software infiltrates “noise” into results. The user (e.g. a Data Scientist) writes SQL queries against the original data while the software monitors and prevents too detailed queries. Queries that group many rows will be returned with an additional noise while queries for individual rows are blocked. The following diagram shows a non-blocked (in blue) and a blocked query (in red).<br>Apple, Google and many others also use the technique <a href="https://www.apple.com/privacy/docs/Differential_Privacy_Overview.pdf">within browsers or mobile devices</a> before sending data to a central server.</li></ul><figure><img alt="Differential privacy" src="https://cdn-images-1.medium.com/max/960/1*a0U42PvXOqk0afvkExC1oA.png" /></figure><h4>Out-of-Place anonymization</h4><ul><li>A generated <strong>synthetic data copy with lookups or randomization</strong> can hide the sensitive parts of the original data.<br><strong>Lookup </strong>data can be prepared for, e.g. names, bank accounts, and other personal data. A data copy is created with synthetic data by replacing the original data with lookup values.<br>A similar approach is the usage of <strong>randomization </strong>techniques like shuffling, masking or deleting data. Rules are created that define how to randomize data, e.g. mix all data cells within one column. Lookups and randomization methods are often combined.<br>Additionally, machine learning models can support generating synthetic data with similar stochastic properties as the original data. Parts of the original data are used to train machine learning models. The diagram below shows the overall approach to create a synthetic data copy with machine learning.</li></ul><figure><img alt="Synthetic data with ML" src="https://cdn-images-1.medium.com/max/960/1*6y-Y4pmwc3WN02S_4iwUXw.png" /></figure><ul><li>K-anonymity, L-diversity, and similar methods are <strong>grouping/clustering</strong> data: the result does contain aggregated data only. The diagram shows the original data in a table, including detailed data like VINs. The resulting table contains clustered/grouped data without details. The result is called 2-anonymity in the example because the number of minimum rows within a cluster is two.<br>ConfigID 1 appears in two rows with different data. It’s not possible to conclude to individuals.<br>ConfigID 2 has only identical values. The result is called 1-diversity. Therefore ConfigID 2 should be removed from the resulting dataset as conclusions can be made to (the identical) individuals.</li></ul><figure><img alt="K-anonymity and l-diversity" src="https://cdn-images-1.medium.com/max/960/1*dmKlUeac2l-J0sHYx95ctg.png" /></figure><h3>Concluding remarks</h3><p>Anonymization is a complex task. Use cases and their requirements differ vastly, which makes all projects look unique. The anonymization result might be inadequate for Analytics purposes or as <a href="https://www.uclalawreview.org/pdf/57%206%203.pdf">Paul Ohm wrote in 2010</a>:</p><blockquote>Data can be either useful or perfectly anonymous but never both.</blockquote><p>Anonymization is not just a one-time step. The combination with new data may lead to unknown re-identification risks. The anonymization process and its result require continuous verification.</p><p>Trust is becoming essential when working with data — ethics and privacy have to be protected. The entire data lifecycle must ensure data protection, from creation and storage to evaluation and sharing to archiving and deletion of data. <strong>Everyone is responsible for the trustful handling of personal data:</strong> “We need to defend the interests of those whom we’ve never met and never will“ (Jeffrey D. Sachs).</p><p>The following interview about the topic has been recorded during the above mentioned DOAG conference.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxHATNhKakFc%3Fstart%3D17%26feature%3Doembed%26start%3D17&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxHATNhKakFc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxHATNhKakFc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4b5e7d04d065c0c2ea3e97bbf50f27b3/href">https://medium.com/media/4b5e7d04d065c0c2ea3e97bbf50f27b3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ee795a7cbda" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mercedes-benz-techinnovation-blog/data-privacy-anonymization-and-pseudonymization-part-2-2ee795a7cbda">Data privacy: anonymization and pseudonymization — Part 2</a> was originally published in <a href="https://medium.com/mercedes-benz-techinnovation-blog">Mercedes-Benz Tech Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data privacy: anonymization and pseudonymization — Part 1]]></title>
            <link>https://medium.com/mercedes-benz-techinnovation-blog/data-privacy-anonymization-and-pseudonymization-part-1-6b145459a3bf?source=rss-4ff79389298a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b145459a3bf</guid>
            <category><![CDATA[gdpr]]></category>
            <category><![CDATA[anonymization]]></category>
            <category><![CDATA[synthetic-data]]></category>
            <category><![CDATA[differential-privacy]]></category>
            <category><![CDATA[pseudonymization]]></category>
            <dc:creator><![CDATA[Andreas Buckenhofer]]></dc:creator>
            <pubDate>Fri, 30 Oct 2020 11:55:29 GMT</pubDate>
            <atom:updated>2020-11-06T03:58:26.310Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data privacy: anonymization and pseudonymization — Part 1</h3><p>Trustworthy handling of personal data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1LJDApTFy93IFzmbSzO4Hw.png" /></figure><p>The future is digital — there is no doubt about it. The handling of the data is crucial. Not only compliance with the General Data Protection Regulation (GDPR) plays a central role. <strong>Everyone is responsible for the trustful handling of personal data:</strong> “We need to defend the interests of those whom we’ve never met and never will“ (Jeffrey D. Sachs). The article summarizes my talk on anonymization techniques at the <a href="https://2020.doag.org/index.php?id=1449">DOAG conference</a>.</p><h3>Personal data</h3><p>The processing of personal data must be carried out following the law. Personal data as, e.g. name, birthdate, email address or place of residence are pretty obvious. But data like dynamic IP addresses or the vehicle identification number (VIN) also belong to personal data. The processing of personal data always requires a legal basis (e.g. consent) and a previously determined purpose. As a privacy friendly measure, anonymization can be employed to limit the processing of personal data where feasible. It should be noted, though, that the anonymization of personal data itself requires a legal basis.</p><p>Pseudonymization and anonymization are very <strong>different but often confused</strong>. The diagram below summarizes anonymization and pseudonymization. Pseudonymization is based on techniques such as hashing or tokenization, while anonymization techniques remove the personal reference. There is a remaining risk that data can be re-identified after anonymization. The effort for re-identification with regards to time, money, or complexity must be high enough to reduce the risk to a minimum. The GDPR does not apply to anonymous data anymore. Pseudonymization is different, though. It is still possible to follow back to individuals with a “decryption key”, and the GDPR is still applicable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYJr-ioFQnP4h8kP8MnPmw.png" /></figure><p>The example illustrates the three variants:</p><ul><li><strong>Personal</strong>: “Max Mustermann drives the vehicle with the registration number UL-WB 134”.</li><li><strong>Pseudonymous</strong>: “Mr. fe435rat5 drives the vehicle with the registration number a9f2ebfa70b02d97f7” (if there is a decryption key).</li><li><strong>Anonymous</strong>: “A car owner from Ulm drives an A180” (provided the reference group is large enough).</li></ul><h3>Examples of failed anonymization</h3><p>Incorrect processing of personal data can result in substantial fines, not to mention damage to the company’s reputation.</p><p>A taxi company in Denmark did not anonymize the data of its customers sufficiently and was fined by the authorities. The authorities rejected the taxi company’s defence that the telephone number was part of the primary key and could not be deleted. The anonymization failure by keeping phone numbers might be apparent. Still, there is also a <strong>lesson to learn for physical database design</strong>: think twice before using personal data as a primary key.</p><p>Professor Lataney Sweeney demonstrated in 1997 that 87% of Americans could be re-identified if the <strong>date of birth, gender, and zip code</strong> are provided within a data source. She used a voter register and linked the data sources together to deduct to individuals. Several years later, the Facebook myPersonality app published data along with the date of birth, gender and zip code. Therefore, the published data of the myPersonality app was only pseudonymized, but not anonymized.</p><h3>Use Cases</h3><p>An essential principle of the GDPR is data minimization. Anonymization can be an important tool to realize this principle in practice. The GDPR is no longer applicable for anonymized data. Typical use cases are listed below. Use-case relevant anonymization techniques are mentioned, too. The second part of the article describes these anonymization techniques.</p><ul><li>Data usage in <strong>test and development environments</strong>.<br>Data in such environments <strong>must be anonymous</strong>. The techniques “synthetic data with lookups or randomization” can be regarded to create a data copy.</li><li><strong>Data analytics</strong> like visualization, discovering new insights or Machine Learning.<br>The analysis can be done using techniques like “differential privacy” or a “grouping/clustering” approach. Alternatively, analysis is also possible on synthetic data that has been created by Machine Learning models to preserve statistical properties.</li></ul><p>As a single method often is not sufficient, many technologies can be combined. Gartner included laws and privacy-preserving techniques like differential privacy or synthetic data in their <a href="https://www.gartner.com/en/documents/3987903/hype-cycle-for-privacy-2020">Hype Cycle for Privacy (2020)</a>. There are also Open Source projects like <a href="https://github.com/google/rappor">Google Rappor</a> for differential privacy or <a href="http://arx.deidentifier.org/">ARX</a> containing several methods.</p><p>The <a href="https://medium.com/daimler-tss-tech/data-privacy-anonymization-and-pseudonymization-part-2-2ee795a7cbda?source=friends_link&amp;sk=1799ac8a224f207562a68d87ed7344a2">second part</a> of the article contains anonymization techniques. Stay tuned for more next week.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b145459a3bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mercedes-benz-techinnovation-blog/data-privacy-anonymization-and-pseudonymization-part-1-6b145459a3bf">Data privacy: anonymization and pseudonymization — Part 1</a> was originally published in <a href="https://medium.com/mercedes-benz-techinnovation-blog">Mercedes-Benz Tech Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Change data capture — lessons learnt]]></title>
            <link>https://medium.com/mercedes-benz-techinnovation-blog/change-data-capture-lessons-learnt-7976391cf78d?source=rss-4ff79389298a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7976391cf78d</guid>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[debezium]]></category>
            <category><![CDATA[rdbms]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle-goldengate]]></category>
            <dc:creator><![CDATA[Andreas Buckenhofer]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 05:49:29 GMT</pubDate>
            <atom:updated>2020-09-03T05:49:29.805Z</atom:updated>
            <content:encoded><![CDATA[<h3>Log-based Change Data Capture — lessons learnt</h3><h4>Overview, benefits, use cases</h4><figure><img alt="CDC architecture with source DB and target systems" src="https://cdn-images-1.medium.com/max/1024/1*IOpr53CJJbvZko5ZEinz7A.png" /><figcaption>CDC architecture</figcaption></figure><p>The article summarizes experiences from various projects with a log-based change data capture (CDC). There are many use cases for which CDC is beneficial. Some DBs even have CDC functionality integrated without requiring a separate tool.</p><h3>Change detection</h3><p>Detecting changes in transactional source systems often turn out as slow and not scalable. Lightweight, high-performance change detection is required. Well-known approaches are: change columns, triggers and log-based CDC.</p><ul><li><strong>Change columns</strong><br>Tables in the source system get created with an additional column, such as a timestamp. Such a column can be used to identify new or changed data records. <br>However, this solution does not work for deleted records. Another disadvantage is that the application needs to be changed with update logic for the column.</li><li><strong>Triggers</strong><br>Database triggers can protocol any data changes to a log table. A process transfers the data from the log table to the target.<br>This approach recognizes deletes. Additionally, the application does not need to be changed. <br>However, triggers put a strain on the source database from a performance point of view. If a transaction commits, it must wait until the trigger finished, too.</li><li><strong>Log-based CDC</strong><br>Databases write changes into their transaction log. Backup and recovery need transaction logs. Additionally, sequential writes into a transaction log are much faster compared to random writes into data files.<br>Open source tools like Debezium or commercial tools like Oracle Goldengate, IBM IIDR read changes from the log and replicate the changes to the target system.</li></ul><h3>Pros and Cons of log-based CDC</h3><p>Log-based CDC has fundamental advantages over the other change detection methods listed:</p><ul><li>The additional <strong>performance </strong>impact on the source system is low.</li><li>CDC enables the implementation of <strong>near real-time</strong> architectures with the possibility of faster and more accurate decisions based on the target systems.</li><li><strong>No significant changes</strong> to the application in the source system are necessary. Changes relate to, for example, the setting of database parameters to generate extended transaction log entries, or installing the CDC software.</li><li>CDC <strong>reduces the amount of data</strong> transmitted over the network compared to the other detection methods described above.</li><li>The coupling between source and target is <strong>asynchronous</strong>. A slow consumer does not affect the source database.</li></ul><p>Log-based CDC also has some disadvantages you must be aware of:</p><ul><li>Many commercial tools require an additional <strong>license</strong>.</li><li>Avoid <strong>no-logging transactions</strong> as these bypasses the transaction log. However, most databases allow force logging through suitable parameter settings.</li><li>Separate tools <strong>require operations</strong> and require <strong>additional know-how</strong>.</li><li><strong>Primary or unique keys</strong> are required for many log-based CDC tools — but a good database design will guarantee this requirement anyway.</li><li>If the target system is down, transaction logs must be kept until the target absorbed the changes.</li></ul><h3>How does log-based CDC work?</h3><p>The diagram above shows several uses of log-based CDC. Users or applications change data in the source database, e.g. insert, update, or delete data. The database writes all changes into the transaction log (or Write-ahead log) before integrating the changes into the data files.</p><p>The RDBMS example shows a user inserting data and a second user updating the same data in the next transaction. The transaction log contains the change protocol until some retention-interval clears the entries. The data file contains just the current state.</p><p>Databases use transaction logs primarily for backup and recovery. But the data can also be used to replicate changes into a target system. CDC tools use the database API to read from the transaction logs (or from the memory if the data is still in the DB cache) and transfer the data to a target system.</p><p>The example shows a logical view of a CDC tool reading data from the transaction log of the source system and submitting the changes to target databases or a target data lake. There is no persistent storing of the data stream within the CDC software. Kafka could be used as a log-centric approach to capture the changes long-time and submitting the changes to further target systems.</p><p>The diagram shows two cases of data propagation:</p><ul><li><strong>Replication-mode (“Target Mirror DB”)</strong><br>Replication creates a copy of the source: updates will change the data in the target. Deletes will remove data from the target.<br>The target system does not necessarily have the same structure as the source system. It is possible to only choose a subset of tables or to replicate some selected columns within a table or filter data.<br>The example shows the target DB, which contains the current state of the changes.</li><li><strong>Auditing-mode (“Target DWH DB” and “Target Data Lake”)</strong><br>Auditing-mode keeps the whole data history. The CDC tool converts updates and deletes into inserts in the “Target DWH DB” or “Target Data Lake”. A flag indicates the kind of operation (insert, update, delete) and a timestamp field tracks when the event did happen.<br>The example shows the “Target DWH DB” and “Target Data Lake”, which contain the complete protocol of changes, including operation (insert, update, delete) and timestamp.</li></ul><h3>Use Cases</h3><p>There are a variety of use cases for CDC:</p><ul><li>Replicate changes into a <strong>DWH or data lake</strong>.</li><li>Replicate changes into <strong>Kafka in a microservices architecture</strong>.</li><li><strong>Upgrade a database</strong> to a higher or the latest version with minimal downtime, e.g. upgrade PostgreSQL 11.9 to PostgreSQL 12.4.</li><li><strong>Migrate data</strong> from database X to database Y with minimal downtime, e.g. migrate MariaDB to PostgreSQL or vice versa.</li><li><strong>Transfer </strong>data into the cloud <strong>over a secure connection</strong>.</li></ul><h3>Tooling</h3><p><strong>Commercial tools like Oracle Golden Gate, IBM IIDR, and many others</strong> gained a high maturity, and the performance is excellent even during peak loads. These tools can replicate data between heterogeneous database systems.</p><p>Additionally, there are some other interesting products:</p><ul><li><a href="https://debezium.io/"><strong>Debezium</strong></a><strong> is an open-source</strong> product built on top of Kafka. Debezium has connectors to pull a change stream from DBs like <strong>PostgreSQL, MySQL, MongoDB, Cassandra</strong>, etc. and send the data to Kafka. There are some exciting activities in the open-source community going on.</li><li><strong>DynamoDB Streams</strong> can be enabled for the NoSQL DB DynamoDB. DynamoDB Streams captures table activities and provides JSON streams.</li><li>Tables in <strong>VoltDB </strong>can be declared as export targets. The declaration means that VoltDB will send a stream of changes into Kafka for such tables.</li></ul><h3>Conclusion</h3><p>CDC is an essential component in modern architectures for transferring transactional data from systems into a data stream.</p><p>CDC enables the provisioning of transactional data in real-time without causing a significant load to the source system, requires no changes in the source application and reduces the transferred amount of data to a minimum.</p><p>Keeping data in only one system is not always possible. Be cautious with personal data. You have to know all appearances of personal data for deletion requirements according to GDPR, for example. A data catalog can help to keep track of replicated sensitive data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7976391cf78d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mercedes-benz-techinnovation-blog/change-data-capture-lessons-learnt-7976391cf78d">Change data capture — lessons learnt</a> was originally published in <a href="https://medium.com/mercedes-benz-techinnovation-blog">Mercedes-Benz Tech Innovation</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>