Repository navigation
Conversation
… three shapes) KROUTER_URL was read in several places and each decided for itself what the value meant (a bare host with an optional port, or a full URL), so the same value gave different results depending on which code read it. This adds one resolver, `get_router_override()` in `keepercommander/constants.py`, that accepts either shape, and uses it everywhere the variable was read: `get_router_host` and `get_router_url`, the DAG connections (`ksm.py`, `commander.py`, `__init__.py`) and the `pam debug krouter` help text. New tests in `unit-tests/pam/test_router_host_override.py` cover both shapes for each reader. They fail without the change and pass with it.
maksimu
force-pushed
the
factory/w-f6gjej1bhdax9hgm-use-one-consistent-router-host-override-wqdbx42ah3
branch
from
November 17, 2026 20:35
fe9162f to
af87bfa
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KROUTER_URL was read in several places and each decided for itself what the value meant (a bare host with an optional port, or a full URL), so the same value gave different results depending on which code read it.
This adds one resolver,
get_router_override()inkeepercommander/constants.py, that accepts either shape, and uses it everywhere the variable was read:get_router_hostandget_router_url, the DAG connections (ksm.py,commander.py,__init__.py) and thepam debug krouterhelp text.New tests in
unit-tests/pam/test_router_host_override.pycover both shapes for each reader. They fail without the change and pass with it.