<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Protegrity Anonymization on</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/</link><description>Recent content in Protegrity Anonymization on</description><generator>Hugo</generator><language>en</language><atom:link href="https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/index.xml" rel="self" type="application/rss+xml"/><item><title>Prerequisites</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/prereqs/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/prereqs/</guid><description>&lt;p>Ensure the following prerequisites are met:&lt;/p>
&lt;h3 id="tools">Tools&lt;/h3>
&lt;p>Install and configure the following tools on the jumpbox:&lt;/p>
&lt;ul>
&lt;li>&lt;code>opentofu&lt;/code> 1.10 or later. For more information about installation steps, refer to &lt;a href="https://opentofu.org/docs/intro/install">OpenTofu Installation&lt;/a>.&lt;/li>
&lt;li>&lt;code>helm&lt;/code> 3.12+, &lt;code>kubectl&lt;/code> 1.27+, and &lt;code>aws&lt;/code> CLI v2 with access to the Protegrity Provisioned Cluster (PPC).&lt;/li>
&lt;/ul>
&lt;h3 id="aws-setup">AWS Setup&lt;/h3>
&lt;p>Ensure that the following AWS requirements are met:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>A Protegrity Provisioned Cluster (PPC) is available. For more information about PPC, refer to &lt;a href="http://10.39.2.150:6060/docs/infrastructure/ppc/">Protegrity Provisioned Cluster&lt;/a>.&lt;/p></description></item><item><title>Installing Protegrity Anonymization</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/install_anon/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/install_anon/</guid><description>&lt;blockquote>
&lt;p>&lt;strong>Note&lt;/strong>: This guide uses version &lt;code>2.0.1&lt;/code> throughout. Replace &lt;code>2.0.1&lt;/code> with the version you are installing, including in the &lt;a href="https://docs.protegrity.com/aiteam-edition/docs/using_anon/py_sdk_install/">Python SDK Installation&lt;/a> section.&lt;/p>&lt;/blockquote>
&lt;p>This project deploys the Protegrity Anonymization service on Amazon EKS as part of the Protegrity AI Team Edition.&lt;/p>
&lt;h3 id="deployment-steps">Deployment Steps&lt;/h3>
&lt;h4 id="1-provision-cloud-infrastructure-with-opentofu">1. Provision Cloud Infrastructure with OpenTofu&lt;/h4>
&lt;p>The OpenTofu module creates the S3 bucket, IAM role, EKS Pod Identity association, and Karpenter NodePool. It also writes &lt;code>anonymization-values.yaml&lt;/code> with cloud-specific Helm overrides.&lt;/p></description></item><item><title>Configuring Protegrity Anonymization</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/config_anon/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/config_anon/</guid><description>&lt;blockquote>
&lt;p>&lt;strong>Warning&lt;/strong>: Use the &lt;code>-k&lt;/code> flag only in development or trusted internal environments. Do not use it in production, where valid certificates must be configured.&lt;/p>&lt;/blockquote>
&lt;h3 id="role-update-and-user-creation">Role Update and User Creation&lt;/h3>
&lt;p>After deployment, update the default &lt;code>anonymization_administrator&lt;/code> role to include the &lt;code>can_create_token&lt;/code> permission and then create a user with this role.&lt;/p>
&lt;h4 id="1-update-anonymization_administrator-role-permission">1. Update &lt;code>anonymization_administrator&lt;/code> role permission&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#204a87">export&lt;/span> &lt;span style="color:#000">GATEWAY_URL&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;https://&lt;/span>&lt;span style="color:#204a87;font-weight:bold">$(&lt;/span>kubectl get configmap/nfa-config -n default -o &lt;span style="color:#000">jsonpath&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#4e9a06">&amp;#39;{.data.FQDN}&amp;#39;&lt;/span>&lt;span style="color:#204a87;font-weight:bold">)&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># 1. Obtain an Authentication Token&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#000">TOKEN&lt;/span>&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>&lt;span style="color:#204a87;font-weight:bold">$(&lt;/span>curl -sk -X POST &lt;span style="color:#4e9a06">&amp;#34;&lt;/span>&lt;span style="color:#4e9a06">${&lt;/span>&lt;span style="color:#000">GATEWAY_URL&lt;/span>&lt;span style="color:#4e9a06">}&lt;/span>&lt;span style="color:#4e9a06">/api/v1/auth/login/token&amp;#34;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#39;Content-Type: application/x-www-form-urlencoded&amp;#39;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -d &lt;span style="color:#4e9a06">&amp;#39;loginname=admin&amp;amp;password=Admin123!&amp;#39;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -D - -o /dev/null &lt;span style="color:#000;font-weight:bold">|&lt;/span> grep -i &lt;span style="color:#4e9a06">&amp;#39;pty_access_jwt_token&amp;#39;&lt;/span> &lt;span style="color:#000;font-weight:bold">|&lt;/span> awk &lt;span style="color:#4e9a06">&amp;#39;{print $2}&amp;#39;&lt;/span> &lt;span style="color:#000;font-weight:bold">|&lt;/span> tr -d &lt;span style="color:#4e9a06">&amp;#39;\r\n&amp;#39;&lt;/span>&lt;span style="color:#204a87;font-weight:bold">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>curl -sk -X PUT &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> &lt;span style="color:#4e9a06">&amp;#34;&lt;/span>&lt;span style="color:#4e9a06">${&lt;/span>&lt;span style="color:#000">GATEWAY_URL&lt;/span>&lt;span style="color:#4e9a06">}&lt;/span>&lt;span style="color:#4e9a06">/pty/v1/auth/roles&amp;#34;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#39;accept: application/json&amp;#39;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#34;Authorization: Bearer &lt;/span>&lt;span style="color:#4e9a06">${&lt;/span>&lt;span style="color:#000">TOKEN&lt;/span>&lt;span style="color:#4e9a06">}&lt;/span>&lt;span style="color:#4e9a06">&amp;#34;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -H &lt;span style="color:#4e9a06">&amp;#39;Content-Type: application/json&amp;#39;&lt;/span> &lt;span style="color:#4e9a06">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06">&lt;/span> -d &lt;span style="color:#4e9a06">&amp;#39;{
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> &amp;#34;name&amp;#34;: &amp;#34;anonymization_administrator&amp;#34;,
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> &amp;#34;description&amp;#34;: &amp;#34;Administrator role&amp;#34;,
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> &amp;#34;permissions&amp;#34;: [
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> &amp;#34;can_create_token&amp;#34;,
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> &amp;#34;anonymization_operations_admin&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> ]
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#4e9a06"> }&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="2-create-a-user-with-the-anonymization_administrator-role">2. Create a user with the &lt;code>anonymization_administrator&lt;/code> role&lt;/h4>
&lt;p>Use the following request payload when creating the user:&lt;/p></description></item><item><title>Protegrity Anonymization Python SDK Installation</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/python_sdk_install/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/python_sdk_install/</guid><description>&lt;p>Use this section to install, configure, and validate the Python SDK for Protegrity Anonymization.&lt;/p>
&lt;h3 id="prerequisites">Prerequisites&lt;/h3>
&lt;p>Ensure one of the following is met:&lt;/p>
&lt;ul>
&lt;li>&lt;code>pip&lt;/code> is available in your active Python virtual environment.&lt;/li>
&lt;li>A conda environment is activated.&lt;/li>
&lt;/ul>
&lt;h3 id="overview">Overview&lt;/h3>
&lt;p>Use the Python SDK to access the Anonymization service programmatically.&lt;/p>
&lt;h4 id="1-install-the-anonymization-python-sdk">1. Install the Anonymization Python SDK&lt;/h4>
&lt;p>Install the SDK using &lt;code>pip&lt;/code> or &lt;code>conda&lt;/code> using the version that matches the deployed Anonymization service.&lt;/p>
&lt;p>&lt;strong>Using pip:&lt;/strong>&lt;/p></description></item><item><title>Uninstallation and Cleanup Protegrity Anonymization</title><link>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/uninstall_anon/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.protegrity.com/aiteam-edition/docs/data_privacy/anon/uninstall_anon/</guid><description>&lt;p>To remove the Anonymization service and all associated Kubernetes and AWS resources:&lt;/p>
&lt;h4 id="1-uninstall-the-helm-release">1. Uninstall the Helm release&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># Removes all chart resources. PVC data is RETAINED by default (retentionPolicy: whenDeleted=Retain).&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>helm uninstall anonymization -n anon-ns
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#8f5902;font-style:italic"># To also delete the database PVC:&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>kubectl delete pvc -n anon-ns -l app.kubernetes.io/name&lt;span style="color:#ce5c00;font-weight:bold">=&lt;/span>anonymization
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Optionally, delete the namespace after the Helm release and PVCs are removed using the following command:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>kubectl delete namespace anon-ns
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="2-destroy-opentofu-infrastructure">2. Destroy OpenTofu infrastructure&lt;/h4>
&lt;blockquote>
&lt;p>&lt;strong>Warning&lt;/strong>: &lt;code>tofu destroy&lt;/code> deletes the S3 bucket, including all stored input and output datasets. Back up any data you need before proceeding.&lt;/p></description></item></channel></rss>