mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #6525] Attachment download only possible when Admin Interface active. #2460
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#2460
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pictosun on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6525
Prerequisites
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)
Show Config & Details
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, INVITATIONS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_USERNAME, SMTP_PASSWORD
Config:
Vaultwarden Build Version
v1.34.3
Deployment method
Other method
Custom deployment method
using Vaultwarden via uberspace.de:
https://lab.uberspace.de/guide_vaultwarden/#vaultwarden
Reverse Proxy
Uberspace
Host/Server Operating System
Linux
Operating System Version
CentOS
Clients
Web Vault
Client Version
Issue is independent on client - does happen also via web-vault
Steps To Reproduce
Expected Result
download is possible
Actual Result
giving an error message when downloading the attachment
Logs
Screenshots or Videos
No response
Additional Context
When I "enable" Admin Interface then I can download the attachments without any issues (via web vault or desktop app and so on).
When I "disable" Admin Interface the download is not possible and is giving me an error message.
As this is different than other issues correlated to attachments download I created a new issue. Hope this is ok.
@BlackDex commented on GitHub (Dec 4, 2025):
That sound highly impossible as the Vaultwarden Admin Backend has nothing to do with any API calls or attachment downloading.
Please provide Vaultwarden logs as requested.
@pictosun commented on GitHub (Dec 5, 2025):
@BlackDex Where can I find those logs?
@pictosun commented on GitHub (Dec 5, 2025):
Short update:
@stefan0xC commented on GitHub (Dec 5, 2025):
Then you probably had a syntax error in your
config.jsonwhich made Vaultwarden (silently) ignore that file.@pictosun commented on GitHub (Dec 5, 2025):
Thanks for your feedback. Looks like it was that kind of error. Overall what is the best way to lock/disable the Admin Interface when not needing it? Do I fully need to delete the admin token within config.json and .env file? Cannot find an real explanation within the WIKI.
I'm having both (.env and config.json).
@stefan0xC commented on GitHub (Dec 5, 2025):
You can disable the admin panel by clearing the value in the
config.jsonbecause that takes precedence over the other methods@pictosun commented on GitHub (Dec 5, 2025):
Thanks for the help. So it is ok, to leave the token active within
.envfile, or should I also delete it over there?@BlackDex commented on GitHub (Dec 5, 2025):
But, the best way is to add an admin token, and if you really want to protect it a bit more is by adding some authentication in front of it via your reverse proxy maybe.
@pictosun commented on GitHub (Dec 6, 2025):
@BlackDex Don't understand your last comment. Can you make it a bit more clear.
What is the correct procedure to active/disable the admin web interface.
.envandconfig.json@BlackDex commented on GitHub (Dec 6, 2025):
Always have the admin interface enabled, and add an extra auth option in-front of it via your reverse proxy.
I'm not sure how to make that more clear t.b.h.
Most reverse proxies allow some form of Basic Auth or other way of authentication to be needed for specific paths, like
/adminYou can always add that as an extra level of security.Also, I would recommend to either use only a
.envfile or ENV's via some other form and not edit theconfig.jsonas you have seen your self it can easily break.