Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-4571

Extend validation for Azure secret to prevent common errors

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Normal
    • Logging 5.9.0
    • Logging 5.9.0
    • Log Storage
    • None
    • False
    • None
    • False
    • NEW
    • NEW
    • With this update, the validation of the Azure storage secret has been extended to give early warning for certain error conditions.
    • Enhancement
    • Log Storage - Sprint 249, Log Storage - Sprint 250, Log Storage - Sprint 251, Log Storage - Sprint 252, Log Storage - Sprint 253

    Description

      A few of the fields of the secret used for Azure access have a fixed set of values, that could be checked by the operator before generating the configuration and starting Loki, so that mistakes do not cause Loki pods to start with an erroneous configuration.

      For example, the environment field only has a limited set of values:

      level=error ts=2023-10-02T11:20:31.436073615Z caller=main.go:56 msg="validating config" err="invalid storage config: invalid Azure Storage config: unsupported Azure blob storage environment: env, please select one of: AzureGlobal, AzureChinaCloud, AzureGermanCloud, AzureUSGovernment " 

       

      Attachments

        Activity

          People

            rojacob@redhat.com Robert Jacob
            rojacob@redhat.com Robert Jacob
            Anping Li Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: