Salesforce Enterprise Security and Procurement Guide
On this page
Use this guide when preparing a Salesforce-backed BuoyForms rollout for enterprise review, security review, or AppExchange planning. It complements the Salesforce setup guide by documenting operational posture rather than step-by-step mapping.
Create one Salesforce Connected App per environment. Use separate callback URLs for production, staging, and sandbox validation so test authorizations never share credentials with production.
Recommended OAuth settings:
- Enable OAuth web server flow.
- Require the
apiscope for object metadata and record create/upsert. - Require
refresh_tokenor its synonymoffline_accessfor background submission sync. Current BuoyForms OAuth requestsapi refresh_token, and submission sync runs in queue workers. - Avoid broad identity, full, chatter, or admin scopes unless a customer-specific implementation explicitly requires them.
- Rotate the client secret after failed pilots, vendor transitions, or suspected exposure.
Before launch expansion, confirm that the customer’s Salesforce admin has reviewed which objects can be written by the integration user. BuoyForms should be mapped only to the objects needed for the migration or form workflow, usually Lead, Contact, Case, or a named custom object.
Minimum evidence for the procurement packet:
- Connected App client ID and callback URL by environment.
- OAuth scopes used and why each is needed.
- Integration user profile or permission set name.
- Target objects and mapped fields.
- Required-field validation result from object metadata.
- Sandbox test record link or record ID.
BuoyForms is not AppExchange-listed until packaging and Salesforce security review are complete. Use this checklist to prepare that track without overstating current availability.
- Package strategy selected: managed package, unmanaged metadata helper, or connected-app-only deployment.
- OAuth scopes reviewed for least privilege.
- Connected App setup screenshots captured.
- Security review materials collected for data flow, token storage, logging, and incident response.
- Sandbox create/upsert tests pass with logs.
- Retry and idempotency behavior documented for duplicate-prevention review.
- Customer-facing setup guide and troubleshooting guide are linked from the implementation packet.
The Salesforce Health Center should be reviewed before customer signoff. Capture the following fields in the handoff packet or implementation notes:
- Connection status and token health.
- Last successful sync and last failure.
- Mapped object count, mapped form count, and mapped field count.
- Recent sync logs and retry queue status.
- Admin alerts for repeated sync failures, token attention, or failed retry queue items.
Repeated Salesforce failures should block migration signoff until a sandbox test passes or the customer accepts the limitation in writing.
Merged #336 and #341 implement Disconnect by revoking the connection's stored refresh token before removing its salesforce_orgs row. The source sends a form-encoded POST to https://login.salesforce.com/services/oauth2/revoke for production connections or https://test.salesforce.com/services/oauth2/revoke for sandboxes. The stored environment flag selects the host. Inactive connections follow the same process. Tokens are never put in the URL, and redirects are rejected.
HTTP 200 confirms revocation. HTTP 400 with a JSON error equal to invalid_token is treated as already revoked and also permits local removal. A later disconnect can therefore retry after Salesforce revoked the token but the local transaction failed. Other responses, including another HTTP 400 error or refresh-path invalid_grant, do not authorize removal. The request has a 10-second deadline. A timeout, lost response, unreadable ciphertext, or malformed refresh token retains the encrypted credentials. No force-delete or automatic retry is included.
The local delete checks the organization, connection ID, encrypted credential snapshot, and sandbox flag. Credentials changed by a concurrent refresh or reconnect remain stored, and disconnect reports an error. This check does not cancel an in-flight Salesforce request. Disconnect does not delete generic integration rows or form mappings.
The server-function path supplies a success audit that commits in the same database transaction as the conditional local delete. If that audit fails, the delete rolls back. The audit distinguishes confirmed revocation and local removal, local absence without a revocation attempt, and failures with retained or unconfirmed local state. No token, ciphertext, raw provider body, or raw revocation exception is included in these records.
Remote Salesforce revocation is outside the local database transaction. A local transaction failure can leave a row whose token has already been revoked. Refresh the settings page before trying again. A later HTTP 400 invalid_token from the revoke endpoint allows the local delete and success audit to be retried together.
The merged PRs record source review and bounded test evidence, including real PostgreSQL rollback and retry checks. They do not prove that a target environment runs this implementation or that a real Salesforce token was revoked. Target-environment rollout evidence, real sandbox acceptance, package strategy, security review, and support/ops signoff remain pending. Refresh-failure handling and Salesforce permissions are unchanged.
If Salesforce sync fails after launch, pause the affected mapping before publishing additional migrated forms. Preserve integration logs, failed side-effect tasks, Salesforce API responses, and customer-visible submission IDs. Re-enable only after a small replay or test mapping succeeds.
Rollback evidence should include:
- Form ID and mapping config ID.
- Salesforce org ID and environment type.
- Failed submission IDs.
- Error messages and status codes.
- Retry count and next retry time.
- Customer communication timestamp.
Does BuoyForms require a Salesforce managed package? Not for the current integration path. The primary integration uses OAuth, object metadata, field mappings, and record create/upsert. A managed package can be evaluated for future enterprise packaging.
Can BuoyForms test in a sandbox before production? Yes. Connect a sandbox org, map the form, run Test Mapping, submit a real draft form response, and verify the created or upserted Salesforce record.
Can historical GetFeedback responses be inserted into Salesforce automatically? Do not assume automatic insertion. Preserve historical exports during migration and use the guarded historical import workflow only when the customer approves mapping, dry-run results, and duplicate policy.
What blocks launch expansion? Do not expand Salesforce-native claims until sandbox create/upsert, logs, retry status, and mapping validation pass for the customer workflow.