[PR #516] [CLOSED] enh: 35% faster is_valid_ip() when fast=1 #543

Closed
opened 2026-05-07 00:21:26 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/ovh/the-bastion/pull/516
Author: @speed47
Created: 12/19/2024
Status: Closed

Base: masterHead: is_valid_ip


📝 Commits (10+)

  • f5f0cdf chore: faster tests by removing grant/revoke command dance
  • 288ff63 chore: tests: no longer run consistency check by default
  • 7c42c78 chg: set ECDSA as default egress key algo for new installs
  • f30cec2 fix: accountInfo: don't attempt (and fail) to display info non-auditors don't have access to
  • 49f8407 fix: groupInfo: don't attempt to (and fail) display the guest list when account doesn't have access to it
  • 292ed30 enh: accountInfo: add osh-only information for accounts
  • 6b9e622 chg: groupInfo: remove deprecated JSON fields
  • a97db44 chore: factorize user@host:port display in machine_display()
  • 30aba69 feat: IPv6 support
  • 29aa8ad enh: 35% faster is_valid_ip() when fast=1

📊 Changes

58 files changed (+1366 additions, -695 deletions)

View changed files

📝 .github/workflows/freebsd.yml (+0 -1)
📝 .github/workflows/tests.yml (+6 -6)
📝 bin/helper/osh-accountModifyPersonalAccess (+1 -3)
📝 bin/helper/osh-groupAddServer (+1 -3)
📝 bin/plugin/group-aclkeeper/groupAddServer (+2 -2)
📝 bin/plugin/group-aclkeeper/groupDelServer (+2 -2)
📝 bin/plugin/group-aclkeeper/groupSetServers (+2 -2)
📝 bin/plugin/group-gatekeeper/groupAddGuestAccess (+2 -2)
📝 bin/plugin/group-gatekeeper/groupDelGuestAccess (+2 -2)
📝 bin/plugin/open/groupInfo (+8 -12)
📝 bin/plugin/restricted/accountAddPersonalAccess (+2 -2)
📝 bin/plugin/restricted/accountDelPersonalAccess (+2 -2)
📝 bin/plugin/restricted/accountInfo (+94 -70)
📝 bin/plugin/restricted/assetForgetHostKey (+2 -2)
📝 bin/plugin/restricted/selfAddPersonalAccess (+2 -2)
📝 bin/plugin/restricted/selfDelPersonalAccess (+2 -2)
📝 bin/shell/osh.pl (+14 -9)
📝 doc/sphinx/administration/configuration/bastion_conf.rst (+33 -9)
📝 doc/sphinx/development/setup.rst (+1 -1)
📝 doc/sphinx/plugins/group-aclkeeper/groupAddServer.rst (+2 -2)

...and 38 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ovh/the-bastion/pull/516 **Author:** [@speed47](https://github.com/speed47) **Created:** 12/19/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `is_valid_ip` --- ### 📝 Commits (10+) - [`f5f0cdf`](https://github.com/ovh/the-bastion/commit/f5f0cdfba4b166fa59015f573f4dac4c8971760a) chore: faster tests by removing grant/revoke command dance - [`288ff63`](https://github.com/ovh/the-bastion/commit/288ff637d9037ebe118261fad6ccfc661659bcff) chore: tests: no longer run consistency check by default - [`7c42c78`](https://github.com/ovh/the-bastion/commit/7c42c78d8020935e4b5438cfd2cb27a6cf8d83d4) chg: set ECDSA as default egress key algo for new installs - [`f30cec2`](https://github.com/ovh/the-bastion/commit/f30cec2f296abfd5a077eb61fa91a91ce0d7e31e) fix: accountInfo: don't attempt (and fail) to display info non-auditors don't have access to - [`49f8407`](https://github.com/ovh/the-bastion/commit/49f840779d5ffaccabdb477b1054d3f0054c970a) fix: groupInfo: don't attempt to (and fail) display the guest list when account doesn't have access to it - [`292ed30`](https://github.com/ovh/the-bastion/commit/292ed300c45329436197339d10e8d5dd6a83539b) enh: accountInfo: add osh-only information for accounts - [`6b9e622`](https://github.com/ovh/the-bastion/commit/6b9e62297e1ccbedb973892e22fe1065165835f3) chg: groupInfo: remove deprecated JSON fields - [`a97db44`](https://github.com/ovh/the-bastion/commit/a97db44206b1f8b923f9d2428390b0d65c6f7bdc) chore: factorize user@host:port display in machine_display() - [`30aba69`](https://github.com/ovh/the-bastion/commit/30aba693ecbf5f7c977c1d2a5a0783802d99ef68) feat: IPv6 support - [`29aa8ad`](https://github.com/ovh/the-bastion/commit/29aa8adff0f66c6bc774f347d281581af8b01d6b) enh: 35% faster is_valid_ip() when fast=1 ### 📊 Changes **58 files changed** (+1366 additions, -695 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/freebsd.yml` (+0 -1) 📝 `.github/workflows/tests.yml` (+6 -6) 📝 `bin/helper/osh-accountModifyPersonalAccess` (+1 -3) 📝 `bin/helper/osh-groupAddServer` (+1 -3) 📝 `bin/plugin/group-aclkeeper/groupAddServer` (+2 -2) 📝 `bin/plugin/group-aclkeeper/groupDelServer` (+2 -2) 📝 `bin/plugin/group-aclkeeper/groupSetServers` (+2 -2) 📝 `bin/plugin/group-gatekeeper/groupAddGuestAccess` (+2 -2) 📝 `bin/plugin/group-gatekeeper/groupDelGuestAccess` (+2 -2) 📝 `bin/plugin/open/groupInfo` (+8 -12) 📝 `bin/plugin/restricted/accountAddPersonalAccess` (+2 -2) 📝 `bin/plugin/restricted/accountDelPersonalAccess` (+2 -2) 📝 `bin/plugin/restricted/accountInfo` (+94 -70) 📝 `bin/plugin/restricted/assetForgetHostKey` (+2 -2) 📝 `bin/plugin/restricted/selfAddPersonalAccess` (+2 -2) 📝 `bin/plugin/restricted/selfDelPersonalAccess` (+2 -2) 📝 `bin/shell/osh.pl` (+14 -9) 📝 `doc/sphinx/administration/configuration/bastion_conf.rst` (+33 -9) 📝 `doc/sphinx/development/setup.rst` (+1 -1) 📝 `doc/sphinx/plugins/group-aclkeeper/groupAddServer.rst` (+2 -2) _...and 38 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:21:26 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/the-bastion#543
No description provided.