All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public final class Config extends GlobalConfiguration
Global configuration for the Cortex Cloud Jenkins plugin. This mirrors the role of the legacy Prisma Cloud Compute plugin's Config (a singleton GlobalConfiguration shown under Manage Jenkins -> System), but the authentication model is different to match the verified Cortex CLI contract: - Legacy console address -> Cortex API base URL (CORTEX_API_BASE_URL) - Legacy username/password -> Cortex API key (CORTEX_API_KEY) + API key ID (CORTEX_API_KEY_ID) The API key is stored as a Secret so it is encrypted at rest and never rendered back to the UI in plain text.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • get

      public static Config get()
      Convenience accessor for the singleton instance.
    • getApiBaseUrl

      @CheckForNull public String getApiBaseUrl()
    • getApiKey

      @CheckForNull public Secret getApiKey()
      Returns:
      the API key as a Secret (for binding the password field), or null.
    • getApiKeyPlainText

      @CheckForNull public String getApiKeyPlainText()
      Returns:
      the plain-text API key for passing to the CLI/REST call, or null.
    • getApiKeyId

      @CheckForNull public String getApiKeyId()
    • getCliPath

      @CheckForNull public String getCliPath()
    • isDebug

      public boolean isDebug()
    • setApiBaseUrl

      @DataBoundSetter public void setApiBaseUrl(String apiBaseUrl)
    • setApiKey

      @DataBoundSetter public void setApiKey(Secret apiKey)
    • setApiKeyId

      @DataBoundSetter public void setApiKeyId(String apiKeyId)
    • setCliPath

      @DataBoundSetter public void setCliPath(String cliPath)
    • setDebug

      @DataBoundSetter public void setDebug(boolean debug)
    • doCheckApiBaseUrl

      @POST public FormValidation doCheckApiBaseUrl(@QueryParameter String value)
    • doCheckApiKey

      @POST public FormValidation doCheckApiKey(@QueryParameter String value)
    • doCheckApiKeyId

      @POST public FormValidation doCheckApiKeyId(@QueryParameter String value)
    • doTestConnection

      @POST public FormValidation doTestConnection(@QueryParameter("apiBaseUrl") String apiBaseUrl, @QueryParameter("apiKey") String apiKey, @QueryParameter("apiKeyId") String apiKeyId)
      Validates connectivity to the tenant API using the supplied credentials. Annotated @POST and gated on Jenkins.ADMINISTER so the stored/entered secret cannot be probed via a crafted GET request - this is the modern, CSRF-safe equivalent of the legacy plugin's Test Connection.