opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

Config variable to enforce a maximum expiry for public link creation could be named:

Open cscholz opened this issue 8 months ago • 1 comments

Public links are password-protected by default. If this requirement is disabled using the OC_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD parameter, the need to set an expiration date for public links is also automatically removed.

The proposal is to introduce a parameter that defines after how many days a public link should automatically expire from the date of its creation. This limit should either be user-adjustable or enforced as a strict maximum. Example:

  • OC_SHARING_PUBLIC_SHARE_MAX_TTL_DAYS: Defines the default or maximum number of days until a public link expires.
  • OC_SHARING_PUBLIC_SHARE_MAX_TTL_ENFORCES: If set to true, users cannot exceed this TTL value.

.env OC_SHARING_PUBLIC_SHARE_MAX_TTL_DAYS=7 OC_SHARING_PUBLIC_SHARE_MAX_TTL_ENFORCES=true

cscholz avatar Apr 23 '25 18:04 cscholz

@tbsbdr @db-ot

Needs Feature decision.

micbar avatar Nov 10 '25 09:11 micbar