Manage declarative configuration
Use version-controlled YAML to propose, review, validate, and roll out changes to repositories, upstreams, policies, and access rules.
Before you begin
- Identify the configuration directory configured through
HORT_CONFIG_DIRfor the target installation. - Use the same
hort-serverversion for validation as the version you deploy. - Make sure the deployment can read the configuration files. Keep credentials in the supported secret mechanism rather than committing them to Git.
Make a controlled configuration change
- Create a branch and change the required YAML resources.
- Check the complete configuration directory, not only the edited file:
``bash HORT_CONFIG_DIR="$PWD/config" hort-server validate-config --strict ``
- Review the diff and the validator output. Resolve warnings and errors according to your change policy.
- Deploy the reviewed configuration directory to the target environment.
- Restart or roll out
hort-serverto load and apply the configuration at startup. - Inspect startup/apply logs, then verify the resulting behavior with a client or an appropriately authorized operator identity.
Important: Editing files does not trigger live reload or continuous reconciliation. Offline validation cannot verify every database-dependent, secret-dependent, or runtime condition. A successful validator exit status is not proof that the change was applied successfully.
What can be configured?
| Area | Supported resource kinds |
|---|---|
| Repositories and upstreams | ArtifactRepository, UpstreamMapping |
| Governance | ScanPolicy, RetentionPolicy, CurationRule, Exclusion |
| Identity | OidcIssuer, ServiceAccount, ClaimMapping |
| Permissions | PermissionGrant, PermissionGrantLintConfig |
Policies may have global or repository-specific scope. ClaimMapping derives hort claims from IdP groups; PermissionGrant is the authorization resource. Do not use the removed Role or GroupMapping resource kinds.
When the rollout fails
- Preserve the server startup logs and identify the resource that failed to apply.
- Check the deployed files and secrets against the reviewed configuration; confirm the actual running server version.
- Revert the Git change if necessary, redeploy the known-good configuration, and restart the server.
- Verify repository access and critical client operations after rollback.
AI-assisted operational reviews
Configuration files can be proposed or reviewed with AI tooling, validated by hort-server, approved by a human, and correlated with metrics after rollout. hort does not include a built-in autonomous AI operator. Avoid exposing secrets and sensitive operational data to external tooling; treat generated changes as untrusted until reviewed.
Related guides: Identity & access · Monitoring & troubleshooting · Quickstart.