mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #256] [MERGED] new access option: --force-password <HASH>, to only try one specific password #349
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#349
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?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/256
Author: @madchrist
Created: 10/26/2021
Status: ✅ Merged
Merged: 12/9/2021
Merged by: @speed47
Base:
master← Head:force-password📝 Commits (4)
042e55cnew access option: --force-password , to only try one specific password59861edupdate of --force-password: guest support, autocompletion, new tests, code cleanups51cdaf4update of --force-password: removed guest supportc87ee4cupdate of --force-password: code style cleanup📊 Changes
18 files changed (+544 additions, -146 deletions)
View changed files
📝
bin/helper/osh-accountModifyPersonalAccess(+21 -19)📝
bin/helper/osh-groupAddServer(+21 -18)📝
bin/plugin/group-aclkeeper/groupAddServer(+27 -18)📝
bin/plugin/group-aclkeeper/groupAddServer.json(+4 -1)📝
bin/plugin/restricted/accountAddPersonalAccess(+17 -8)📝
bin/plugin/restricted/accountAddPersonalAccess.json(+9 -6)📝
bin/plugin/restricted/selfAddPersonalAccess(+18 -9)📝
bin/plugin/restricted/selfAddPersonalAccess.json(+9 -6)📝
bin/shell/autologin(+18 -11)📝
bin/shell/osh.pl(+62 -13)📝
doc/sphinx/plugins/group-aclkeeper/groupAddServer.rst(+4 -0)📝
doc/sphinx/plugins/restricted/accountAddPersonalAccess.rst(+4 -0)📝
doc/sphinx/plugins/restricted/selfAddPersonalAccess.rst(+4 -0)📝
lib/perl/OVH/Bastion.pm(+2 -1)📝
lib/perl/OVH/Bastion/allowdeny.inc(+40 -24)📝
lib/perl/OVH/Bastion/allowkeeper.inc(+24 -12)📝
lib/perl/OVH/Bastion/password.inc(+20 -0)➕
tests/functional/tests.d/341-selfaccesses-force-password.sh(+240 -0)📄 Description
This is like --force-key, but for passwords
When this option is set, instead of autologin trying all the passwords until one works, only the one matching the hash is tried
If no password matches the hash then it aborts
This works for both personal accesses and group accesses
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.