Skip to content

fix: allow spaces in environment variable values in cog.yaml schema#2693

Merged
tempusfrangit merged 1 commit intomainfrom
md/fix-user-agent-pattern
Feb 6, 2026
Merged

fix: allow spaces in environment variable values in cog.yaml schema#2693
tempusfrangit merged 1 commit intomainfrom
md/fix-user-agent-pattern

Conversation

@michaeldwan
Copy link
Copy Markdown
Member

Summary

  • Fixes the JSON schema regex pattern for environment variables to allow values containing spaces (e.g., browser user agent strings)
  • Aligns the schema validation with the Go-level validation which already accepted these values
  • Adds test coverage for environment variables with spaces and empty values

Fixes #2659

The JSON schema regex pattern for environment variables rejected values
containing whitespace, preventing users from setting COG_USER_AGENT to
browser user agent strings. The Go-level validation already accepted
these values, so this aligns the schema with the actual behavior.

Fixes #2659
@michaeldwan michaeldwan requested a review from a team as a code owner February 6, 2026 17:22
@tempusfrangit tempusfrangit merged commit 7f30beb into main Feb 6, 2026
24 checks passed
@tempusfrangit tempusfrangit deleted the md/fix-user-agent-pattern branch February 6, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with configuring user agent string via environment variables

2 participants