Managing Remotes

Permguard can be installed in any environment, allowing multiple instances of the Permguard server to be deployed.

A recommended best practice is to set up a dedicated Permguard server for each environment, such as:

  • Development
  • Staging
  • Production

This separation ensures secure and isolated permission management for each stage of the deployment pipeline.

Managing Multiple Servers

When handling multiple Permguard servers and provisioning configurations, it is crucial to correctly configure remote connections. This setup enables smooth communication and coordination between different Permguard instances.

To add a new remote, use the following remote command:

 permguard remote add origin localhost

and it can be removed using the remote command:

 permguard remote remove origin

If the Permguard server ports differ from the default values (zap:9091 and pap:9092), you can specify the custom port numbers using the --zap and --pap flag:

 permguard remote add origin localhost --zap 9091 --pap 9092