tigrcorn-config 0.3.18.dev2__tar.gz → 0.3.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/PKG-INFO +3 -3
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/README.md +1 -1
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/pyproject.toml +2 -2
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/__init__.py +14 -2
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/env.py +41 -17
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/governance_surface.py +3 -3
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/listeners.py +4 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/mapping.py +23 -5
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/namespace.py +40 -4
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/public_api.py +20 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/public_helpers.py +24 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/__init__.py +9 -1
- tigrcorn_config-0.3.19/src/tigrcorn_config/model/admission.py +80 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/server.py +12 -3
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/transports.py +17 -1
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/normalize.py +63 -1
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/observability_surface.py +17 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/policy_surface.py +3 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/quic_surface.py +2 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/validate.py +28 -1
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/PKG-INFO +3 -3
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/SOURCES.txt +1 -0
- tigrcorn_config-0.3.19/src/tigrcorn_config.egg-info/requires.txt +4 -0
- tigrcorn_config-0.3.18.dev2/src/tigrcorn_config.egg-info/requires.txt +0 -4
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/LICENSE +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/setup.cfg +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/audit.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/defaults.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/files.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/__init__.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/helpers.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/sources.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/merge.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/app.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/http.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/observability.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/scheduler.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/security.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/types.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/negative_surface.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/origin_surface.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/profiles.py +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/py.typed +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/dependency_links.txt +0 -0
- {tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tigrcorn-config
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.19
|
|
4
4
|
Summary: Typed configuration models, profiles, environment loading, and validation for the Tigrcorn ASGI/HTTP server stack.
|
|
5
5
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
6
|
License: Apache License
|
|
@@ -186,7 +186,7 @@ Classifier: Typing :: Typed
|
|
|
186
186
|
Requires-Python: <3.15,>=3.10
|
|
187
187
|
Description-Content-Type: text/markdown
|
|
188
188
|
License-File: LICENSE
|
|
189
|
-
Requires-Dist: tigrcorn-core==0.3.
|
|
189
|
+
Requires-Dist: tigrcorn-core==0.3.19
|
|
190
190
|
Provides-Extra: yaml
|
|
191
191
|
Requires-Dist: PyYAML>=6.0; extra == "yaml"
|
|
192
192
|
Dynamic: license-file
|
|
@@ -280,7 +280,7 @@ The package exposes its supported public surface through the <code>tigrcorn_conf
|
|
|
280
280
|
|
|
281
281
|
## Package Graph
|
|
282
282
|
|
|
283
|
-
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
283
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
284
284
|
|
|
285
285
|
## Best Practices
|
|
286
286
|
|
|
@@ -87,7 +87,7 @@ The package exposes its supported public surface through the <code>tigrcorn_conf
|
|
|
87
87
|
|
|
88
88
|
## Package Graph
|
|
89
89
|
|
|
90
|
-
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
90
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
91
91
|
|
|
92
92
|
## Best Practices
|
|
93
93
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tigrcorn-config"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.19"
|
|
8
8
|
description = "Typed configuration models, profiles, environment loading, and validation for the Tigrcorn ASGI/HTTP server stack."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10,<3.15"
|
|
@@ -28,7 +28,7 @@ classifiers = [
|
|
|
28
28
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
29
29
|
"Typing :: Typed",
|
|
30
30
|
]
|
|
31
|
-
dependencies = ["tigrcorn-core==0.3.
|
|
31
|
+
dependencies = ["tigrcorn-core==0.3.19"]
|
|
32
32
|
|
|
33
33
|
[project.optional-dependencies]
|
|
34
34
|
yaml = ["PyYAML>=6.0"]
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
from .audit import parser_public_defaults, resolve_effective_defaults
|
|
2
2
|
from .env import load_env_config
|
|
3
3
|
from .files import load_config_file
|
|
4
|
-
from .load import
|
|
4
|
+
from .load import (
|
|
5
|
+
build_config,
|
|
6
|
+
build_config_from_namespace,
|
|
7
|
+
build_config_from_sources,
|
|
8
|
+
config_to_dict,
|
|
9
|
+
)
|
|
5
10
|
from .model import (
|
|
11
|
+
AdmissionConfig,
|
|
6
12
|
AppConfig,
|
|
7
13
|
HTTPConfig,
|
|
8
14
|
ListenerConfig,
|
|
@@ -16,9 +22,15 @@ from .model import (
|
|
|
16
22
|
TLSConfig,
|
|
17
23
|
WebSocketConfig,
|
|
18
24
|
)
|
|
19
|
-
from .profiles import
|
|
25
|
+
from .profiles import (
|
|
26
|
+
get_profile_spec,
|
|
27
|
+
list_blessed_profiles,
|
|
28
|
+
resolve_effective_profile_mapping,
|
|
29
|
+
resolve_profile_spec,
|
|
30
|
+
)
|
|
20
31
|
|
|
21
32
|
__all__ = [
|
|
33
|
+
"AdmissionConfig",
|
|
22
34
|
"AppConfig",
|
|
23
35
|
"build_config",
|
|
24
36
|
"build_config_from_namespace",
|
|
@@ -8,6 +8,8 @@ from typing import Any, Mapping
|
|
|
8
8
|
|
|
9
9
|
from .merge import merge_config_dicts
|
|
10
10
|
|
|
11
|
+
from .model.admission import ADMISSION_FIELDS
|
|
12
|
+
|
|
11
13
|
_FLAT_ENV_MAP = {
|
|
12
14
|
"APP": ("app", "target"),
|
|
13
15
|
"APP_INTERFACE": ("app", "interface"),
|
|
@@ -43,7 +45,10 @@ _FLAT_ENV_MAP = {
|
|
|
43
45
|
"HTTP2_MAX_HEADERS_SIZE": ("http", "http2_max_headers_size"),
|
|
44
46
|
"HTTP2_MAX_FRAME_SIZE": ("http", "http2_max_frame_size"),
|
|
45
47
|
"HTTP2_ADAPTIVE_WINDOW": ("http", "http2_adaptive_window"),
|
|
46
|
-
"HTTP2_INITIAL_CONNECTION_WINDOW_SIZE": (
|
|
48
|
+
"HTTP2_INITIAL_CONNECTION_WINDOW_SIZE": (
|
|
49
|
+
"http",
|
|
50
|
+
"http2_initial_connection_window_size",
|
|
51
|
+
),
|
|
47
52
|
"HTTP2_INITIAL_STREAM_WINDOW_SIZE": ("http", "http2_initial_stream_window_size"),
|
|
48
53
|
"HTTP2_KEEP_ALIVE_INTERVAL": ("http", "http2_keep_alive_interval"),
|
|
49
54
|
"HTTP2_KEEP_ALIVE_TIMEOUT": ("http", "http2_keep_alive_timeout"),
|
|
@@ -76,11 +81,23 @@ _FLAT_ENV_MAP = {
|
|
|
76
81
|
"QUIC_MAX_DATAGRAM_SIZE": ("quic", "max_datagram_size"),
|
|
77
82
|
"QUIC_IDLE_TIMEOUT": ("quic", "idle_timeout"),
|
|
78
83
|
"QUIC_EARLY_DATA_POLICY": ("quic", "early_data_policy"),
|
|
84
|
+
"QUIC_CONGESTION_CONTROL": ("quic", "congestion_control", "algorithm"),
|
|
85
|
+
"QUIC_CONGESTION_CONTROL_OPTIONS": ("quic", "congestion_control", "options"),
|
|
79
86
|
"WEBTRANSPORT_MAX_SESSIONS": ("webtransport", "max_sessions"),
|
|
80
87
|
"WEBTRANSPORT_MAX_STREAMS": ("webtransport", "max_streams"),
|
|
81
88
|
"WEBTRANSPORT_MAX_DATAGRAM_SIZE": ("webtransport", "max_datagram_size"),
|
|
89
|
+
"WEBTRANSPORT_STREAM_RECEIVE_COALESCE_BYTES": (
|
|
90
|
+
"webtransport",
|
|
91
|
+
"stream_receive_coalesce_bytes",
|
|
92
|
+
),
|
|
93
|
+
"WEBTRANSPORT_STREAM_RECEIVE_MAX_DELAY_MS": (
|
|
94
|
+
"webtransport",
|
|
95
|
+
"stream_receive_max_delay_ms",
|
|
96
|
+
),
|
|
82
97
|
"WEBTRANSPORT_ORIGIN": ("webtransport", "origins"),
|
|
83
98
|
"WEBTRANSPORT_PATH": ("webtransport", "path"),
|
|
99
|
+
"WEBTRANSPORT_PROFILES": ("webtransport", "profiles"),
|
|
100
|
+
"WEBTRANSPORT_PREFERRED_PROFILE": ("webtransport", "preferred_profile"),
|
|
84
101
|
"TIMEOUT_KEEP_ALIVE": ("http", "keep_alive_timeout"),
|
|
85
102
|
"READ_TIMEOUT": ("http", "read_timeout"),
|
|
86
103
|
"WRITE_TIMEOUT": ("http", "write_timeout"),
|
|
@@ -158,34 +175,41 @@ def load_env_file(path: str | Path | None) -> dict[str, str]:
|
|
|
158
175
|
return {}
|
|
159
176
|
env_path = Path(path)
|
|
160
177
|
if not env_path.exists():
|
|
161
|
-
raise EnvFileError(f
|
|
178
|
+
raise EnvFileError(f"env file does not exist: {env_path}")
|
|
162
179
|
result: dict[str, str] = {}
|
|
163
|
-
for line_no, raw_line in enumerate(
|
|
180
|
+
for line_no, raw_line in enumerate(
|
|
181
|
+
env_path.read_text(encoding="utf-8").splitlines(), 1
|
|
182
|
+
):
|
|
164
183
|
line = raw_line.strip()
|
|
165
|
-
if not line or line.startswith(
|
|
184
|
+
if not line or line.startswith("#"):
|
|
166
185
|
continue
|
|
167
|
-
if line.startswith(
|
|
186
|
+
if line.startswith("export "):
|
|
168
187
|
line = line[7:].strip()
|
|
169
|
-
if
|
|
170
|
-
raise EnvFileError(f
|
|
171
|
-
key, raw_value = line.split(
|
|
188
|
+
if "=" not in line:
|
|
189
|
+
raise EnvFileError(f"invalid env file line {line_no}: {raw_line!r}")
|
|
190
|
+
key, raw_value = line.split("=", 1)
|
|
172
191
|
key = key.strip()
|
|
173
192
|
if not key:
|
|
174
|
-
raise EnvFileError(f
|
|
193
|
+
raise EnvFileError(f"invalid env file line {line_no}: empty key")
|
|
175
194
|
value = raw_value.strip()
|
|
176
195
|
if value and value[0] in {'"', "'"}:
|
|
177
196
|
try:
|
|
178
|
-
parsed = shlex.split(f
|
|
179
|
-
value = parsed[0].split(
|
|
197
|
+
parsed = shlex.split(f"VALUE={value}", posix=True)
|
|
198
|
+
value = parsed[0].split("=", 1)[1]
|
|
180
199
|
except Exception as exc:
|
|
181
|
-
raise EnvFileError(f
|
|
182
|
-
elif
|
|
183
|
-
value = value.split(
|
|
200
|
+
raise EnvFileError(f"invalid quoted value on line {line_no}") from exc
|
|
201
|
+
elif " #" in value:
|
|
202
|
+
value = value.split(" #", 1)[0].rstrip()
|
|
184
203
|
result[key] = value
|
|
185
204
|
return result
|
|
186
205
|
|
|
187
206
|
|
|
188
|
-
|
|
207
|
+
_FLAT_ENV_MAP.update({name.upper(): ("admission", name) for name in ADMISSION_FIELDS})
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def load_env_config(
|
|
211
|
+
prefix: str = "TIGRCORN", *, environ: Mapping[str, str] | None = None
|
|
212
|
+
) -> dict[str, Any]:
|
|
189
213
|
env = dict(os.environ if environ is None else environ)
|
|
190
214
|
normalized_prefix = prefix.upper().replace("-", "_")
|
|
191
215
|
nested_prefix = f"{normalized_prefix}__"
|
|
@@ -195,7 +219,7 @@ def load_env_config(prefix: str = "TIGRCORN", *, environ: Mapping[str, str] | No
|
|
|
195
219
|
|
|
196
220
|
for key, raw_value in env.items():
|
|
197
221
|
if key.startswith(nested_prefix):
|
|
198
|
-
path_bits = key[len(nested_prefix):].split("__")
|
|
222
|
+
path_bits = key[len(nested_prefix) :].split("__")
|
|
199
223
|
path: list[str | int] = []
|
|
200
224
|
for bit in path_bits:
|
|
201
225
|
if bit.isdigit():
|
|
@@ -204,7 +228,7 @@ def load_env_config(prefix: str = "TIGRCORN", *, environ: Mapping[str, str] | No
|
|
|
204
228
|
path.append(bit.lower())
|
|
205
229
|
_nested_set(nested, tuple(path), _decode_scalar(raw_value))
|
|
206
230
|
elif key.startswith(flat_prefix):
|
|
207
|
-
name = key[len(flat_prefix):]
|
|
231
|
+
name = key[len(flat_prefix) :]
|
|
208
232
|
path = _FLAT_ENV_MAP.get(name)
|
|
209
233
|
if path is not None:
|
|
210
234
|
_nested_set(flat, path, _decode_scalar(raw_value))
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/governance_surface.py
RENAMED
|
@@ -223,8 +223,6 @@ APPROVED_LEGACY_UNITTEST_FILES = (
|
|
|
223
223
|
'tests/test_stream_probe_fixtures.py',
|
|
224
224
|
'tests/test_websocket_uix_demo.py',
|
|
225
225
|
'tests/test_webtransport_bidi_stream_context.py',
|
|
226
|
-
'tests/test_webtransport_feature_demo_app.py',
|
|
227
|
-
'tests/test_webtransport_feature_coverage.py',
|
|
228
226
|
'tests/test_webtransport_mtls_demo.py',
|
|
229
227
|
'tests/test_webtransport_mtls_demo_cleanup.py',
|
|
230
228
|
'tests/test_webtransport_mtls_demo_runtime.py',
|
|
@@ -241,7 +239,9 @@ def scan_legacy_unittest_files(root: Path) -> list[str]:
|
|
|
241
239
|
detected: list[str] = []
|
|
242
240
|
for path in sorted(tests_root.glob('test_*.py')):
|
|
243
241
|
text = path.read_text(encoding='utf-8')
|
|
244
|
-
|
|
242
|
+
# unittest.mock is a standalone mock utility and does not make a
|
|
243
|
+
# pytest module a legacy unittest test module.
|
|
244
|
+
if 'import unittest' in text or 'from unittest import' in text:
|
|
245
245
|
detected.append(path.as_posix().split(root.as_posix() + '/', 1)[-1])
|
|
246
246
|
return detected
|
|
247
247
|
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/listeners.py
RENAMED
|
@@ -120,3 +120,7 @@ def _apply_listener_quic_fields(ns: Namespace, listener: dict[str, Any]) -> None
|
|
|
120
120
|
listener["max_datagram_size"] = ns.quic_max_datagram_size
|
|
121
121
|
if ns.quic_secret is not None:
|
|
122
122
|
listener["quic_secret"] = ns.quic_secret.encode("utf-8") if isinstance(ns.quic_secret, str) else ns.quic_secret
|
|
123
|
+
if getattr(ns, "quic_congestion_control", None) is not None:
|
|
124
|
+
listener.setdefault("congestion_control", {})["algorithm"] = ns.quic_congestion_control
|
|
125
|
+
if getattr(ns, "quic_congestion_control_options", None) is not None:
|
|
126
|
+
listener.setdefault("congestion_control", {})["options"] = dict(ns.quic_congestion_control_options)
|
|
@@ -7,15 +7,21 @@ from typing import Any, Mapping
|
|
|
7
7
|
from tigrcorn_config.defaults import default_config
|
|
8
8
|
from tigrcorn_config.files import load_config_source
|
|
9
9
|
from tigrcorn_config.merge import merge_config_dicts
|
|
10
|
-
from tigrcorn_config.model import ListenerConfig, ServerConfig
|
|
10
|
+
from tigrcorn_config.model import CongestionControlConfig, ListenerConfig, ServerConfig
|
|
11
11
|
from tigrcorn_config.normalize import normalize_config
|
|
12
|
-
from tigrcorn_config.profiles import
|
|
12
|
+
from tigrcorn_config.profiles import (
|
|
13
|
+
resolve_effective_profile_mapping,
|
|
14
|
+
resolve_requested_profile,
|
|
15
|
+
)
|
|
13
16
|
from tigrcorn_config.validate import validate_config
|
|
14
17
|
|
|
15
18
|
|
|
16
19
|
def _dataclass_to_dict(value: Any) -> Any:
|
|
17
20
|
if dataclasses.is_dataclass(value):
|
|
18
|
-
return {
|
|
21
|
+
return {
|
|
22
|
+
field.name: _dataclass_to_dict(getattr(value, field.name))
|
|
23
|
+
for field in dataclasses.fields(value)
|
|
24
|
+
}
|
|
19
25
|
if isinstance(value, list):
|
|
20
26
|
return [_dataclass_to_dict(item) for item in value]
|
|
21
27
|
if isinstance(value, tuple):
|
|
@@ -30,6 +36,10 @@ def config_to_dict(config: ServerConfig) -> dict[str, Any]:
|
|
|
30
36
|
def _apply_mapping(target: Any, data: Mapping[str, Any]) -> None:
|
|
31
37
|
for key, value in data.items():
|
|
32
38
|
if not hasattr(target, key):
|
|
39
|
+
from tigrcorn_config.model.admission import AdmissionConfig
|
|
40
|
+
|
|
41
|
+
if isinstance(target, AdmissionConfig):
|
|
42
|
+
raise ValueError(f"unknown admission field: {key}")
|
|
33
43
|
continue
|
|
34
44
|
current = getattr(target, key)
|
|
35
45
|
if isinstance(current, list) and key == "listeners" and isinstance(value, list):
|
|
@@ -40,6 +50,10 @@ def _apply_mapping(target: Any, data: Mapping[str, Any]) -> None:
|
|
|
40
50
|
_apply_mapping(listener, entry)
|
|
41
51
|
listeners.append(listener)
|
|
42
52
|
setattr(target, key, listeners)
|
|
53
|
+
elif key == "congestion_control" and isinstance(value, Mapping):
|
|
54
|
+
congestion_control = CongestionControlConfig()
|
|
55
|
+
_apply_mapping(congestion_control, value)
|
|
56
|
+
setattr(target, key, congestion_control)
|
|
43
57
|
elif dataclasses.is_dataclass(current) and isinstance(value, Mapping):
|
|
44
58
|
_apply_mapping(current, value)
|
|
45
59
|
else:
|
|
@@ -48,7 +62,9 @@ def _apply_mapping(target: Any, data: Mapping[str, Any]) -> None:
|
|
|
48
62
|
|
|
49
63
|
def config_from_mapping(data: Mapping[str, Any]) -> ServerConfig:
|
|
50
64
|
profile_name = resolve_requested_profile(data)
|
|
51
|
-
effective_mapping = merge_config_dicts(
|
|
65
|
+
effective_mapping = merge_config_dicts(
|
|
66
|
+
resolve_effective_profile_mapping(profile_name), data
|
|
67
|
+
)
|
|
52
68
|
config = default_config()
|
|
53
69
|
_apply_mapping(config, effective_mapping)
|
|
54
70
|
normalize_config(config)
|
|
@@ -56,5 +72,7 @@ def config_from_mapping(data: Mapping[str, Any]) -> ServerConfig:
|
|
|
56
72
|
return config
|
|
57
73
|
|
|
58
74
|
|
|
59
|
-
def config_from_source(
|
|
75
|
+
def config_from_source(
|
|
76
|
+
source: str | Path | Mapping[str, Any] | Any | None,
|
|
77
|
+
) -> ServerConfig:
|
|
60
78
|
return config_from_mapping(load_config_source(source))
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/namespace.py
RENAMED
|
@@ -22,8 +22,15 @@ def namespace_to_overrides(ns: Namespace) -> dict[str, Any]:
|
|
|
22
22
|
"logging": {},
|
|
23
23
|
"metrics": {},
|
|
24
24
|
"scheduler": {},
|
|
25
|
+
"admission": {},
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
from tigrcorn_config.model.admission import ADMISSION_FIELDS
|
|
29
|
+
|
|
30
|
+
for name in ADMISSION_FIELDS:
|
|
31
|
+
value = getattr(ns, name, None)
|
|
32
|
+
if value is not None:
|
|
33
|
+
blocks["admission"][name] = value
|
|
27
34
|
_populate_app_block(ns, blocks["app"])
|
|
28
35
|
logging_explicit_fields = _populate_mapped_blocks(ns, blocks)
|
|
29
36
|
_populate_special_blocks(ns, blocks, logging_explicit_fields)
|
|
@@ -64,7 +71,9 @@ def _populate_app_block(ns: Namespace, app_block: dict[str, Any]) -> None:
|
|
|
64
71
|
app_block["reload_exclude"] = list(ns.reload_exclude)
|
|
65
72
|
|
|
66
73
|
|
|
67
|
-
def _populate_mapped_blocks(
|
|
74
|
+
def _populate_mapped_blocks(
|
|
75
|
+
ns: Namespace, blocks: dict[str, dict[str, Any]]
|
|
76
|
+
) -> list[str]:
|
|
68
77
|
logging_explicit_fields: list[str] = []
|
|
69
78
|
for key, (block_name, dest) in _NAMESPACE_MAPPING.items():
|
|
70
79
|
value = getattr(ns, key, None)
|
|
@@ -87,7 +96,9 @@ def _populate_special_blocks(
|
|
|
87
96
|
logging_explicit_fields.append("log_config")
|
|
88
97
|
if getattr(ns, "ssl_revocation_fetch", None) is not None:
|
|
89
98
|
value = ns.ssl_revocation_fetch
|
|
90
|
-
blocks["tls"]["revocation_fetch"] =
|
|
99
|
+
blocks["tls"]["revocation_fetch"] = (
|
|
100
|
+
value == "on" if isinstance(value, str) else bool(value)
|
|
101
|
+
)
|
|
91
102
|
if ns.forwarded_allow_ips:
|
|
92
103
|
blocks["proxy"]["forwarded_allow_ips"] = listify(ns.forwarded_allow_ips)
|
|
93
104
|
if ns.server_header is not None:
|
|
@@ -115,7 +126,19 @@ def _populate_special_blocks(
|
|
|
115
126
|
if ns.disable_websocket is not None:
|
|
116
127
|
blocks["websocket"]["enabled"] = not ns.disable_websocket
|
|
117
128
|
if ns.quic_secret is not None:
|
|
118
|
-
blocks["quic"]["quic_secret"] =
|
|
129
|
+
blocks["quic"]["quic_secret"] = (
|
|
130
|
+
ns.quic_secret.encode("utf-8")
|
|
131
|
+
if isinstance(ns.quic_secret, str)
|
|
132
|
+
else ns.quic_secret
|
|
133
|
+
)
|
|
134
|
+
if getattr(ns, "quic_congestion_control", None) is not None:
|
|
135
|
+
blocks["quic"].setdefault("congestion_control", {})["algorithm"] = (
|
|
136
|
+
ns.quic_congestion_control
|
|
137
|
+
)
|
|
138
|
+
if getattr(ns, "quic_congestion_control_options", None) is not None:
|
|
139
|
+
blocks["quic"].setdefault("congestion_control", {})["options"] = dict(
|
|
140
|
+
ns.quic_congestion_control_options
|
|
141
|
+
)
|
|
119
142
|
if getattr(ns, "webtransport_origin", None):
|
|
120
143
|
blocks["webtransport"]["origins"] = listify(ns.webtransport_origin)
|
|
121
144
|
|
|
@@ -168,7 +191,10 @@ _NAMESPACE_MAPPING: dict[str, tuple[str, str]] = {
|
|
|
168
191
|
"http2_max_headers_size": ("http", "http2_max_headers_size"),
|
|
169
192
|
"http2_max_frame_size": ("http", "http2_max_frame_size"),
|
|
170
193
|
"http2_adaptive_window": ("http", "http2_adaptive_window"),
|
|
171
|
-
"http2_initial_connection_window_size": (
|
|
194
|
+
"http2_initial_connection_window_size": (
|
|
195
|
+
"http",
|
|
196
|
+
"http2_initial_connection_window_size",
|
|
197
|
+
),
|
|
172
198
|
"http2_initial_stream_window_size": ("http", "http2_initial_stream_window_size"),
|
|
173
199
|
"http2_keep_alive_interval": ("http", "http2_keep_alive_interval"),
|
|
174
200
|
"http2_keep_alive_timeout": ("http", "http2_keep_alive_timeout"),
|
|
@@ -195,7 +221,17 @@ _NAMESPACE_MAPPING: dict[str, tuple[str, str]] = {
|
|
|
195
221
|
"webtransport_max_sessions": ("webtransport", "max_sessions"),
|
|
196
222
|
"webtransport_max_streams": ("webtransport", "max_streams"),
|
|
197
223
|
"webtransport_max_datagram_size": ("webtransport", "max_datagram_size"),
|
|
224
|
+
"webtransport_stream_receive_coalesce_bytes": (
|
|
225
|
+
"webtransport",
|
|
226
|
+
"stream_receive_coalesce_bytes",
|
|
227
|
+
),
|
|
228
|
+
"webtransport_stream_receive_max_delay_ms": (
|
|
229
|
+
"webtransport",
|
|
230
|
+
"stream_receive_max_delay_ms",
|
|
231
|
+
),
|
|
198
232
|
"webtransport_path": ("webtransport", "path"),
|
|
233
|
+
"webtransport_profiles": ("webtransport", "profiles"),
|
|
234
|
+
"webtransport_preferred_profile": ("webtransport", "preferred_profile"),
|
|
199
235
|
"log_level": ("logging", "level"),
|
|
200
236
|
"access_log": ("logging", "access_log"),
|
|
201
237
|
"access_log_file": ("logging", "access_log_file"),
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/public_api.py
RENAMED
|
@@ -62,8 +62,12 @@ def build_config(
|
|
|
62
62
|
webtransport_max_sessions: int | None = None,
|
|
63
63
|
webtransport_max_streams: int | None = None,
|
|
64
64
|
webtransport_max_datagram_size: int | None = None,
|
|
65
|
+
webtransport_stream_receive_coalesce_bytes: int | None = None,
|
|
66
|
+
webtransport_stream_receive_max_delay_ms: int | None = None,
|
|
65
67
|
webtransport_origins: list[str] | None = None,
|
|
66
68
|
webtransport_path: str | None = None,
|
|
69
|
+
webtransport_profiles: list[str] | None = None,
|
|
70
|
+
webtransport_preferred_profile: str | None = None,
|
|
67
71
|
pipe_mode: str = "rawframed",
|
|
68
72
|
config: Mapping[str, Any] | None = None,
|
|
69
73
|
default_headers: list[str] | list[tuple[str, str]] | None = None,
|
|
@@ -99,8 +103,12 @@ def build_config(
|
|
|
99
103
|
webtransport_max_sessions=webtransport_max_sessions,
|
|
100
104
|
webtransport_max_streams=webtransport_max_streams,
|
|
101
105
|
webtransport_max_datagram_size=webtransport_max_datagram_size,
|
|
106
|
+
webtransport_stream_receive_coalesce_bytes=webtransport_stream_receive_coalesce_bytes,
|
|
107
|
+
webtransport_stream_receive_max_delay_ms=webtransport_stream_receive_max_delay_ms,
|
|
102
108
|
webtransport_origins=webtransport_origins,
|
|
103
109
|
webtransport_path=webtransport_path,
|
|
110
|
+
webtransport_profiles=webtransport_profiles,
|
|
111
|
+
webtransport_preferred_profile=webtransport_preferred_profile,
|
|
104
112
|
)
|
|
105
113
|
effective_websocket_enabled = True if websocket is None and direct_runtime_customized else bool(websocket)
|
|
106
114
|
effective_h2c_enabled = _effective_h2c_enabled(enable_h2c, requested_http_versions)
|
|
@@ -156,8 +164,12 @@ def build_config(
|
|
|
156
164
|
webtransport_max_sessions=webtransport_max_sessions,
|
|
157
165
|
webtransport_max_streams=webtransport_max_streams,
|
|
158
166
|
webtransport_max_datagram_size=webtransport_max_datagram_size,
|
|
167
|
+
webtransport_stream_receive_coalesce_bytes=webtransport_stream_receive_coalesce_bytes,
|
|
168
|
+
webtransport_stream_receive_max_delay_ms=webtransport_stream_receive_max_delay_ms,
|
|
159
169
|
webtransport_origins=webtransport_origins,
|
|
160
170
|
webtransport_path=webtransport_path,
|
|
171
|
+
webtransport_profiles=webtransport_profiles,
|
|
172
|
+
webtransport_preferred_profile=webtransport_preferred_profile,
|
|
161
173
|
)
|
|
162
174
|
_apply_listener_override_if_needed(
|
|
163
175
|
overrides,
|
|
@@ -184,8 +196,12 @@ def build_config(
|
|
|
184
196
|
webtransport_max_sessions=webtransport_max_sessions,
|
|
185
197
|
webtransport_max_streams=webtransport_max_streams,
|
|
186
198
|
webtransport_max_datagram_size=webtransport_max_datagram_size,
|
|
199
|
+
webtransport_stream_receive_coalesce_bytes=webtransport_stream_receive_coalesce_bytes,
|
|
200
|
+
webtransport_stream_receive_max_delay_ms=webtransport_stream_receive_max_delay_ms,
|
|
187
201
|
webtransport_origins=webtransport_origins,
|
|
188
202
|
webtransport_path=webtransport_path,
|
|
203
|
+
webtransport_profiles=webtransport_profiles,
|
|
204
|
+
webtransport_preferred_profile=webtransport_preferred_profile,
|
|
189
205
|
)
|
|
190
206
|
_apply_optional_http_overrides(
|
|
191
207
|
overrides,
|
|
@@ -227,8 +243,12 @@ def _direct_runtime_customized(**values: Any) -> bool:
|
|
|
227
243
|
or values["webtransport_max_sessions"] is not None
|
|
228
244
|
or values["webtransport_max_streams"] is not None
|
|
229
245
|
or values["webtransport_max_datagram_size"] is not None
|
|
246
|
+
or values["webtransport_stream_receive_coalesce_bytes"] is not None
|
|
247
|
+
or values["webtransport_stream_receive_max_delay_ms"] is not None
|
|
230
248
|
or values["webtransport_origins"] is not None
|
|
231
249
|
or values["webtransport_path"] is not None
|
|
250
|
+
or values["webtransport_profiles"] is not None
|
|
251
|
+
or values["webtransport_preferred_profile"] is not None
|
|
232
252
|
)
|
|
233
253
|
|
|
234
254
|
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/load/public_helpers.py
RENAMED
|
@@ -56,8 +56,12 @@ def apply_webtransport_overrides(
|
|
|
56
56
|
webtransport_max_sessions: int | None,
|
|
57
57
|
webtransport_max_streams: int | None,
|
|
58
58
|
webtransport_max_datagram_size: int | None,
|
|
59
|
+
webtransport_stream_receive_coalesce_bytes: int | None,
|
|
60
|
+
webtransport_stream_receive_max_delay_ms: int | None,
|
|
59
61
|
webtransport_origins: list[str] | None,
|
|
60
62
|
webtransport_path: str | None,
|
|
63
|
+
webtransport_profiles: list[str] | None,
|
|
64
|
+
webtransport_preferred_profile: str | None,
|
|
61
65
|
) -> None:
|
|
62
66
|
if any(
|
|
63
67
|
value is not None
|
|
@@ -65,16 +69,32 @@ def apply_webtransport_overrides(
|
|
|
65
69
|
webtransport_max_sessions,
|
|
66
70
|
webtransport_max_streams,
|
|
67
71
|
webtransport_max_datagram_size,
|
|
72
|
+
webtransport_stream_receive_coalesce_bytes,
|
|
73
|
+
webtransport_stream_receive_max_delay_ms,
|
|
68
74
|
webtransport_origins,
|
|
69
75
|
webtransport_path,
|
|
76
|
+
webtransport_profiles,
|
|
77
|
+
webtransport_preferred_profile,
|
|
70
78
|
)
|
|
71
79
|
):
|
|
72
80
|
overrides["webtransport"] = {
|
|
73
81
|
"max_sessions": webtransport_max_sessions,
|
|
74
82
|
"max_streams": webtransport_max_streams,
|
|
75
83
|
"max_datagram_size": webtransport_max_datagram_size,
|
|
84
|
+
**(
|
|
85
|
+
{"stream_receive_coalesce_bytes": webtransport_stream_receive_coalesce_bytes}
|
|
86
|
+
if webtransport_stream_receive_coalesce_bytes is not None
|
|
87
|
+
else {}
|
|
88
|
+
),
|
|
89
|
+
**(
|
|
90
|
+
{"stream_receive_max_delay_ms": webtransport_stream_receive_max_delay_ms}
|
|
91
|
+
if webtransport_stream_receive_max_delay_ms is not None
|
|
92
|
+
else {}
|
|
93
|
+
),
|
|
76
94
|
"origins": webtransport_origins or [],
|
|
77
95
|
"path": webtransport_path,
|
|
96
|
+
"profiles": webtransport_profiles or [],
|
|
97
|
+
"preferred_profile": webtransport_preferred_profile,
|
|
78
98
|
}
|
|
79
99
|
|
|
80
100
|
|
|
@@ -94,8 +114,12 @@ def apply_listener_override_if_needed(overrides: dict[str, Any], **values: Any)
|
|
|
94
114
|
or values["webtransport_max_sessions"] is not None
|
|
95
115
|
or values["webtransport_max_streams"] is not None
|
|
96
116
|
or values["webtransport_max_datagram_size"] is not None
|
|
117
|
+
or values["webtransport_stream_receive_coalesce_bytes"] is not None
|
|
118
|
+
or values["webtransport_stream_receive_max_delay_ms"] is not None
|
|
97
119
|
or values["webtransport_origins"] is not None
|
|
98
120
|
or values["webtransport_path"] is not None
|
|
121
|
+
or values["webtransport_profiles"] is not None
|
|
122
|
+
or values["webtransport_preferred_profile"] is not None
|
|
99
123
|
)
|
|
100
124
|
if not listener_customized:
|
|
101
125
|
return
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/__init__.py
RENAMED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
from .admission import AdmissionConfig
|
|
3
4
|
from .app import AppConfig, HooksConfig, ProcessConfig
|
|
4
5
|
from .http import HTTPConfig, StaticConfig, WebSocketConfig
|
|
5
6
|
from .observability import LoggingConfig, MetricsConfig
|
|
6
7
|
from .scheduler import SchedulerConfig
|
|
7
8
|
from .security import ProxyConfig, TLSConfig
|
|
8
9
|
from .server import ServerConfig
|
|
9
|
-
from .transports import
|
|
10
|
+
from .transports import (
|
|
11
|
+
CongestionControlConfig,
|
|
12
|
+
ListenerConfig,
|
|
13
|
+
QUICConfig,
|
|
14
|
+
WebTransportConfig,
|
|
15
|
+
)
|
|
10
16
|
from .types import AppInterface, ClaimClass, ListenerKind, ProtocolName
|
|
11
17
|
|
|
12
18
|
__all__ = [
|
|
19
|
+
"AdmissionConfig",
|
|
13
20
|
"AppConfig",
|
|
14
21
|
"AppInterface",
|
|
15
22
|
"ClaimClass",
|
|
23
|
+
"CongestionControlConfig",
|
|
16
24
|
"HTTPConfig",
|
|
17
25
|
"HooksConfig",
|
|
18
26
|
"ListenerConfig",
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Canonical transport admission settings for every configuration surface."""
|
|
2
|
+
|
|
3
|
+
from dataclasses import dataclass, fields
|
|
4
|
+
import math
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@dataclass(slots=True)
|
|
8
|
+
class AdmissionConfig:
|
|
9
|
+
max_connections_per_source: int | None = None
|
|
10
|
+
max_connections_per_instance: int | None = None
|
|
11
|
+
max_sessions_per_connection: int | None = None
|
|
12
|
+
max_sessions_per_source: int | None = None
|
|
13
|
+
max_sessions_per_instance: int | None = None
|
|
14
|
+
max_active_streams_per_connection: int | None = None
|
|
15
|
+
max_active_streams_per_session: int | None = None
|
|
16
|
+
max_active_streams_per_source: int | None = None
|
|
17
|
+
max_active_streams_per_instance: int | None = None
|
|
18
|
+
connection_open_rate_per_source: float | None = None
|
|
19
|
+
connection_open_burst_per_source: int | None = None
|
|
20
|
+
connection_open_rate_per_instance: float | None = None
|
|
21
|
+
connection_open_burst_per_instance: int | None = None
|
|
22
|
+
session_open_rate_per_connection: float | None = None
|
|
23
|
+
session_open_burst_per_connection: int | None = None
|
|
24
|
+
session_open_rate_per_source: float | None = None
|
|
25
|
+
session_open_burst_per_source: int | None = None
|
|
26
|
+
session_open_rate_per_instance: float | None = None
|
|
27
|
+
session_open_burst_per_instance: int | None = None
|
|
28
|
+
stream_open_rate_per_connection: float | None = None
|
|
29
|
+
stream_open_burst_per_connection: int | None = None
|
|
30
|
+
stream_open_rate_per_session: float | None = None
|
|
31
|
+
stream_open_burst_per_session: int | None = None
|
|
32
|
+
stream_open_rate_per_source: float | None = None
|
|
33
|
+
stream_open_burst_per_source: int | None = None
|
|
34
|
+
stream_open_rate_per_instance: float | None = None
|
|
35
|
+
stream_open_burst_per_instance: int | None = None
|
|
36
|
+
max_tracking_entries: int = 65536
|
|
37
|
+
coordinator_path: str | None = None
|
|
38
|
+
owner_generation: str | None = None
|
|
39
|
+
|
|
40
|
+
def __post_init__(self):
|
|
41
|
+
self.validate()
|
|
42
|
+
|
|
43
|
+
def validate(self):
|
|
44
|
+
for field in fields(self):
|
|
45
|
+
key = field.name
|
|
46
|
+
value = getattr(self, key)
|
|
47
|
+
if key in {"coordinator_path", "owner_generation"} or value is None:
|
|
48
|
+
continue
|
|
49
|
+
rate = "_rate_" in key
|
|
50
|
+
if (
|
|
51
|
+
isinstance(value, bool)
|
|
52
|
+
or not isinstance(value, (int, float))
|
|
53
|
+
or not math.isfinite(value)
|
|
54
|
+
or value <= 0
|
|
55
|
+
or (not rate and not isinstance(value, int))
|
|
56
|
+
):
|
|
57
|
+
raise ValueError(
|
|
58
|
+
f"admission.{key} must be a finite positive "
|
|
59
|
+
+ ("number" if rate else "integer")
|
|
60
|
+
)
|
|
61
|
+
if rate:
|
|
62
|
+
burst = getattr(self, key.replace("_rate_", "_burst_"))
|
|
63
|
+
if burst is None:
|
|
64
|
+
raise ValueError(f"admission.{key} requires its burst")
|
|
65
|
+
if (
|
|
66
|
+
"_burst_" in key
|
|
67
|
+
and getattr(self, key.replace("_burst_", "_rate_")) is None
|
|
68
|
+
):
|
|
69
|
+
raise ValueError(f"admission.{key} requires its rate")
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
ADMISSION_FIELDS = tuple(
|
|
73
|
+
f.name
|
|
74
|
+
for f in fields(AdmissionConfig)
|
|
75
|
+
if f.name not in {"coordinator_path", "owner_generation"}
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def admission_type(name):
|
|
80
|
+
return float if "_rate_" in name else int
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
from dataclasses import dataclass, field
|
|
4
4
|
from typing import Literal
|
|
5
5
|
|
|
6
|
+
from .admission import AdmissionConfig
|
|
6
7
|
from .app import AppConfig, HooksConfig, ProcessConfig
|
|
7
8
|
from .http import HTTPConfig, StaticConfig, WebSocketConfig
|
|
8
9
|
from .observability import LoggingConfig, MetricsConfig
|
|
@@ -13,6 +14,7 @@ from .transports import ListenerConfig, QUICConfig, WebTransportConfig
|
|
|
13
14
|
|
|
14
15
|
@dataclass(slots=True)
|
|
15
16
|
class ServerConfig:
|
|
17
|
+
admission: AdmissionConfig = field(default_factory=AdmissionConfig)
|
|
16
18
|
app: AppConfig = field(default_factory=AppConfig)
|
|
17
19
|
process: ProcessConfig = field(default_factory=ProcessConfig)
|
|
18
20
|
listeners: list[ListenerConfig] = field(default_factory=lambda: [ListenerConfig()])
|
|
@@ -143,7 +145,9 @@ class ServerConfig:
|
|
|
143
145
|
normalized.append(
|
|
144
146
|
(
|
|
145
147
|
name.encode("latin1") if isinstance(name, str) else bytes(name),
|
|
146
|
-
value.encode("latin1")
|
|
148
|
+
value.encode("latin1")
|
|
149
|
+
if isinstance(value, str)
|
|
150
|
+
else bytes(value),
|
|
147
151
|
)
|
|
148
152
|
)
|
|
149
153
|
return normalized
|
|
@@ -171,9 +175,14 @@ class ServerConfig:
|
|
|
171
175
|
for listener in self.listeners:
|
|
172
176
|
if listener.kind != "udp":
|
|
173
177
|
continue
|
|
174
|
-
if
|
|
178
|
+
if (
|
|
179
|
+
"http3" not in listener.enabled_protocols
|
|
180
|
+
and "3" not in listener.http_versions
|
|
181
|
+
):
|
|
175
182
|
continue
|
|
176
|
-
rendered =
|
|
183
|
+
rendered = (
|
|
184
|
+
f'h3=":{int(listener.port)}"; ma={int(self.http.alt_svc_max_age)}'
|
|
185
|
+
)
|
|
177
186
|
if self.http.alt_svc_persist:
|
|
178
187
|
rendered += "; persist=1"
|
|
179
188
|
payload = rendered.encode("ascii")
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/transports.py
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
from dataclasses import dataclass, field
|
|
4
|
-
from typing import Literal
|
|
4
|
+
from typing import Any, Literal
|
|
5
5
|
|
|
6
6
|
from tigrcorn_core.constants import (
|
|
7
7
|
DEFAULT_BACKLOG,
|
|
@@ -15,6 +15,12 @@ from tigrcorn_core.constants import (
|
|
|
15
15
|
from .types import ListenerKind
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
@dataclass(slots=True)
|
|
19
|
+
class CongestionControlConfig:
|
|
20
|
+
algorithm: str | None = None
|
|
21
|
+
options: dict[str, Any] = field(default_factory=dict)
|
|
22
|
+
|
|
23
|
+
|
|
18
24
|
@dataclass(slots=True)
|
|
19
25
|
class QUICConfig:
|
|
20
26
|
quic_secret: bytes | None = None
|
|
@@ -22,13 +28,22 @@ class QUICConfig:
|
|
|
22
28
|
max_datagram_size: int = DEFAULT_MAX_DATAGRAM_SIZE
|
|
23
29
|
idle_timeout: float = DEFAULT_IDLE_TIMEOUT
|
|
24
30
|
early_data_policy: Literal["allow", "deny", "require"] = "deny"
|
|
31
|
+
congestion_control: CongestionControlConfig = field(
|
|
32
|
+
default_factory=lambda: CongestionControlConfig(algorithm="reno")
|
|
33
|
+
)
|
|
25
34
|
|
|
26
35
|
|
|
27
36
|
@dataclass(slots=True)
|
|
28
37
|
class WebTransportConfig:
|
|
38
|
+
enabled: bool = False
|
|
39
|
+
compatibility: Literal["current", "draft13"] = "current"
|
|
40
|
+
profiles: list[str] = field(default_factory=list)
|
|
41
|
+
preferred_profile: str | None = None
|
|
29
42
|
max_sessions: int | None = None
|
|
30
43
|
max_streams: int | None = None
|
|
31
44
|
max_datagram_size: int | None = None
|
|
45
|
+
stream_receive_coalesce_bytes: int = 16 * 1024
|
|
46
|
+
stream_receive_max_delay_ms: int = 5
|
|
32
47
|
origins: list[str] = field(default_factory=list)
|
|
33
48
|
path: str | None = None
|
|
34
49
|
|
|
@@ -69,6 +84,7 @@ class ListenerConfig:
|
|
|
69
84
|
quic_secret: bytes | None = None
|
|
70
85
|
quic_require_retry: bool = False
|
|
71
86
|
max_datagram_size: int = DEFAULT_MAX_DATAGRAM_SIZE
|
|
87
|
+
congestion_control: CongestionControlConfig | None = None
|
|
72
88
|
pipe_mode: Literal["rawframed", "stream"] = DEFAULT_PIPE_MODE
|
|
73
89
|
user: str | int | None = None
|
|
74
90
|
group: str | int | None = None
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import secrets
|
|
4
4
|
|
|
5
|
-
from tigrcorn_config.model import ListenerConfig, ServerConfig
|
|
5
|
+
from tigrcorn_config.model import CongestionControlConfig, ListenerConfig, ServerConfig
|
|
6
6
|
from tigrcorn_core.constants import (
|
|
7
7
|
DEFAULT_HTTP2_INITIAL_CONNECTION_WINDOW_SIZE,
|
|
8
8
|
DEFAULT_HTTP2_INITIAL_STREAM_WINDOW_SIZE,
|
|
@@ -90,6 +90,55 @@ def normalize_config(config: ServerConfig) -> None:
|
|
|
90
90
|
config.webtransport.max_streams = int(config.webtransport.max_streams)
|
|
91
91
|
if config.webtransport.max_datagram_size is not None:
|
|
92
92
|
config.webtransport.max_datagram_size = int(config.webtransport.max_datagram_size)
|
|
93
|
+
config.webtransport.stream_receive_coalesce_bytes = int(
|
|
94
|
+
config.webtransport.stream_receive_coalesce_bytes
|
|
95
|
+
)
|
|
96
|
+
config.webtransport.stream_receive_max_delay_ms = int(
|
|
97
|
+
config.webtransport.stream_receive_max_delay_ms
|
|
98
|
+
)
|
|
99
|
+
config.webtransport.enabled = bool(config.webtransport.enabled)
|
|
100
|
+
config.quic.congestion_control.algorithm = str(
|
|
101
|
+
config.quic.congestion_control.algorithm or "reno"
|
|
102
|
+
).strip().lower()
|
|
103
|
+
config.quic.congestion_control.options = dict(
|
|
104
|
+
config.quic.congestion_control.options or {}
|
|
105
|
+
)
|
|
106
|
+
config.webtransport.compatibility = str(config.webtransport.compatibility or 'current').strip().lower()
|
|
107
|
+
aliases = {'current': 'ietf-current', 'chromium': 'draft02'}
|
|
108
|
+
configured_profiles = [
|
|
109
|
+
aliases.get(str(value).strip().lower(), str(value).strip().lower())
|
|
110
|
+
for value in _ensure_list(config.webtransport.profiles)
|
|
111
|
+
if str(value).strip()
|
|
112
|
+
]
|
|
113
|
+
if (
|
|
114
|
+
config.webtransport.compatibility == 'draft13'
|
|
115
|
+
and configured_profiles in (
|
|
116
|
+
['ietf-current'],
|
|
117
|
+
['draft02', 'draft13', 'ietf-current'],
|
|
118
|
+
)
|
|
119
|
+
and config.webtransport.preferred_profile in {None, 'ietf-current', 'current'}
|
|
120
|
+
):
|
|
121
|
+
configured_profiles = ['draft13']
|
|
122
|
+
config.webtransport.preferred_profile = 'draft13'
|
|
123
|
+
if not configured_profiles:
|
|
124
|
+
configured_profiles = (
|
|
125
|
+
['draft13']
|
|
126
|
+
if config.webtransport.compatibility == 'draft13'
|
|
127
|
+
else ['draft02', 'draft13', 'ietf-current']
|
|
128
|
+
)
|
|
129
|
+
config.webtransport.profiles = list(dict.fromkeys(configured_profiles))
|
|
130
|
+
preferred = str(config.webtransport.preferred_profile or '').strip().lower()
|
|
131
|
+
if preferred:
|
|
132
|
+
preferred = aliases.get(preferred, preferred)
|
|
133
|
+
else:
|
|
134
|
+
preferred = (
|
|
135
|
+
'ietf-current'
|
|
136
|
+
if 'ietf-current' in config.webtransport.profiles
|
|
137
|
+
else config.webtransport.profiles[0]
|
|
138
|
+
)
|
|
139
|
+
config.webtransport.preferred_profile = preferred
|
|
140
|
+
if preferred in {'ietf-current', 'draft13'}:
|
|
141
|
+
config.webtransport.compatibility = 'draft13' if preferred == 'draft13' else 'current'
|
|
93
142
|
config.webtransport.origins = [str(v).strip() for v in _ensure_list(config.webtransport.origins) if str(v).strip()]
|
|
94
143
|
if config.webtransport.path is not None:
|
|
95
144
|
path = str(config.webtransport.path).strip()
|
|
@@ -218,7 +267,10 @@ def normalize_config(config: ServerConfig) -> None:
|
|
|
218
267
|
listener.protocols.append("websocket")
|
|
219
268
|
listener.websocket = config.websocket.enabled if listener.websocket else listener.websocket
|
|
220
269
|
if listener.kind == "udp":
|
|
270
|
+
if config.webtransport.enabled and "webtransport" not in listener.protocols:
|
|
271
|
+
listener.protocols.append("webtransport")
|
|
221
272
|
if "webtransport" in listener.protocols:
|
|
273
|
+
config.webtransport.enabled = True
|
|
222
274
|
if "quic" not in listener.protocols:
|
|
223
275
|
listener.protocols.insert(0, "quic")
|
|
224
276
|
if "http3" not in listener.protocols:
|
|
@@ -229,6 +281,16 @@ def normalize_config(config: ServerConfig) -> None:
|
|
|
229
281
|
if "http3" in listener.protocols and "quic" not in listener.protocols:
|
|
230
282
|
listener.protocols.insert(0, "quic")
|
|
231
283
|
listener.max_datagram_size = int(config.quic.max_datagram_size or listener.max_datagram_size)
|
|
284
|
+
listener_cc = listener.congestion_control or CongestionControlConfig()
|
|
285
|
+
listener.congestion_control = CongestionControlConfig(
|
|
286
|
+
algorithm=str(
|
|
287
|
+
listener_cc.algorithm or config.quic.congestion_control.algorithm
|
|
288
|
+
).strip().lower(),
|
|
289
|
+
options={
|
|
290
|
+
**config.quic.congestion_control.options,
|
|
291
|
+
**dict(listener_cc.options or {}),
|
|
292
|
+
},
|
|
293
|
+
)
|
|
232
294
|
listener.quic_require_retry = bool(config.quic.require_retry or listener.quic_require_retry)
|
|
233
295
|
listener.quic_secret = listener.quic_secret or config.quic.quic_secret or secrets.token_bytes(32)
|
|
234
296
|
if not listener.scheme:
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/observability_surface.py
RENAMED
|
@@ -28,10 +28,22 @@ METRICS_SCHEMA = {
|
|
|
28
28
|
'loss': [
|
|
29
29
|
'quic_packets_lost',
|
|
30
30
|
'quic_pto_expirations',
|
|
31
|
+
'quic_pto_probes',
|
|
32
|
+
'quic_stream_bytes_retransmitted',
|
|
33
|
+
'quic_crypto_bytes_retransmitted',
|
|
34
|
+
'quic_datagram_frames_abandoned',
|
|
35
|
+
'quic_frames_regenerated',
|
|
31
36
|
'quic_path_challenges',
|
|
32
37
|
'quic_path_responses',
|
|
33
38
|
'quic_path_migrations',
|
|
34
39
|
],
|
|
40
|
+
'congestion': [
|
|
41
|
+
'quic_bytes_in_flight',
|
|
42
|
+
'quic_congestion_window_bytes',
|
|
43
|
+
'quic_smoothed_rtt_seconds',
|
|
44
|
+
'quic_pacing_rate_bytes_per_second',
|
|
45
|
+
'quic_pending_outbound_datagrams',
|
|
46
|
+
],
|
|
35
47
|
'http3': [
|
|
36
48
|
'http3_requests_served',
|
|
37
49
|
'http3_stream_resets',
|
|
@@ -45,6 +57,11 @@ METRICS_SCHEMA = {
|
|
|
45
57
|
'active_connections',
|
|
46
58
|
'active_websocket_connections',
|
|
47
59
|
'active_quic_sessions',
|
|
60
|
+
'quic_bytes_in_flight',
|
|
61
|
+
'quic_congestion_window_bytes',
|
|
62
|
+
'quic_smoothed_rtt_seconds',
|
|
63
|
+
'quic_pacing_rate_bytes_per_second',
|
|
64
|
+
'quic_pending_outbound_datagrams',
|
|
48
65
|
],
|
|
49
66
|
'notes': {
|
|
50
67
|
'aggregation': 'Counters are monotonic totals; gauges report current in-process state.',
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/policy_surface.py
RENAMED
|
@@ -291,6 +291,9 @@ FLAG_HELP: dict[str, str] = {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
|
|
294
|
+
from tigrcorn_config.model.admission import ADMISSION_FIELDS
|
|
295
|
+
FLAG_HELP.update({"--"+name.replace("_","-"): "Transport admission: "+name.replace("_"," ") for name in ADMISSION_FIELDS})
|
|
296
|
+
|
|
294
297
|
def flag_help(flag: str, fallback: str | None = None) -> str | None:
|
|
295
298
|
return FLAG_HELP.get(flag, fallback)
|
|
296
299
|
|
|
@@ -94,6 +94,8 @@ QUIC_FLAG_HELP: dict[str, str] = {
|
|
|
94
94
|
'--quic-max-datagram-size': 'Maximum QUIC UDP payload size advertised and accepted by package-owned QUIC listeners',
|
|
95
95
|
'--quic-idle-timeout': 'QUIC idle timeout in seconds for package-owned UDP listeners',
|
|
96
96
|
'--quic-early-data-policy': 'QUIC early-data policy: deny, allow, or require with 425 downgrade handling',
|
|
97
|
+
'--quic-congestion-control': 'Installed QUIC congestion-control provider id (default: reno)',
|
|
98
|
+
'--quic-congestion-control-options': 'JSON object passed to the selected QUIC congestion-control provider at listener startup',
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
|
|
@@ -6,11 +6,11 @@ from tigrcorn_config.model import ServerConfig
|
|
|
6
6
|
from tigrcorn_config.normalize import normalize_config
|
|
7
7
|
from tigrcorn_core.constants import SUPPORTED_RUNTIMES, SUPPORTED_WORKER_CLASS_ALIASES
|
|
8
8
|
from tigrcorn_protocols.connect import validate_connect_allow_entry
|
|
9
|
-
from tigrcorn_observability.logging import validate_logging_contract
|
|
10
9
|
from tigrcorn_observability.metrics import parse_statsd_host
|
|
11
10
|
from tigrcorn_observability.tracing import validate_otel_endpoint
|
|
12
11
|
from tigrcorn_core.errors import ConfigError
|
|
13
12
|
from tigrcorn_config.profiles import list_blessed_profiles
|
|
13
|
+
from tigrcorn_protocols.webtransport.profiles import profile_registry
|
|
14
14
|
|
|
15
15
|
_ALLOWED_PROTOCOLS = {"http1", "http2", "http3", "quic", "websocket", "webtransport", "rawframed", "custom"}
|
|
16
16
|
_ALLOWED_WORKER_CLASSES = {"local", "process", *SUPPORTED_WORKER_CLASS_ALIASES}
|
|
@@ -23,7 +23,22 @@ def _require_positive(name: str, value: int | float | None) -> None:
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
def validate_config(config: ServerConfig) -> None:
|
|
26
|
+
from tigrcorn_observability.logging import validate_logging_contract
|
|
27
|
+
config.admission.validate()
|
|
28
|
+
if config.webtransport.compatibility not in {'current', 'draft13'}:
|
|
29
|
+
raise ConfigError("webtransport.compatibility must be 'current' or 'draft13'")
|
|
26
30
|
normalize_config(config)
|
|
31
|
+
registry = profile_registry()
|
|
32
|
+
if config.webtransport.enabled and not config.webtransport.profiles:
|
|
33
|
+
raise ConfigError('webtransport.profiles must not be empty when WebTransport is enabled')
|
|
34
|
+
unknown_profiles = [name for name in config.webtransport.profiles if name not in registry]
|
|
35
|
+
if unknown_profiles:
|
|
36
|
+
raise ConfigError(f"unsupported WebTransport profiles: {', '.join(unknown_profiles)}")
|
|
37
|
+
if config.webtransport.preferred_profile not in config.webtransport.profiles:
|
|
38
|
+
raise ConfigError('webtransport.preferred_profile must be included in webtransport.profiles')
|
|
39
|
+
unavailable = [name for name in config.webtransport.profiles if not registry[name].implemented]
|
|
40
|
+
if unavailable:
|
|
41
|
+
raise ConfigError(f"WebTransport profiles are not implemented: {', '.join(unavailable)}")
|
|
27
42
|
if config.app.profile is not None and config.app.profile not in set(list_blessed_profiles()):
|
|
28
43
|
raise ConfigError(f"unsupported app.profile: {config.app.profile!r}")
|
|
29
44
|
if config.app.interface not in {"auto", "tigr-asgi-contract", "asgi3"}:
|
|
@@ -88,6 +103,7 @@ def validate_config(config: ServerConfig) -> None:
|
|
|
88
103
|
"webtransport.max_sessions": config.webtransport.max_sessions,
|
|
89
104
|
"webtransport.max_streams": config.webtransport.max_streams,
|
|
90
105
|
"webtransport.max_datagram_size": config.webtransport.max_datagram_size,
|
|
106
|
+
"webtransport.stream_receive_coalesce_bytes": config.webtransport.stream_receive_coalesce_bytes,
|
|
91
107
|
"tls.ocsp_cache_size": config.tls.ocsp_cache_size,
|
|
92
108
|
"scheduler.limit_concurrency": config.scheduler.limit_concurrency,
|
|
93
109
|
"scheduler.max_connections": config.scheduler.max_connections,
|
|
@@ -97,6 +113,11 @@ def validate_config(config: ServerConfig) -> None:
|
|
|
97
113
|
}.items():
|
|
98
114
|
_require_positive(field_name, value)
|
|
99
115
|
|
|
116
|
+
if config.webtransport.stream_receive_max_delay_ms < 0:
|
|
117
|
+
raise ConfigError(
|
|
118
|
+
"webtransport.stream_receive_max_delay_ms must be nonnegative"
|
|
119
|
+
)
|
|
120
|
+
|
|
100
121
|
if config.http.alt_svc_max_age < 0:
|
|
101
122
|
raise ConfigError('http.alt_svc_max_age must be non-negative')
|
|
102
123
|
if not (16_384 <= config.http.http2_max_frame_size <= 16_777_215):
|
|
@@ -119,6 +140,8 @@ def validate_config(config: ServerConfig) -> None:
|
|
|
119
140
|
raise ConfigError(f"unsupported websocket compression mode: {config.websocket.compression!r}")
|
|
120
141
|
if config.quic.early_data_policy not in {"allow", "deny", "require"}:
|
|
121
142
|
raise ConfigError(f"unsupported quic early data policy: {config.quic.early_data_policy!r}")
|
|
143
|
+
if not config.quic.congestion_control.algorithm:
|
|
144
|
+
raise ConfigError("quic.congestion_control.algorithm must not be empty")
|
|
122
145
|
if config.quic.quic_secret is not None and len(config.quic.quic_secret) == 0:
|
|
123
146
|
raise ConfigError('quic.quic_secret must not be empty when provided')
|
|
124
147
|
if config.webtransport.path is not None and not config.webtransport.path.startswith('/'):
|
|
@@ -213,6 +236,8 @@ def validate_config(config: ServerConfig) -> None:
|
|
|
213
236
|
raise ConfigError("max_datagram_size must be positive for udp listeners")
|
|
214
237
|
if listener.quic_secret is not None and len(listener.quic_secret) == 0:
|
|
215
238
|
raise ConfigError('udp listener quic_secret must not be empty when provided')
|
|
239
|
+
if listener.congestion_control is None or not listener.congestion_control.algorithm:
|
|
240
|
+
raise ConfigError("udp listener congestion_control.algorithm must not be empty")
|
|
216
241
|
if "http3" in listener.enabled_protocols and "quic" not in listener.enabled_protocols:
|
|
217
242
|
raise ConfigError("http3 requires quic on udp listeners")
|
|
218
243
|
if "webtransport" in listener.enabled_protocols:
|
|
@@ -220,6 +245,8 @@ def validate_config(config: ServerConfig) -> None:
|
|
|
220
245
|
raise ConfigError("webtransport requires quic and http3 on udp listeners")
|
|
221
246
|
if "3" not in listener.http_versions:
|
|
222
247
|
raise ConfigError("webtransport requires HTTP/3 on udp listeners")
|
|
248
|
+
if listener.alpn_protocols and 'h3' not in listener.alpn_protocols:
|
|
249
|
+
raise ConfigError("webtransport requires h3 ALPN on udp listeners")
|
|
223
250
|
if listener.ssl_ca_certs and not listener.ssl_enabled:
|
|
224
251
|
raise ConfigError("ssl_ca_certs requires ssl_certfile and ssl_keyfile on udp listeners")
|
|
225
252
|
if listener.ssl_require_client_cert:
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tigrcorn-config
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.19
|
|
4
4
|
Summary: Typed configuration models, profiles, environment loading, and validation for the Tigrcorn ASGI/HTTP server stack.
|
|
5
5
|
Author-email: Jacob Stewart <jacob@swarmauri.com>
|
|
6
6
|
License: Apache License
|
|
@@ -186,7 +186,7 @@ Classifier: Typing :: Typed
|
|
|
186
186
|
Requires-Python: <3.15,>=3.10
|
|
187
187
|
Description-Content-Type: text/markdown
|
|
188
188
|
License-File: LICENSE
|
|
189
|
-
Requires-Dist: tigrcorn-core==0.3.
|
|
189
|
+
Requires-Dist: tigrcorn-core==0.3.19
|
|
190
190
|
Provides-Extra: yaml
|
|
191
191
|
Requires-Dist: PyYAML>=6.0; extra == "yaml"
|
|
192
192
|
Dynamic: license-file
|
|
@@ -280,7 +280,7 @@ The package exposes its supported public surface through the <code>tigrcorn_conf
|
|
|
280
280
|
|
|
281
281
|
## Package Graph
|
|
282
282
|
|
|
283
|
-
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
283
|
+
[tigrcorn-core](https://pypi.org/project/tigrcorn-core/) | [tigrcorn-quic-cc](https://pypi.org/project/tigrcorn-quic-cc/) | [tigrcorn-quic-cc-reno](https://pypi.org/project/tigrcorn-quic-cc-reno/) | [tigrcorn-config](https://pypi.org/project/tigrcorn-config/) | [tigrcorn-http](https://pypi.org/project/tigrcorn-http/) | [tigrcorn-asgi](https://pypi.org/project/tigrcorn-asgi/) | [tigrcorn-contract](https://pypi.org/project/tigrcorn-contract/) | [tigrcorn-transports](https://pypi.org/project/tigrcorn-transports/) | [tigrcorn-security](https://pypi.org/project/tigrcorn-security/) | [tigrcorn-protocols](https://pypi.org/project/tigrcorn-protocols/) | [tigrcorn-static](https://pypi.org/project/tigrcorn-static/) | [tigrcorn-observability](https://pypi.org/project/tigrcorn-observability/) | [tigrcorn-runtime](https://pypi.org/project/tigrcorn-runtime/) | [tigrcorn-compat](https://pypi.org/project/tigrcorn-compat/) | [tigrcorn-certification](https://pypi.org/project/tigrcorn-certification/)
|
|
284
284
|
|
|
285
285
|
## Best Practices
|
|
286
286
|
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/SOURCES.txt
RENAMED
|
@@ -31,6 +31,7 @@ src/tigrcorn_config/load/public_api.py
|
|
|
31
31
|
src/tigrcorn_config/load/public_helpers.py
|
|
32
32
|
src/tigrcorn_config/load/sources.py
|
|
33
33
|
src/tigrcorn_config/model/__init__.py
|
|
34
|
+
src/tigrcorn_config/model/admission.py
|
|
34
35
|
src/tigrcorn_config/model/app.py
|
|
35
36
|
src/tigrcorn_config/model/http.py
|
|
36
37
|
src/tigrcorn_config/model/observability.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/observability.py
RENAMED
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/scheduler.py
RENAMED
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/model/security.py
RENAMED
|
File without changes
|
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/negative_surface.py
RENAMED
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config/origin_surface.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tigrcorn_config-0.3.18.dev2 → tigrcorn_config-0.3.19}/src/tigrcorn_config.egg-info/top_level.txt
RENAMED
|
File without changes
|