TECHNICAL DOCUMENTATION

PII Shield for Jira Docs

Installation, zero-egress architecture verification, complete 46-rule compliance catalog, lossless ADF redaction, and SOC 2 / GDPR 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 46-Rule Compliance Catalog

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
gcp_api_keyGoogle Cloud API KeyGlobal SecretsCriticalAIza 39-char signature
gcp_service_accountGCP Service Account JSONGlobal SecretsCriticalservice_account + private_key structure
azure_conn_stringAzure Storage / Service Bus KeyGlobal SecretsCriticalAccountKey / SharedAccessKey + Entropy ≥ 3.5
stripe_live_keyStripe Live Secret / Restricted KeyGlobal SecretsCriticalsk_live / rk_live prefix
github_tokenGitHub PAT / Fine-Grained / OAuthGlobal SecretsCriticalghp/gho/ghu/ghs/ghr & github_pat_
gitlab_tokenGitLab Personal Access TokenGlobal SecretsCriticalglpat- signature
openai_api_keyOpenAI API KeyGlobal SecretsCriticalsk- / sk-proj- + Entropy ≥ 3.4
anthropic_api_keyAnthropic Claude API KeyGlobal SecretsCriticalsk-ant-api03- signature
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
db_connection_uriDatabase URI with CredentialsGlobal SecretsCriticalCaptures password group only (keeps host readable)
jwt_tokenHardcoded JWT Bearer TokenGlobal SecretsHigh3-segment eyJ JWT structure
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 TokenGlobal SecretsCriticalhvs. signature
datadog_api_keyDatadog API KeyGlobal SecretsHigh32-hex + Datadog context + Entropy ≥ 3.2
cloudflare_api_tokenCloudflare API TokenGlobal SecretsHigh40-char + Cloudflare context + Entropy ≥ 3.6
generic_passwordContext Password AssignmentGlobal SecretsHighKey=Value + Entropy ≥ 3.0 + Placeholder 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
swift_bic_contextSWIFT / BIC Bank IdentifierFinancial & PIIMediumISO 9362 + ISO 3166 Country Check + Context
email_addressPersonal Email Address (Optional)Financial & PIILowRFC 2606 + Internal Company Domain Allowlist
ipv4_addressPublic IPv4 Address (Optional)Financial & PIILowExcludes RFC1918, Loopback, Version Strings
us_ssnUS Social Security NumberUS & CanadaCriticalSSA Range Exclusions + Context Window
us_itinUS Individual Taxpayer IDUS & CanadaHighOfficial IRS 9xx Group Ranges + Context
us_einUS Employer ID NumberUS & CanadaMediumValid IRS Campus Prefixes + Context
us_aba_routingUS Bank ABA Routing NumberUS & CanadaHighFed Reserve Prefix + Weighted Mod-10 + Context
us_phone_contextUS / Canada Phone Number (Optional)US & CanadaMediumNANP Rules (excludes 555-01xx) + Context
us_hipaa_mrnHIPAA Medical Record / Patient IDUS & CanadaHighMedical Record Context + Alphanumeric ID
ca_sinCanada Social Insurance NumberUS & CanadaCriticalLuhn Mod-10 + Context Window
eu_ibanEuropean IBAN Bank AccountEU & UK GDPRCritical50-Country Exact Lengths + ISO 7064 MOD-97
uk_ninoUK National Insurance NumberEU & UK GDPRCriticalOfficial HMRC Excluded Letters & Prefixes
uk_nhsUK NHS Medical NumberEU & UK GDPRCriticalModulus 11 Checksum + Context
de_steuer_idGermany Tax ID (Steuer-ID)EU & UK GDPRHighDigit Frequency + ISO/IEC 7064 Mod 11,10
fr_inseeFrance Social Security (NIR/INSEE)EU & UK GDPRCriticalMod-97 Control Key (incl. Corsica 2A/2B)
nl_bsnNetherlands Citizen Service (BSN)EU & UK GDPRCriticalDutch 11-proef Checksum + Context
eu_vatEU VAT Registration Number (Optional)EU & UK GDPRMediumMember-State Prefix + VAT Context
eu_passport_contextEU / UK Passport NumberEU & UK GDPRHighMultilingual 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
sg_nricSingapore NRIC / FINAPACCriticalICA Weighted Mod-11 Check Letter Table

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