Non-admin users cannot download resident agents
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.1k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Users that are not administrators cannot downloads the Resident Agents. They get a 401 Unauthorized error. They can however download the "Files Only" versions.
Seems linked to the fact that executables are in /API/ClientDownloads/ while files-only versions are in /Content/
This is consistent with all OS agents.
**To Reproduce**
Steps to reproduce the behavior:
1. Log-in as an non-admin user
2. Click on 'Downloads' link
3. Click on 'Windows Installer (x64/x86)' or 'Ubuntu x64 Bash Installer'
4. See error
**Remotely Version**
Server (can be found on about page): 2024.02.23.1927
Agent (can be found in device card): 2024.02.23.1927
**Expected Behavior**
A non-admin user should be able to download and install resident agent.
**Desktop (please complete the following information):**
- OS: Debian
- Browser [e.g. chrome, safari]: Firefox
- Version [e.g. 22] 122
- [x] I am running Remotely in Docker and not on my QNAP, Synology, or Internet Connected Toaster
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the non-admin download flow from the Downloads link, then inspect the API/ClientDownloads/ and Content/ paths described in the issue. Compare authorization behavior for resident-agent executables and files-only downloads; done means non-admin users can download the Windows and Ubuntu resident agents without a 401 while existing files-only downloads still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- authorization, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100