Skip to content

Support requestTimeout service setting and generalize settings handling for future keys #41

Open

Description

@lnsp

Problem

The platform API supports requestTimeout (1–300 s, default 10 s) on GET/PATCH /v2/projects/{project}/services/{service}/settings and Deployment.settings, but valar/cli currently blocks it locally:

  • valar service settings set requestTimeout=60 and reset requestTimeout fail locally with exit code 2 because settingNames (cmd/settings.go:18) only allows cpu, memory, http, and minRunning.
  • .valar.yml rejects deployment.requestTimeout during local schema validation (config/service.go:67-98, schema/valar.yml.json).
  • valar service settings hides requestTimeout in the human table (cmd/settings.go:171-178).
  • valar deployment list/create/rollback --json silently drops settings.requestTimeout because api.Deployment.Settings unmarshals into api.ServiceSettings (api/client.go:928, api/settings.go:25-30).
  • raiseHint (cmd/settings.go:20) omits requestTimeout.

Furthermore, with additional settings coming (such as port in #33 and future string-valued settings like protocol), the current hardcoded client allowlist and int/bool-only parser (cmd/settings.go:134-162) will break on every new platform setting until a new CLI release ships.

Proposed changes

  • Add requestTimeout to api.ServiceSettings, api.SettingsLimits, cmd/settings.go, config/service.go, and schema/valar.yml.json (and coordinate updating the server-served valar.yml.json schema, which also still lacks cpu, memory, http, minRunning from PR Add service settings and roll back only to deployments that served #28).
  • Generalize service settings parsing/rendering and preserve unknown fields on Deployment.Settings JSON so future int/bool/string platform settings pass through cleanly without requiring emergency CLI patches.

Activity

  1. added
    bug
    enhancement
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions