mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #560] Using HTTP Proxy over Group Access ? #144
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#144
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 @DavidutzDev on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/560
Hello,
I tried for the past few days to setup HTTP Proxy and it worked wonderfully until I tried to setup Group Accesses. I followed the documentation and all works with the self access method (using
accountAddPersonalAccessand theselfGenerateProxyPassword). However, I'm not sure if I do something wrong or there's a misunderstanding. I couldn't make it work with thegroupAddServer, it's the same server with the exact same port and same configuration. My user is owner of the group but when I try to make the request in the same way as the "self access method" I get an error saying that I don't have access using the auth method (self/default).Looking longer to the documentation, it seems like there's no documentation about the errors (or this specific one).
Here's the error I get using the curl verbose mode :
@speed47 commented on GitHub (Jul 8, 2025):
You're saying that your user is the owner of the group, can you also confirm that it's a member of the group? Membership is required to get access to the group's servers (you can be owner without being a member, even if, being an owner, you may grant yourself gatekeepership, which it turn makes it possible to grant yourself membership).
Can you also confirm that you're seeing this access listed with the command
selfListAccesses?@DavidutzDev commented on GitHub (Jul 8, 2025):
Thanks for your reply,
After checking what you asked me here's the accesses and my user is member of my group (see following logs). I'm not sure if there's another factor that can play on my error. Thanks again !
Persisting error :
@speed47 commented on GitHub (Jul 8, 2025):
OK I see what is your problem here. This part is not very well documented because only a few people use it, there's clearly room for improvement on that!
When you want to use a group access with the HTTPS proxy, you have to tell it explicitely, because otherwise it defaults checking your personal accesses (that's what
self/defaultmeans). This is the case because contrary to SSH, we don't want to try multiple access ways (which would be multiple different passwords), whereas for SSH we can try multiple keys.There's a hint in the error message when you're not providing a valid Authorization line:
But it should be better documented indeed. Long story short, in your case, this should work:
@DavidutzDev commented on GitHub (Jul 8, 2025):
Thank you so much for your help.
Now everything work perfectly thanks to you. There's definitely room for improvement concerning the documentation of The Bastion, but I really appreciate your work and that's an amazing project I will follow and try to incorporate in my own stacks.
In my opinion, The Bastion can be more than just a SSH gateway, there's already a few supported protocols and that are such interesting features I am eager to explore.
I don't know your vision for this project or the one OVH have in mind but I hope this project will continue to have updates and maybe even new features. Thanks for your work and making this opensource project living !