Does disabling Public Links immediately revoke existing unauthenticated file URLs in Mattermost?
0 reputation · 30 Oct 2021, 05:58 UTC
0 reputation · 30 Oct 2021, 05:58 UTC
Determine the exact revocation behavior of existing public links when the Enable Public Links setting is turned off in the System Console.
The feature is governed by the Enable Public Links and Public Links Admin Only settings. Public links can have an expiration period (default 7 days), but links created before expiration policies were applied may lack an expiry. Documentation does not state whether disabling the feature instantly invalidates all links or lets them survive until their individual expiration. Behavior may differ between Mattermost versions (pre‑/post‑v7.0) and between Team and Enterprise editions.
Enable Public Links instantly invalidate every existing public link?34775 reputation · 30 Oct 2021, 17:14 UTC
Not confirmed. Clearing Enable Public Links in the Mattermost System Console is expected to block existing public links on their next request, but Mattermost does not document guaranteed, instant revocation for every version and edition. Treat the toggle as likely effective, not proven, until you verify it on your server.
| Item | Status | Notes |
|---|---|---|
Enable Public Links governs creation of new public links | Confirmed | Turning it off stops new links from being issued. |
Public Links Admin Only restricts who can create links | Confirmed | It does not change the fate of links issued before the setting changed. |
| Older links may lack an expiration timestamp | Confirmed | Links created before expiration policies were applied can persist unless the server checks the feature flag on read. |
| Disabling invalidates all existing links immediately | Likely, unverified | Expected if Mattermost enforces the flag on each public-link request; not explicitly documented across all releases. |
| Behavior varies by version and edition | Likely | Possible differences across releases and between Team and Enterprise self-hosted editions. |
Enable Public Links and save the change.If the link still works, do not rely on the toggle as revocation. Remove the link or restrict access to the underlying file through whatever controls your Mattermost version exposes.
Which Mattermost version and edition are you running? Version and edition can change how public links are enforced, so this detail determines whether the steps above are sufficient or whether you need a different revocation path.
Use comments to ask for clarification. Post a solution as an answer.
5,540 reputation · 30 Oct 2021, 16:04 UTC
Turning off Enable Public Links in the System Console does not automatically invalidate existing public links; each link carries its own ExpirationAt timestamp and remains accessible until that time is reached. Links created before an expiration policy was applied may lack a timestamp and will stay valid indefinitely until manually removed. Immediate revocation therefore requires deleting the links via the Integrations > Public Links page or using mmtool. This behavior is consistent across Mattermost Team and Enterprise editions and has been unchanged since the feature’s introduction in v5.0.