Config-Validator is a DevOps tool helping to validate configuration using automated pipelines and CLI.
Configuration validation is setup using YAML with Validation Methods taken from Definit.Validation package.
For now it supports Azure KeyVault and Azure AppConfiguration out of the box.
GlobalTest.Value1:SharedSecret: IsConnectionString
GlobalTest.Value2: IsUrl
GlobalTest.Value3: IsUrl
Then it can be run in for example Azure Pipeline.
pool:
vmImage: ubuntu-latest
steps:
- bash: |
docker pull hubiboar/config-validator:latest
docker run -v $(Build.SourcesDirectory):/mnt hubiboar/config-validator:latest azure app-configuration-secret --file-path "../mnt/validation.yml" --key-vault-name "$(KV-Name)" --tenant-id $(TenantId) --client-id $(ClientId) --client-secret $(ClientSecret) --secret-name "AppConfigConnectionString"
displayName: 'Docker Pull and Run'