Repository navigation
Commit 4fbf4d4
fix(platform): DSPX-4207 align server.cors defaults with OpenTDF platform config (#199)
## What
Update the platform chart's default `server.cors` values to match the
OpenTDF platform's built-in CORS defaults:
- **`allowedmethods`**: add `PATCH` → `GET, POST, PATCH, PUT, DELETE,
OPTIONS`
- **`allowedheaders`**: expand to `Accept, Accept-Encoding,
Authorization, Connect-Protocol-Version, Content-Length, Content-Type,
Dpop, X-CSRF-Token, X-Requested-With, X-Rewrap-Additional-Context`
`README.md` regenerated via helm-docs (also picks up the stale `0.15.0`
version badge).
## Why
The chart's default `allowedheaders`/`allowedmethods` had drifted from
the platform binary's own defaults. In particular the chart was missing
`X-Rewrap-Additional-Context` (and other browser headers), which the
platform ships by default.
Source of truth for the new defaults:
- `service/internal/server/server.go` (`AllowedHeaders`/`AllowedMethods`
struct defaults)
- `opentdf-example.yaml` `server.cors`
This lets browser clients such as the Virtru DSP **Secure Viewer** get
working CORS from the chart defaults, so downstream charts no longer
need to re-declare the entire `server.cors` block.
## Notes
- No `Chart.yaml`/`CHANGELOG.md` bump — release-please owns versioning.
- `server.cors.enabled` default is unchanged (`false`); enabling CORS
and setting `allowedorigins` remains a per-deployment concern.
## Related
- Replaces the downstream workaround in virtru-corp/charts#237 (per
review feedback to make this an opentdf chart change).
- Docs/sample-values context: virtru-corp/dsp-bundle#288,
virtru-corp/data-security-platform#3528.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Enhancements**
- Expanded cross-origin request support with additional permitted
headers.
- Added support for `PATCH` requests.
- Updated the platform chart version badge to `0.15.0`.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: CoopAgent <coopagent@users.noreply.github.com>1 parent 6b3e495 commit 4fbf4d4
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
277 | 279 | | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
| 283 | + | |
279 | 284 | | |
280 | | - | |
| 285 | + | |
| 286 | + | |
281 | 287 | | |
282 | 288 | | |
283 | 289 | | |
| |||
0 commit comments