TECHNICAL DOCUMENTATION

PII Shield for Jira Docs

Installation, zero-egress architecture verification, complete 100-rule global compliance catalog (SOC 2, GDPR, HIPAA, PCI-DSS, LGPD, FADP, APPI, PIPA, DPDP), lossless ADF redaction, and audit workflows.

1. 5-Minute Quick Start

PII Shield deploys 100% inside Atlassian Forge with automatic per-tenant schema provisioning — no external servers, API keys, or webhook tunnels to configure.

  1. Install PII Shield for Jira from the Atlassian Marketplace onto your Jira Cloud site (Jira Software and/or Jira Service Management).
  2. Upon installation, the lifecycle hook automatically initializes your isolated Forge SQL database, generates a unique 256-bit cryptographic tenant salt, and activates the default compliance packs.
  3. Open Jira Settings → Apps → PII Shield Security to access the Global Security Dashboard.
  4. Open the Historical Scan tab, toggle Scan Issue Changelog History ON, and click Start Historical Scan to audit existing tickets asynchronously via Forge Async Events.
Real-time protection is active immediately: Every newly created issue, issue update, and comment is automatically scanned inside Atlassian’s Forge runtime within seconds.

2. Verifiable Zero-Egress Architecture

PII Shield’s Forge manifest requests only the minimal Jira product scopes and Forge-hosted SQL storage. No permissions.external, remotes, or legacy Connect modules exist anywhere in the app:

permissions:
  scopes:
    - read:jira-work
    - write:jira-work
    - read:jira-user
    - storage:app

# permissions.external is completely absent -> 0 bytes outbound egress.
app:
  runtime:
    name: nodejs22.x

Zero Plaintext Storage: When a secret or PII value matches, PII Shield computes SHA-256(tenantSalt + "\0" + ruleId + "\0" + value) and generates a safely masked snippet (e.g., AKIA************6Z3R). Neighboring secrets within the preview window are also masked to prevent cross-leakage.

3. Complete 100-Rule Global Compliance Catalog

Aligned with GitHub Secret Scanning Partner Patterns, Gitleaks, Microsoft Purview SIT, and Google Cloud DLP InfoTypes. Toggle entire regional compliance packs in one click or configure individual rules inside Rules & Compliance Packs.

