nextcloud / nextcloud/server

`Feature-Policy` should be called `Permissions-Policy` now, having a bit different syntax

Open
#22,792 9 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement security technical debt
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

Is your feature request related to a problem? Please describe.

Permissions Policy, W3C Working Draft, 16 July 2020 specifies that Feature-Policy is now called Permissions Policy.

If Nextcloud implements these headers they should be kept up to date.

Describe the solution you'd like

At

https://github.com/nextcloud/server/blob/be9dde8a074117833ce7f0252ac8784146c8a9fc/lib/public/AppFramework/Http/Response.php#L243

Permissions-Policy should be generated instead of Feature-Policy.
Permissions-Policy has slightly different syntax.

Describe alternatives you've considered

Both Permissions-Policy and Feature-Policy are generated.

Additional context

securityheaders.com post on the topic - Goodbye Feature Policy and hello Permissions Policy!

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/public/AppFramework/Http/Response.php around line 243 and compare the generated header with the linked Permissions Policy specification. Update the header name and syntax as described, then verify that the response emits the current Permissions-Policy form rather than Feature-Policy.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, security
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.