nextcloud / nextcloud/server

Add IP and/or user agent to public link activity entries

Open
#50,893 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: activity and notification feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

It would be great if it is possible to see User IP and User Agent when a user does something in public links like downloading, deleting etc.

At the moment Activity shows:

It is impossible to understand who did a specific action, especially in cloud providers that uses nextcloud as a cloud.
It is even confusing because it creates a lot of entries when a user downloads a content only once and for Activity, downloaded means both open and download a file

Sometimes Activity, logs user agent for deleted app passwords, so I think it is possible:

Censored IP can be a valid option, for example 159.69.138.x and User Agent with only Browser and/or Operating System type:
photo5

It would be great if admins can choose to log those informations or not:

Thank you for your work (:

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 by tracing how public-link actions such as downloads and deletions become Activity entries, then compare that flow with the existing app-password deletion entries that record user-agent information. Done would require a defined, administrator-controlled approach for recording and displaying IP and user-agent details without exposing unnecessary information.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.