Rule ID Name Pack Severity Validation Gate
aws_access_keyAWS Access Key IDGlobal SecretsCriticalPrefix + Docs Example Allowlist
aws_secret_keyAWS Secret Access KeyGlobal SecretsCritical40-char Base64 + Context + Entropy ≥ 3.8
aws_session_tokenAWS Temporary Session TokenGlobal SecretsCriticalSTS Prefix (FwoG/IQoJ) or Security-Token Context + Entropy ≥ 4.0
gcp_api_keyGoogle Cloud API KeyGlobal SecretsCriticalAIza 39-char signature
gcp_service_accountGCP Service Account JSONGlobal SecretsCriticalservice_account + private_key structure
google_oauth_secretGoogle OAuth Client SecretGlobal SecretsCriticalGOCSPX- 28-char official prefix
azure_conn_stringAzure Storage / Service Bus KeyGlobal SecretsCriticalAccountKey / SharedAccessKey + Entropy ≥ 3.5
azure_sas_tokenAzure Storage / Service Bus SAS TokenGlobal SecretsCriticalsv=20xx-xx-xx + &sig= signature validation
azure_entra_client_secretAzure Entra ID Client SecretGlobal SecretsCriticalMicrosoft 8Q~ / 7Q~ structural marker + Entropy ≥ 3.6
stripe_live_keyStripe Live Secret / Restricted KeyGlobal SecretsCriticalsk_live / rk_live prefix
stripe_webhook_secretStripe Webhook Signing SecretGlobal SecretsCriticalwhsec_ official prefix
github_tokenGitHub PAT / Fine-Grained / OAuthGlobal SecretsCriticalghp/gho/ghu/ghs/ghr & github_pat_
gitlab_tokenGitLab PAT / Deploy / Runner TokenGlobal SecretsCriticalglpat- / gldt- / glrt- official prefixes
openai_api_keyOpenAI API KeyGlobal SecretsCriticalsk- / sk-proj- + Entropy ≥ 3.4
anthropic_api_keyAnthropic Claude API KeyGlobal SecretsCriticalsk-ant-api03- signature
huggingface_tokenHugging Face Access TokenGlobal SecretsCriticalhf_ prefix + Entropy ≥ 3.3
slack_tokenSlack Bot / User / Webhook TokenGlobal SecretsCriticalxox[baprs]- & hooks.slack.com
twilio_api_keyTwilio API KeyGlobal SecretsHighSK32hex + Twilio context window
sendgrid_api_keySendGrid API KeyGlobal SecretsCriticalSG.22.43 exact format
private_key_pemRSA / EC / OpenSSH Private KeyGlobal SecretsCriticalPEM header/block matcher (incl. multi-line ADF)
db_connection_uriDatabase URI with CredentialsGlobal SecretsCriticalCaptures password group only (keeps host readable)
jwt_tokenHardcoded JWT Bearer TokenGlobal SecretsHigh3-segment eyJ JWT structure
http_basic_authHTTP Basic Auth Header CredentialsGlobal SecretsCriticalDecoded Base64 user:pass validation
http_cookie_sessionHTTP Cookie / Session TokenGlobal SecretsCriticalCookie/Set-Cookie JSESSIONID/PHPSESSID/session_id + Entropy ≥ 3.2
atlassian_api_tokenAtlassian API TokenGlobal SecretsCriticalATATT3xFfGF0 signature incl. padding
npm_access_tokennpm Automation / Granular TokenGlobal SecretsCriticalnpm_ 36-char signature
pypi_api_tokenPyPI API TokenGlobal SecretsCriticalpypi-AgEIcHlwaS5vcmc signature
hashicorp_vault_tokenHashiCorp Vault Service / Batch TokenGlobal SecretsCriticalhvs. / hvb. official prefixes
datadog_api_keyDatadog API KeyGlobal SecretsHigh32-hex + Datadog context + Entropy ≥ 3.2
cloudflare_api_tokenCloudflare API TokenGlobal SecretsHigh40-char + Cloudflare context + Entropy ≥ 3.6
shopify_access_tokenShopify Admin / Custom App TokenGlobal SecretsCriticalshpat/shpca/shppa/shpss 32-hex signature
hubspot_api_tokenHubSpot Private App TokenGlobal SecretsCriticalpat-na1 / pat-eu1 UUID signature
alicloud_access_keyAlibaba Cloud AccessKey IDGlobal SecretsCriticalLTAI official prefix + Entropy ≥ 3.0
digitalocean_tokenDigitalOcean Personal / OAuth TokenGlobal SecretsCriticaldop_v1_ / doo_v1_ / dor_v1_ 64-hex signature
databricks_tokenDatabricks Personal Access TokenGlobal SecretsCriticaldapi + 32-hex official format
supabase_tokenSupabase Access / Secret TokenGlobal SecretsCriticalsbp_ 40-hex / sb_secret_ official prefix
grafana_tokenGrafana Service Account / Cloud TokenGlobal SecretsCriticalglsa_ / glc_ official prefixes
sentry_auth_tokenSentry Organization Auth TokenGlobal SecretsCriticalsntrys_ Base64 segmented signature
postman_api_keyPostman API KeyGlobal SecretsCriticalPMAK-24hex-34hex exact signature
notion_tokenNotion Integration TokenGlobal SecretsCriticalntn_ official integration prefix
linear_api_keyLinear API KeyGlobal SecretsCriticallin_api_ 40-char official format
figma_tokenFigma Personal Access TokenGlobal SecretsHighfigd_ 40-char official format
square_access_tokenSquare OAuth / Application SecretGlobal SecretsCriticalsq0csp- 43-char official format
discord_webhookDiscord Webhook URLGlobal SecretsHighOfficial discord.com/api/webhooks signature
telegram_bot_tokenTelegram Bot API TokenGlobal SecretsHighBot ID + :AA 33-char official format
generic_passwordContext Password Assignment (EN / CJK)Global SecretsHighEN/CN/JP/KR Key=Value + Entropy ≥ 3.0 + Placeholder Filter
generic_api_keyContext API Key / X-API-Key HeaderGlobal SecretsHighX-API-Key/api_key + Entropy ≥ 3.6 + UUID Filter
generic_api_secretContext API Secret / Bearer TokenGlobal SecretsHighContext + Entropy ≥ 3.6 + UUID Filter
credit_card_panCredit / Debit Card PANFinancial & PIICriticalIIN/BIN Prefix + Luhn Mod-10 + Test Card Filter
credit_card_cvvPayment Card CVV / CVC Security CodeFinancial & PIICriticalPCI-DSS Strict CVV/CVC Context + 3–4 Digits
bank_account_contextBank Account Number (Context)Financial & PIIHighMultilingual Bank Account Context + Date/Sequence Filter
swift_bic_contextSWIFT / BIC Bank IdentifierFinancial & PIIMediumISO 9362 + ISO 3166 Country Check + Context
crypto_private_keyCryptocurrency Wallet Private KeyFinancial & PIICritical64-Hex Private Key + Wallet Context + Entropy ≥ 3.5
email_addressPersonal Email Address (Optional)Financial & PIILowRFC 2606 + Internal Company Domain Allowlist
intl_phone_contextInternational Mobile / Phone (Optional)Financial & PIIMediumE.164 & EU/UK/JP/KR/AU/CN Mobile + Multilingual Context
date_of_birth_contextDate of Birth / DOB (Optional)Financial & PIIMediumStrict EN/CJK DOB Prefix + Exact Calendar Validation
ipv4_addressPublic IPv4 Address (Optional)Financial & PIILowExcludes RFC1918, Loopback, Version Strings
ipv6_addressPublic IPv6 Address (Optional)Financial & PIILowGlobal Unicast 2000::/3 (Excludes ::1, fe80::, ULA, Docs)
us_ssnUS Social Security NumberAmericasCriticalSSA Range Exclusions + Context Window
us_itinUS Individual Taxpayer IDAmericasHighOfficial IRS 9xx Group Ranges + Context
us_einUS Employer ID NumberAmericasMediumValid IRS Campus Prefixes + Context
us_aba_routingUS Bank ABA Routing NumberAmericasHighFed Reserve Prefix + Weighted Mod-10 + Context
us_medicare_mbiUS Medicare Beneficiary ID (MBI)AmericasCriticalCMS 11-Char Layout (Excludes S/L/O/I/B/Z) + Context
us_drivers_licenseUS Driver's License NumberAmericasHighStrict DLN Context + Alphanumeric Digit Check
us_phone_contextUS / Canada Phone Number (Optional)AmericasMediumNANP Rules (excludes 555-01xx) + Context
us_hipaa_mrnHIPAA Medical Record / Patient ID (Optional)AmericasHighMedical Record Context + Alphanumeric ID
ca_sinCanada Social Insurance NumberAmericasCriticalLuhn Mod-10 + Context Window
br_cpfBrazil Individual Tax ID (CPF / LGPD)AmericasCritical11-Digit Dual Mod-11 Checksum + Repeat Filter
br_cnpjBrazil Corporate Tax ID (CNPJ, Optional)AmericasMedium14-Digit Dual Weighted Mod-11 + Context
mx_curpMexico Population Registry Code (CURP)AmericasCritical32-State Table + Birth Date + RENAPO Mod-10 Check
eu_ibanEuropean IBAN Bank AccountEurope & UKCritical50-Country Exact Lengths + ISO 7064 MOD-97
uk_ninoUK National Insurance NumberEurope & UKCriticalOfficial HMRC Excluded Letters & Prefixes
uk_nhsUK NHS Medical NumberEurope & UKCriticalModulus 11 Checksum + Context
uk_sort_codeUK Bank Sort CodeEurope & UKHighXX-XX-XX Format + BACS / Sort Code Context
uk_drivers_licenseUK Driving Licence Number (DVLA)Europe & UKHighOfficial 16-Char DVLA Structure + Context
de_steuer_idGermany Tax ID (Steuer-ID)Europe & UKHighDigit Frequency + ISO/IEC 7064 Mod 11,10
fr_inseeFrance Social Security (NIR/INSEE)Europe & UKCriticalMod-97 Control Key (incl. Corsica 2A/2B)
nl_bsnNetherlands Citizen Service (BSN)Europe & UKCriticalDutch 11-proef Checksum + Context
es_dni_nieSpain National ID (DNI / NIE)Europe & UKCriticalOfficial Spain Mod-23 Control Letter + Context
it_codice_fiscaleItaly Tax Code (Codice Fiscale)Europe & UKCriticalBirth Date Code + Official Mod-26 Check Letter
ch_ahv_numberSwitzerland Social Security (AHV / AVS)Europe & UKCritical756 Prefix + Official EAN-13 Mod-10 Checksum
pl_peselPoland National / Social ID (PESEL)Europe & UKCriticalCentury-Encoded Date + Weighted Mod-10 + Context
se_personnummerSweden Personal Identity (Personnummer)Europe & UKCriticalBirth/Coordination Date + Luhn Mod-10 + Context
be_national_numberBelgium National Register (RRN / NISS)Europe & UKCriticalCalendar Date + Dual-Century Mod-97 + Context
ie_ppsnIreland Personal Public Service (PPSN)Europe & UKCriticalOfficial Revenue Weighted Mod-23 + Context
pt_nifPortugal Tax ID (NIF)Europe & UKHighValid Leading Prefix + Weighted Mod-11 + Context
eu_vatEU VAT Registration Number (Optional)Europe & UKMediumMember-State Prefix + VAT Context
eu_passport_contextInternational Passport NumberEurope & UKHighMultilingual EN/EU/CJK Passport Context + Digit Check
au_tfnAustralia Tax File NumberAPACCritical8/9-Digit ATO Weighted Mod-11 + Context
au_medicareAustralia Medicare NumberAPACHighWeighted Mod-10 Check Digit + Context
au_bsb_codeAustralia Bank BSB CodeAPACHighXXX-XXX Clearing Code + BSB Context
nz_irdNew Zealand Tax Number (IRD)APACCriticalOfficial Two-Pass Weighted Mod-11 + Context
sg_nricSingapore NRIC / FINAPACCriticalICA Weighted Mod-11 Check Letter Table
jp_my_numberJapan Individual Number (My Number)APACCritical12-Digit MIC Weighted Mod-11 + JP/EN Context
kr_rrnSouth Korea Resident Registration (RRN)APACCriticalCalendar Date + Gender + Mod-11 + KR/EN Context
in_aadhaarIndia Aadhaar Number (DPDP)APACCriticalUIDAI Prefix 2-9 + Verhoeff Checksum + Context
in_panIndia Permanent Account Number (PAN)APACHighOfficial Holder-Type 4th Letter + Context
hk_hkidHong Kong Identity Card (HKID)APACCriticalOfficial Weighted Mod-11 (0–9/A) + Context
tw_national_idTaiwan National Identification NumberAPACCriticalMOI Area Code Table + Weighted Mod-10 + Context
cn_national_idChina Resident ID Card (PIPL, Optional)APACCriticalGB 11643-1999 Calendar + Mod-11 + Context

4. Lossless ADF Tree Redaction

When an administrator clicks Redact (single or bulk), PII Shield:

  1. Re-fetches the latest live ADF JSON document from Jira REST API v3.
  2. Stitches adjacent inline text spans (catching secrets even when partially bolded or styled).
  3. Verifies the exact (ruleId, valueHash) match and performs right-to-left in-place replacement with [REDACTED: RULE_ID].
  4. Automatically prunes empty text nodes (preventing Jira v3 ADF validation errors) and writes back with notifyUsers=false so watchers aren’t spammed.

5. Handling the Jira Changelog History Trap

Because Jira Cloud REST API currently prohibits deleting individual changelog records (JRACLOUD-78612), editing or redacting a ticket leaves the original leaked value inside the issue’s History tab. PII Shield scans changelogs asynchronously, deduplicates repeated snapshots per field, tags them as History Exposure, and provides an inline remediation guide covering upstream credential rotation and clean issue clone-and-purge steps.

6. GDPR DSAR Locator & Audit Evidence Export

Under GDPR DSAR & Audit, administrators can search a customer’s email, phone number, or full name across all Jira projects using Jira’s enhanced /rest/api/3/search/jql endpoint to identify every ticket and comment holding their data. The raw query string is never logged in the Audit Trail. Export filtered findings as CSV (with spreadsheet formula-injection protection) or JSON for SOC 2 / ISO 27001 / GDPR auditors.

7. Strict RBAC & ReDoS-Protected Custom Regex