docs/self-hosting/guides/upgrading-infisical.mdx
Keeping your Infisical instance up to date is key to making sure you receive the latest performance improvements, security patches, and feature updates. We release updates approximately once a week, which may include new features, bug fixes, performance enhancements, and critical security patches.
Since secrets management is a critical component of your infrastructure, we aim to avoid disruptive changes that will impact fetching secrets in downstream clients. If a release requires specific attention, a note will be attached to the corresponding release version.
During an upgrade, two key components are updated:
Before You Upgrade:
Always back up your database. While our automated migration system is robust, having a backup ensures you can recover quickly in the event of an issue.
In previous versions (prior to v0.111.0-postgres), schema migrations had to be executed manually before starting the application.
Now, migrations run automatically during boot-up. This improvement streamlines the upgrade process, reduces manual steps, and minimizes the risk of inconsistencies between your database schema and application code.
Seamless Integration:
Migrations are now part of the boot-up process, removing the need for manual intervention.
Synchronous Upgrades:
In multi-instance deployments, one instance acquires a lock and performs the migration while the others wait. This ensures that if a migration fails, the rollout is halted to prevent inconsistencies.
Reduced Room for Error:
Automatic migrations help ensure that your database schema always remains in sync with your application code.
Back Up Your Data:
Plan Your Upgrade Path:
Start the Upgrade Process:
Multi-Instance Coordination:
Verify the Upgrade:
After upgrading your Infisical instance, you may encounter UI-related issues such as:
These issues are often caused by browser caching of the previous version's static assets.
Solution:
Ctrl+Shift+Delete (Windows/Linux) or Cmd+Shift+Delete (Mac)Ctrl+Shift+Delete (Windows/Linux) or Cmd+Shift+Delete (Mac)Cmd+Option+E or go to Develop menu > Empty CachesCtrl+F5 (Windows/Linux) or Cmd+Shift+R (Mac)While we recommend staying up-to-date with the latest version, there may be scenarios where you need to downgrade your Infisical instance.
<Warning> **Database Compatibility:** Downgrading can be complex due to database schema changes. Always ensure you have proper backups before attempting any version changes. </Warning>Prepare Database Snapshot:
Stop Infisical Services:
Restore Database:
Deploy Previous Version:
Verify Functionality: