
This change adds SAML2 support through the use of a new keystone SAML integrator charm (keystone-saml-k8s). Needed changes have also been made in the keystone charm to make use of the new relation. A new option has also been added to keystone-k8s through which a secret can be specified which should contain the x509 certificate an the corresponding key from which it was derived, used to generate the keystone SP metadata file. Change-Id: Id9b6ab2a51891ac378a2cb406dbe3a456bc24fc4 Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
61 lines
1.1 KiB
TOML
61 lines
1.1 KiB
TOML
# Testing tools configuration
|
|
|
|
[project]
|
|
name = "keystone-saml-k8s"
|
|
version = "2025.1"
|
|
requires-python = "~=3.12.0"
|
|
|
|
dependencies = [
|
|
"cryptography",
|
|
"jsonschema",
|
|
"pydantic",
|
|
"lightkube",
|
|
"lightkube-models",
|
|
"ops",
|
|
"pwgen",
|
|
"tenacity", # From ops_sunbeam
|
|
"opentelemetry-api~=1.21.0", # charm_tracing library -> opentelemetry-sdk requires 1.21.0
|
|
]
|
|
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "6.0"
|
|
log_cli_level = "INFO"
|
|
|
|
# Linting tools configuration
|
|
[tool.ruff]
|
|
line-length = 99
|
|
lint.select = ["E", "W", "F", "C", "N", "D", "I001"]
|
|
lint.extend-ignore = [
|
|
"D105",
|
|
"D107",
|
|
"D203",
|
|
"D204",
|
|
"D213",
|
|
"D215",
|
|
"D400",
|
|
"D404",
|
|
"D406",
|
|
"D407",
|
|
"D408",
|
|
"D409",
|
|
"D413",
|
|
]
|
|
extend-exclude = ["__pycache__", "*.egg_info"]
|
|
lint.per-file-ignores = {"tests/*" = ["D100","D101","D102","D103","D104"]}
|
|
|
|
[tool.ruff.lint.mccabe]
|
|
max-complexity = 10
|
|
|
|
[tool.codespell]
|
|
skip = "build,lib,venv,icon.svg,.tox,.git,.mypy_cache,.ruff_cache,.coverage"
|
|
|
|
[tool.pyright]
|
|
include = ["src/**.py"]
|