FeatureFuel
0

Webhook "ephemeral" auth tokens are permanent tokens without expiry

Source: nextcloud/server#67559 · opened by @susnux
Description

webhook_listeners creates per-call auth tokens for webhook payloads with IToken::PERMANENT_TOKEN:



These tokens only go away when the WebhookTokenCleanup background job deletes them. If cron stops running, the job fails (as in #64682) or the app is disabled, these full-access tokens stay valid indefinitely.

_Found by code reading._

Proposal

As defence in depth, give the tokens their own expiry (e.g. a token type or check that rejects them after their intended lifetime at login), so they are invalid even when the cleanup doesn't run.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests