Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Use a non-default User-Agent for HTTP(s) connections #4768

Open
systemmonkey42 opened this issue Apr 17, 2024 · 1 comment
Labels
category: backend help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature suggestion suggesting a new feature

Comments

@systemmonkey42
Copy link

Output of restic version

restic 0.16.4 compiled with go1.21.6 on linux/amd64

What should restic do differently? Which functionality do you think we should add?

When using a remote REST or HTTP(S) backend, the user agent provided is the default "Go-http-client/2.0"

An example user agent might be
Restic/0.16.4; arch/x86_64
which would be detected by the frontend, allowing it to apply correct validation checks.

What are you trying to do? What problem would this solve?

Using our front-end application gateway, I would like to provide restic specific validation requirements (eg, disable forms based login, while enforcing HTTPS and BASIC auth), by detecting a "restic" specific user agent.

Did restic help you today? Did it make you happy in any way?

Always

@systemmonkey42 systemmonkey42 changed the title Feature Requests: Use a non-default User-Agent for HTTP(s) connections Feature Request: Use a non-default User-Agent for HTTP(s) connections Apr 17, 2024
@MichaelEischer
Copy link
Member

I'm not a big fan of changing the user agent for every one. But it would be fine to extend the backends with an option to change the user agent. Although, someone would have to implement it, I'm too busy with other PRs.

@MichaelEischer MichaelEischer added category: backend type: feature suggestion suggesting a new feature help: wanted help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: backend help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature suggestion suggesting a new feature
Projects
None yet
Development

No branches or pull requests

2 participants