Skip to main content

Application Deployments

Zanthem Infrastructure manages the deployment of applications to assigned hosting environments.

Clients maintain responsibility for application development, source code quality, and application functionality.

Deployment procedures are established during onboarding according to the application requirements and service agreement.

Deployment Responsibilities​

ResponsibilityZanthemClient
Application developmentNoYes
Application source controlNoYes
Application testingNoYes
Deployment environment configurationYesNo
Infrastructure resource allocationYesNo
Deployment executionYesNo
Infrastructure monitoringYesNo
Application functionality validationSharedShared
Application code remediationNoYes
Infrastructure remediationYesNo

Responsibilities may vary where additional development or operational services are included in the service agreement.

Deployment Methods​

Applications may be delivered using an approved source code or application artifact delivery method.

The delivery method must be established before the initial deployment.

Git Repository Integration​

Applications maintained in a Git repository may be configured for repository-based deployment.

Repository integration may support:

  • Client-owned private repositories
  • Client-owned public repositories
  • Approved repository service providers
  • Branch-specific deployments
  • Commit-specific deployments
  • Release-based deployment workflows

Repository provider compatibility and access requirements must be confirmed during onboarding.

Application Artifact Delivery​

Applications may also be delivered through an approved application artifact.

Examples include:

  • Compiled application files
  • Generated static websites
  • Versioned application archives
  • Prebuilt application packages

The artifact format, delivery method, and deployment procedure must be agreed with your account manager.

Repository Integration​

For repository-based deployments, provide the following information to your account manager:

ConfigurationExample
Repository URLhttps://git.example.com/company/application.git
Deployment branchmain
Application directory/
Dependency installation commandnpm ci
Build commandnpm run build
Startup commandnpm run start
Static output directorydist, where applicable
RuntimeNode.js 22
Internal application port3000, where applicable

These values are illustrative.

Provide the actual requirements for your application.

Private Repository Access​

Private repository integration requires an approved authentication mechanism.

Depending on the repository provider, this may include:

  • Read-only SSH deployment keys
  • Scoped repository access tokens
  • Repository application integrations
  • Other approved access methods

Zanthem will provide the information necessary to authorize access to the assigned repository.

Repository access should be restricted to the minimum permissions required for deployment.

SSH Deployment Key Integration​

Where SSH deployment keys are supported, Zanthem may provide a public deployment key.

The general configuration process is:

  1. Obtain the public deployment key from Zanthem.
  2. Open the repository's access settings.
  3. Locate the deployment key configuration.
  4. Add the supplied public key.
  5. Restrict the key to read-only access.
  6. Notify your account manager.
  7. Zanthem verifies repository connectivity.

Your repository provider's interface may differ from this general procedure.

:::warning Repository credentials

Do not provide personal account passwords or unrestricted administrative credentials for repository access.

Repository access should use dedicated, appropriately scoped credentials.

:::

Deployment Branches​

Applications may be configured to deploy from a designated repository branch.

Example branch configuration:

BranchEnvironment
mainProduction
developDevelopment
stagingStaging

This configuration is illustrative.

Separate application environments must be provisioned and approved before use.

A branch does not automatically create a corresponding hosting environment.

Initial Application Deployment​

The initial application deployment generally consists of:

  1. Validate application requirements.
  2. Establish repository or artifact access.
  3. Configure the deployment environment.
  4. Configure required environment variables.
  5. Install application dependencies.
  6. Build the application, where required.
  7. Start or publish the application.
  8. Perform infrastructure connectivity checks.
  9. Validate the application endpoint.
  10. Coordinate client acceptance testing.

Additional procedures may apply to applications with specialized requirements.

Application Build Process​

Applications requiring a production build must provide reproducible build instructions.

Example Node.js Build​

npm ci
npm run build

Example Static Website​

Install command: npm ci
Build command: npm run build
Output directory: build

Example Server-Side Application​

Install command: npm ci
Build command: npm run build
Startup command: npm run start
Internal port: 3000

Zanthem configures the deployment environment using the agreed application requirements.

Applications are not required to include custom container definitions unless specifically agreed as part of a specialized deployment configuration.

Deployment Triggers​

Deployment triggers determine when an application update is deployed.

Depending on the established configuration, deployments may be initiated through:

  • Approved source repository updates
  • Deployment webhooks
  • Release or commit selection
  • Requests submitted through your account manager

Automatic deployments must be explicitly configured for the assigned application.

Automatic Deployments​

Where enabled, automatic deployments allow approved source repository changes to initiate the deployment process.

A typical automatic deployment workflow is:

  1. Application changes are developed and tested.
  2. Changes are committed to the source repository.
  3. Changes are merged into the configured deployment branch.
  4. The configured deployment trigger notifies Zanthem's hosting infrastructure.
  5. The application build and deployment process executes.
  6. Deployment health is evaluated according to the configured checks.

Automatic deployment does not provide clients with access to infrastructure management interfaces.

Example Repository Update​

git add .
git commit -m "Update application"
git push origin main

This example assumes that main has been approved as the application's deployment branch.

Pushing changes to an approved deployment branch may initiate a production deployment.

:::warning Production deployments

Do not push untested changes directly to a production deployment branch.

Organizations should implement appropriate code review, testing, and branch protection procedures before enabling automatic production deployments.

:::

Webhook Integration​

Applications using repository-triggered deployments may require a webhook.

If applicable, your account manager will provide:

ConfigurationDescription
Webhook URLAssigned deployment notification endpoint.
Event typeRepository event that initiates deployment processing.
Branch configurationApproved deployment branch, where applicable.
Authentication configurationRequired webhook authentication or verification mechanism.
Content typeRequired webhook request format, where applicable.

