Class GlobalConfig.StateConfig

java.lang.Object
cloud.kitelang.cli.config.GlobalConfig.StateConfig
Enclosing class:
GlobalConfig

public static class GlobalConfig.StateConfig extends Object
State backend configuration.
  • Constructor Details

    • StateConfig

      public StateConfig()
  • Method Details

    • getEffectivePassword

      public String getEffectivePassword(String project, String environment)
      Gets the effective password with priority: env var > config file. Environment variable format: KITE__{PROJECT}__{ENVIRONMENT}__DB_PASSWORD
      Parameters:
      project - the project name
      environment - the environment name (e.g., "prod", "dev")
      Returns:
      the resolved password
    • hasPassword

      public boolean hasPassword(String project, String environment)
      Checks if password is available from any source.
      Parameters:
      project - the project name
      environment - the environment name
      Returns:
      true if password is available