Skip to main content

Shifting from Dev to Production: A Comprehensive Guide

About 2 min

As you prepare to move from the development phase to the production phase, we have curated this comprehensive guide to assist you every step of the way. The purpose of this document is to facilitate your journey from development to production, pointing out essential considerations to ensure a smooth and seamless transition.

Identity Provider (IdP) Configuration

During your test phase in the development environment, you would have already configured at least one Identity Provider (IdP) in the Datawiza Cloud Management Console (DCMC) and within the IdP console, like Azure Portal or Okta Dashboard.

For optimal security and configuration management, we recommend creating new IdP entries in both the DCMC and IdP console for production use. This enables you to maintain separate configurations for development and production. Crucial aspects, like user restrictions or Multi-Factor Authentication (MFA) settings, can be tested in the development environment before deploying to production.

Datawiza Cloud Management Console Part

Just as with the IdP setup, you likely have configured at least one deployment in the DCMC during your development testing phase. Given that there are deployment-based configurations within the DCMC, it's practical and advantageous to maintain separate deployments for your development and production environments. Consequently, we highly recommend creating a completely new deployment configuration within DCMC to handle your transition to the production environment.

This segregates the settings, limits the risk of errors, and effectively allows you to manage resources and configurations that are unique to each environment. Hence, this approach is beneficial in ensuring the stability and performance of your production environment without affecting ongoing or future developments.

Transitioning to Production

When your development tests are accomplished, and you're ready to move to production, here are our recommended steps:

  1. Preparing for Transition (can be done at any time before going live): Use the DCMC to configure a new deployment, application, and IdP. For the upstream servers, initially opt for http://localhost:9902. This built-in configuration serves as a header-based application to read and display request headers.
  2. Setting up Datawiza Access Proxy (can be done at any time before going live): Set up and deploy the Datawiza Access Proxy on a new server and update the local DNS to point to your intended production domain. Test out the login flow and attribute pass (if necessary) right on this server.
  3. Initiating Production Phase (to be done when officially transitioning to production): When you are ready to go live with your production service, update the DNS and upstream servers to your production environment settings.

This approach ensures that you have a well-prepared and thoroughly tested system before going live, thus minimizing any potential risks or setbacks during the transition to the production phase.

Rollback Plan

Should you encounter any issues in the production phase and need to rollback, the task is quite straightforward. Simply roll back both the DNS and your service to their previous states.

Important Notice

For a header-based authentication system, it's important that the application is only accessible via the proxy, as the application trusts the request header sent from it. To understand how to add restrictions to your service, please refer to this guide.