General Configuration Procedure​

  1. Open the webhook settings for your source repository.
  2. Create a new webhook.
  3. Enter the endpoint provided by Zanthem.
  4. Configure the supplied authentication information.
  5. Select the approved repository events.
  6. Save the webhook configuration.
  7. Notify your account manager.
  8. Coordinate a deployment trigger test.

Webhook authentication and event configuration depend on the source repository provider and assigned deployment method.

Do not expose webhook credentials or sensitive deployment endpoints in public documentation or application source code.

Coordinated Deployments​

Applications that do not use automatic deployments may be updated through a coordinated deployment request.

Provide your account manager with:

  • Application identifier
  • Target application environment
  • Requested application version
  • Repository commit, branch, or release identifier
  • Requested deployment window
  • Relevant configuration changes
  • Expected application impact
  • Rollback considerations

Example Deployment Request​

Application: Example Customer Portal
Environment: Production
Release: v1.4.0
Source branch: main
Requested deployment: Coordinated release window
Configuration changes: None
Persistent data changes: None
Rollback target: v1.3.2

Deployment scheduling is coordinated according to the applicable service agreement.

Application Environments​

Separate application environments may be provisioned where required.

EnvironmentPurpose
DevelopmentApplication development and integration testing.
StagingPre-production testing and release validation.
ProductionLive application operation.

Each environment may have independent:

  • Application endpoints
  • Environment variables
  • Authentication client configuration
  • Deployment branches
  • Resource allocations
  • Persistent storage
  • External service dependencies

Additional environments must be requested through your account manager.

Production credentials should not be reused in development or staging environments.

Environment Variable Changes​

Application configuration changes may require updates to the assigned deployment environment.

When requesting a configuration change, identify:

  • Application identifier
  • Target environment
  • Environment variable name
  • Whether the variable is required at build time or runtime
  • Whether the value is confidential
  • Whether a rebuild or restart is required

Confidential values must be supplied through an approved secure communication method.

Changes to build-time variables may require rebuilding the application.

Changes to runtime variables may require an application restart or redeployment.

Persistent Data Changes​

Application deployments may include changes affecting persistent application data.

Examples include:

  • Data format changes
  • Schema migrations
  • Storage directory changes
  • Application state transformations

Communicate these requirements before deployment.

Applications should account for the compatibility of persistent data with both the new application version and any potential rollback version.

Rolling back application source code does not necessarily reverse changes to persistent data.

Deployment Status​

Deployment status may be communicated through your assigned account manager or another approved notification method.

Typical deployment states include:

StatusDescription
RequestedDeployment has been requested.
QueuedDeployment is awaiting execution.
BuildingApplication dependencies or build artifacts are being prepared.
DeployingApplication version is being published or started.
ValidatingConfigured deployment checks are being performed.
SuccessfulDeployment has completed its configured checks.
FailedDeployment could not be completed successfully.
Rolled backA previous application version has been restored.

A successful infrastructure deployment does not guarantee that every application feature is functioning correctly.

Clients remain responsible for validating application-specific functionality.

Deployment Validation​

After an application deployment, validate the functionality relevant to the release.

Recommended validation includes:

  • Application endpoint accessibility
  • HTTPS connectivity
  • Application navigation
  • Static asset availability
  • User authentication
  • Application-level authorization
  • External API connectivity
  • Application-specific functionality
  • Persistent data accessibility

Application-specific acceptance criteria should be established by the client.

Failed Deployments​

Deployments may fail for reasons including:

  • Missing dependencies
  • Invalid build configuration
  • Unsupported runtime version
  • Application compilation errors
  • Missing environment variables
  • Application startup failure
  • Incorrect listening port
  • Failed health checks
  • External dependency failures

Zanthem will determine whether the failure is related to infrastructure configuration or application functionality.

Application-related failures may require changes to the client-maintained source code.

A failed deployment may leave the previous application version active, depending on the configured deployment procedure.

Do not assume that every failed deployment is non-disruptive.

Deployment Logs​

Deployment logs may contain information necessary to diagnose application build or startup failures.

Clients may request relevant deployment diagnostics through their account manager.

Zanthem may sanitize infrastructure-specific or confidential information before providing diagnostic logs.

Clients do not require direct access to infrastructure management interfaces to receive deployment diagnostics.

Application Rollbacks​

A rollback restores a previously approved application version where supported by the deployment configuration.

When requesting a rollback, provide:

  • Application identifier
  • Affected environment
  • Current application version
  • Requested rollback version
  • Reason for rollback
  • Known configuration or persistent data changes

Rollback availability depends on factors including:

  • Availability of the previous source revision
  • Availability of previous application artifacts
  • Runtime compatibility
  • Environment configuration compatibility
  • Persistent data compatibility

:::warning Persistent data compatibility

Restoring a previous application version does not automatically restore previously modified persistent data.

Applications that perform irreversible data changes may require a separate recovery procedure.

Coordinate rollback requirements with your account manager before deployments involving significant data changes.

:::

Application Maintenance​

Applications should be maintained to address:

  • Application security vulnerabilities
  • Dependency security vulnerabilities
  • Runtime compatibility requirements
  • Application performance issues
  • Application functionality defects

Zanthem may identify infrastructure or application compatibility concerns that require client-side changes.

Application remediation remains the client's responsibility unless otherwise established in the service agreement.

Requesting Deployment Configuration Changes​

Contact your account manager to request:

  • Deployment branch changes
  • Repository changes
  • Build command changes
  • Runtime version changes
  • Environment variable changes
  • Automatic deployment configuration
  • Additional application environments
  • Resource allocation changes
  • Application routing changes
  • Deployment rollback

Infrastructure configuration changes must be performed by authorized Zanthem personnel.