mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[GH-ISSUE #259] --force-key doesn't work for groups #68
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#68
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 @madchrist on GitHub (Nov 2, 2021).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/259
Right now using
groupAddServer (...) --force-key <key-fingerprint>always results in an invalid fingerprint errorI checked the code a little and found a few missing pieces, but there might be others:
bin/plugin/group-aclkeeper/groupAddServer:21force-key should be force-key=s (which is why the fingerprint is always considered invalid)bin/plugin/group-aclkeeper/groupAddServer.jsondoesn't support--force-keycompletionbin/helper/osh-groupAddServer:46is missing a force-key parametertests/functional/tests.d/--force-keyis only tested withselfAddPersonalAccess@speed47 commented on GitHub (Nov 2, 2021):
You pretty much nailed it! The main problem being that as you pinpointed, there are no tests for this command for groups, only for personal accesses, and we didn't stumble upon it because we rarely use
--force-key, as it's only on personal accesses in our workflows. We use that only for network devices, but I'm sure this is also your use case ;)Fixing this.
@KarlAustin commented on GitHub (Mar 29, 2023):
Hi,
Just wondering if there is any news on this being fixed as it still seems to be broken in 3.11.01? The alternative at the moment is managing multiple groups (new/legacy) for items and that's no ideal.
Thanks,
Karl
@speed47 commented on GitHub (Mar 31, 2023):
Hello, thanks for the reminder, I have started a branch for this some time ago, but for some reason didn't finish it.
I'm scheduling this for the next release, which should be easy as >50% of the work is already done.
@KarlAustin commented on GitHub (Mar 31, 2023):
Ah that's amazing, thank you.
@KarlAustin commented on GitHub (Feb 26, 2025):
My apologies, I never actually got around to testing this as I'd setup a workaround (a separate group). I've come back to this today as part of a tidy-up and force-key whilst accepted when adding a server, doesn't actually force that key. I can see that it attempted to connect with the first key added to the group, not the key with the given fingerprint.
Thanks.