Public bug reported:
Please see my bug report in the parent package:
https://github.com/openSUSE/cepces/issues/111
I tried testing the bugfix commit as-is on a fresh Ubuntu 24.04.4 LTS
VM, however Ubuntu currently ships python3-cepces version
0.3.7-0ubuntu1.24.04.1, which appears to be too old for the patch
against cepces version 0.5.0 to apply directly.
Using the PR as a basis, I created the patch below for the Ubuntu-
packaged version. I've confirmed this resolves the issue in my testing.
sudo apt -y install python3-cepces
python3 <<'PY'
from pathlib import Path
path = "/usr/lib/python3/dist-packages/cepces/core.py"
text = Path(path).read_text()
old = """
return sorted(endpoints, key=lambda x: x.priority)
"""
new = """
from urllib.parse import urlparse
cep_host = urlparse(config.endpoint).hostname
return sorted(
endpoints, key=lambda x: (
urlparse(x.url).hostname != cep_host,
x.priority
)
)
"""
if old not in text:
raise SystemExit("Failed to find string to patch")
Path(path).write_text(text.replace(old, new))
print("Patch applied")
PY
** Affects: python-cepces (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163807
Title:
CEP policy mode loses CA affinity when multiple issuing CAs are
returned by CEP
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-cepces/+bug/2163807/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs