Configure Secure Code Uploads
To upload code securely, use two-factor authentication to upload the code to the staging instance. After the code is on the staging instance, use code replication to propagate the code from staging to the production instance.
For a human user, use a Business Manager or Account Manager username and password as
the first factor for uploading to staging. For an automated script, use Account Manager to
get an authorization token for a Client ID and use that as the first factor. See OCAPI OAuth 2.0 23.2 for details
about authenticating an API client. The second factor of authentication for code uploads to
staging is always a client certificate. To enforce this process of secure uploads, make
sure that your configuration requires two-factor authentication for uploading code to the
staging instance, and disallows code uploads to the production instance. As of August 1,
2020, Salesforce mandates these settings.
-
See if two-factor authentication is required for uploading code to your staging
instance and enable if necessary:
-
See if code uploads are allowed to your production instance and disallow if
necessary: