mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #60] selfListAccesses : add search filter #17
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#17
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 @snk33 on GitHub (Nov 20, 2020).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/60
Hello,
On my bastion I've got a few groups and... hundred of servers, which can make it hard to find a specific access.
We've added a server name in comment + internal DNS to be able to connect easily to a server but searching one can be tricky.
I've managed to add some shell function to make it work by doing "grep" to the stdout but a filter implemented in the selfListAccesses command itself would be nice to make it work more directly (mostly on 3rd party SSH clients) :
As the IP is always resolved when adding a server, I guess this search could only be on "comment" but if for some reason we're looking for servers in some network, filtering "ip/host" too could be nice aswell.
I guess it could be useful for many bastion's users, including OVH teams ? ;)
@Alkorin commented on GitHub (Nov 20, 2020):
Hello,
Yes :)
I've a WIP branch somewhere at home to add filtering, include/exclude on List plugins.
Side note: if the comment is not set, and the server is added by hostname, we could set the comment to the hostname for future search. I don't think it is already done
@snk33 commented on GitHub (Nov 20, 2020):
Ok nice to read ! I didn't think about exclude feature but in some cases it can help indeed.
I can confirm it doesn't put hostname as comment, we've done it by ourselves :)