Skip to content

feat(W-23201584): surface App Attestation state in developer info screen - #2978

Open
wmathurin wants to merge 4 commits into
forcedotcom:devfrom
wmathurin:W-23201584-app-attestation-dev-info
Open

feat(W-23201584): surface App Attestation state in developer info screen#2978
wmathurin wants to merge 4 commits into
forcedotcom:devfrom
wmathurin:W-23201584-app-attestation-dev-info

Conversation

@wmathurin

Copy link
Copy Markdown
Contributor

Summary

  • Features.java: adds FEATURE_APP_ATTESTATION = "AA" constant
  • DevSupportInfo.kt: adds parseAppAttestationSection() companion function with 5 rows:
    • Attestation Enabled (appAttestationClient != null && apiHostName != null)
    • API Host (apiHostName or "N/A")
    • Google Cloud Project ID (or "N/A")
    • Integrity Provider Ready (integrityTokenProvider != null → true/false/N/A)
    • Feature Flag (AA) (true/false/N/A based on current user)
  • SalesforceSDKManager.kt: wires additionalSections.add(parseAppAttestationSection(...)) in devSupportInfo getter alongside the RTR section

Tests

Added 7 unit tests in DevSupportInfoTest.kt:

  • No client → all fields N/A or false
  • Client without apiHostName → Attestation Enabled: false
  • Client with host, provider not ready → Enabled: true, Provider Ready: false
  • Fully configured → all fields populated
  • Feature flag: N/A when no user, false when user has no AA flag, true when flag registered

Related

- Features.java: add FEATURE_APP_ATTESTATION = "AA"
- DevSupportInfo.kt: add parseAppAttestationSection() companion function
  with 5 rows: Attestation Enabled, API Host, Google Cloud Project ID,
  Integrity Provider Ready, Feature Flag (AA)
- SalesforceSDKManager.kt: wire additionalSections.add(parseAppAttestationSection(...))
  in devSupportInfo getter alongside the existing RTR section
- DevSupportInfoTest.kt: add 7 unit tests covering all field combinations
  (no client, client without host, client with host/provider not ready,
  fully configured, and feature flag N/A/false/true)
} else "N/A"
val providerReady = when {
appAttestationClient == null -> "N/A"
appAttestationClient.integrityTokenProvider != null -> "true"

@github-actions github-actions Bot Aug 6, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This method should only be accessed from tests or within private scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant