Skip to content

feat(vulpes): allow patch in the backend cors configuration - #230

Merged
TheMeinerLP merged 1 commit into
mainfrom
feat/vulpes-cors-patch
Aug 26, 2026
Merged

feat(vulpes): allow patch in the backend cors configuration#230
TheMeinerLP merged 1 commit into
mainfrom
feat/vulpes-cors-patch

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Collaborator

What

The stelaris-ui CORS configuration on the Vulpes backend pinned allowed-origins but left allowed-methods unset. Micronaut treats a missing allowed-methods as "any method", so this spells the set out — GET, POST, PUT, PATCH, DELETE, OPTIONS — making PATCH explicitly covered instead of incidental.

Applied to both overlays:

  • apps/clusters/feathre-core/apps/vulpes-backend/release.yaml
  • apps/clusters/feathre-core/apps/vulpes-backend-dev/release.yaml

Notes

  • No behavioural narrowing: the listed set matches what the implicit default already permitted.
  • The micronaut chart carries a checksum/config annotation on the Deployment, so the pods roll on the Helm upgrade — no manual rollout restart.
  • If a PATCH preflight still fails after this, the cause is elsewhere: most likely allowed-headers (a custom header or Content-Type: application/merge-patch+json), or a missing @Patch route answering 405 before CORS applies.

Validation

./scripts/validate.sh — 0 invalid, 0 errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V9romuepQH44Gcuae5pH5v

The stelaris-ui CORS configuration pinned the allowed origin but left
allowed-methods unset, relying on Micronaut's implicit any-method
default. Spell the method set out so PATCH — used by Stelaris for
partial updates — is explicitly covered rather than incidental.

Applied to both the prod and dev overlay.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V9romuepQH44Gcuae5pH5v
@TheMeinerLP
TheMeinerLP merged commit 9ccfaf7 into main Aug 26, 2026
5 checks passed
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.

1 participant