Skip to main content
The temporal-server validate-dynamic-config command validates dynamic configuration files for syntax errors, unknown keys, and type mismatches.

Synopsis

Description

Validates one or more dynamic configuration YAML files against known configuration keys and their expected types. This command helps catch configuration errors before deploying to production. The validator checks:
  • YAML syntax validity
  • Known configuration keys
  • Correct value types for each key
  • Valid constraint names
  • Proper constraint value types

Arguments

file

Path to one or more dynamic configuration files to validate.
  • Type: String (file path)
  • Required: Yes (at least one file)
  • Multiple: Yes

Output

For each file, the command prints:
  • File name
  • Any errors found
  • Any warnings found
At the end, it prints a summary with the total error count.

Success Output

No output means the file is valid.

Error Output

Exit Codes

  • 0: All files are valid (no errors)
  • 1: One or more files contain errors

Common Errors

Unknown Key

Error: unknown key: "frontend.namespacRPS"

Type Mismatch

Error: type mismatch for "history.maxAutoResetPoints": expected int, got string

Invalid Constraint

Error: unknown constraint: "invalidConstraint"

Missing Value

Warning: key "frontend.namespaceRPS" has no value

Valid Configuration Example

Validation in CI/CD

GitHub Actions

GitLab CI

Pre-commit Hook

Makefile Integration

Best Practices

  1. Validate Before Deploy: Always validate configs before deploying to production
  2. Automate Validation: Add validation to CI/CD pipelines
  3. Version Control: Keep dynamic configs in version control
  4. Comment Changes: Document why specific values were chosen
  5. Test Changes: Test config changes in development first
  6. Regular Review: Periodically review and update configurations

Troubleshooting

File Not Found

Verify the file path is correct and the file exists.

Permission Denied

Ensure you have read permissions for the file.

YAML Syntax Error

Fix YAML syntax errors. Common issues:
  • Missing colons
  • Incorrect indentation
  • Unclosed quotes
  • Invalid characters

Examples

Validate Development Config

Validate All Environment Configs

Validate with Wildcard

Validate and Show Only Errors

See Also