soliplex 0.92__tar.gz → 0.92.2__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.
- {soliplex-0.92/src/soliplex.egg-info → soliplex-0.92.2}/PKG-INFO +2 -2
- {soliplex-0.92 → soliplex-0.92.2}/pyproject.toml +2 -2
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/secrets.py +39 -5
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/secrets.py +20 -1
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/installation.py +19 -14
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/secrets.py +14 -1
- {soliplex-0.92 → soliplex-0.92.2/src/soliplex.egg-info}/PKG-INFO +2 -2
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/requires.txt +1 -1
- {soliplex-0.92 → soliplex-0.92.2}/LICENSE +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/MANIFEST.in +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/README.md +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/example/skills/bare-bones/SKILL.md +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/example/skills/stanzas/SKILL.md +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/setup.cfg +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/skills/soliplex-docs/SKILL.md +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agents.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/parser.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/persistence.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/schema.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/sse_delivery.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/agui/util.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/env.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/216d48e1e2e5_soliplex_v0_53.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/4b63e5f3f39e_soliplex_v0_51_1.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/63edaa5987f6_soliplex_v0_67.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/98cd91f27cb5_soliplex_v0_92.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/a1c7d3e90b42_soliplex_v0_80.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/b7e2f41c9d05_soliplex_v0_82.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/d5009d4f9874_soliplex_v0_44.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/alembic_migrations/versions/f13fea6c1953_soliplex_v0_86.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authn.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/persistence.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/authz/schema.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/capabilities/filesystem.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/capabilities/rag_audit.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/admin_users.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/ask.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/_common.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/admin_users.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/completions.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/databases.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/environment.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/installation.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/interpolation.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/logfire.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/logging.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/non_local_paths.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/oidc.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/ollama.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/quizzes.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/room_authz.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/rooms.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/audit/skills.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/cli_util.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/database.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/main.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/ollama.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/room_authz.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/serve.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/service_token.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/cli/types.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/completions.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/_utils.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/agents.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/agui.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/authsystem.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/completions.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/exceptions.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/installation.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/interpolation.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/logfire.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/meta.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/middleware.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/quizzes.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/rag.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/rooms.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/routing.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/skills.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/sse_delivery.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/config/tools.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/examples.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/labels.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/log_ingest.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/loggers.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/main.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_auth.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_client.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/mcp_server.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/models.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/ollama.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/quizzes.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/rag_audit.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/sandbox_audit.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/skills/bwrap_sandbox/SKILL.md +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/skills/bwrap_sandbox/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/titles.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/token_mint.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/agui_run_feedback.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/file_uploads.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tools/rag.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/cli.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/main.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/rest_api.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/tui/serve.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/util.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/__init__.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/agui.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/authn.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/authz.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/completions.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/installation.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/labels.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/log_ingest.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/quizzes.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/room_file_uploads.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/rooms.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/sandbox_workdirs.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/stats.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/streaming.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/templates/consent.html.mako +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/templates/cookie-too-large.html.mako +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex/views/thread_file_uploads.py +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/SOURCES.txt +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/dependency_links.txt +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/entry_points.txt +0 -0
- {soliplex-0.92 → soliplex-0.92.2}/src/soliplex.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: soliplex
|
|
3
|
-
Version: 0.92
|
|
3
|
+
Version: 0.92.2
|
|
4
4
|
Summary: An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface.
|
|
5
5
|
Author-email: Enfold <info@enfoldsystems.net>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -20,7 +20,7 @@ Requires-Dist: fakeredis!=2.35.0
|
|
|
20
20
|
Requires-Dist: fastapi
|
|
21
21
|
Requires-Dist: fastmcp<5.0,>=4.1.2
|
|
22
22
|
Requires-Dist: greenlet
|
|
23
|
-
Requires-Dist: haiku.rag-slim<0.
|
|
23
|
+
Requires-Dist: haiku.rag-slim<0.112,>=0.111.0
|
|
24
24
|
Requires-Dist: idna>=3.15
|
|
25
25
|
Requires-Dist: itsdangerous
|
|
26
26
|
Requires-Dist: joserfc<1.8,>=1.7.5
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "soliplex"
|
|
7
|
-
version = "0.92"
|
|
7
|
+
version = "0.92.2"
|
|
8
8
|
description = "An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface."
|
|
9
9
|
authors = [{ name = "Enfold", email = "info@enfoldsystems.net" }]
|
|
10
10
|
readme = "README.md"
|
|
@@ -26,7 +26,7 @@ dependencies = [
|
|
|
26
26
|
"fastapi",
|
|
27
27
|
"fastmcp >= 4.1.2, < 5.0",
|
|
28
28
|
"greenlet",
|
|
29
|
-
"haiku.rag-slim >= 0.
|
|
29
|
+
"haiku.rag-slim >= 0.111.0, < 0.112",
|
|
30
30
|
"idna >= 3.15",
|
|
31
31
|
"itsdangerous",
|
|
32
32
|
"joserfc >= 1.7.5, < 1.8", # CVE-2026-11928{3,4}
|
|
@@ -17,11 +17,43 @@ def _missing_secrets(the_installation: installation.Installation) -> dict:
|
|
|
17
17
|
return {}
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
def _secret_status(secret_config, missing_names: set[str]) -> str:
|
|
21
|
+
"""Return the audit status for a secret, after resolution
|
|
22
|
+
|
|
23
|
+
A resolved secret's status names the kind of the source which
|
|
24
|
+
resolved it, e.g. 'OK (env_var)'.
|
|
25
|
+
"""
|
|
26
|
+
if secret_config.secret_name in missing_names:
|
|
27
|
+
return "MISSING"
|
|
28
|
+
|
|
29
|
+
return f"OK ({secret_config.resolved_by.kind})"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def _ephemeral_secrets(the_installation: installation.Installation) -> list:
|
|
33
|
+
"""Return the names of secrets resolved from a 'random_chars' source"""
|
|
34
|
+
return [
|
|
35
|
+
secret_config.secret_name
|
|
36
|
+
for secret_config in the_installation._config.secrets
|
|
37
|
+
if secret_config.is_ephemeral
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
_EPHEMERAL_SECRETS_WARNING = """
|
|
42
|
+
WARNING: secrets resolved from a 'random_chars' source have values which
|
|
43
|
+
change whenever the server restarts / reloads, and differ between server
|
|
44
|
+
processes.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
|
|
20
48
|
def _audit_secrets_section(
|
|
21
49
|
ctx: typer.Context,
|
|
22
50
|
installation_path: types.installation_path_type,
|
|
23
51
|
) -> dict: # pragma NO COVER UI ONLY
|
|
24
|
-
"""Print the secrets section (rule header + per-secret OK/MISSING).
|
|
52
|
+
"""Print the secrets section (rule header + per-secret OK/MISSING).
|
|
53
|
+
|
|
54
|
+
Secrets resolved from a 'random_chars' source are warning-grade:
|
|
55
|
+
the audit prints them, and no installation fails on their account.
|
|
56
|
+
"""
|
|
25
57
|
quiet = ctx.obj["quiet"]
|
|
26
58
|
the_installation = audit_common._get_installation(ctx, installation_path)
|
|
27
59
|
tc_line, tc_rule, tc_print, _ = audit_common._quiet_console_funcs(quiet)
|
|
@@ -34,10 +66,12 @@ def _audit_secrets_section(
|
|
|
34
66
|
missing_names = set(errors.get("missing_secrets", ()))
|
|
35
67
|
|
|
36
68
|
for secret_config in the_installation._config.secrets:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
69
|
+
status = _secret_status(secret_config, missing_names)
|
|
70
|
+
tc_print(f"- {secret_config.secret_name:25} {status}")
|
|
71
|
+
|
|
72
|
+
ephemeral = _ephemeral_secrets(the_installation)
|
|
73
|
+
if ephemeral:
|
|
74
|
+
tc_print(_EPHEMERAL_SECRETS_WARNING)
|
|
41
75
|
|
|
42
76
|
tc_print()
|
|
43
77
|
return errors
|
|
@@ -227,8 +227,9 @@ class SecretConfig:
|
|
|
227
227
|
_no_repr_no_compare_none()
|
|
228
228
|
)
|
|
229
229
|
|
|
230
|
-
# Set by '
|
|
230
|
+
# Set by 'get_secret' below
|
|
231
231
|
_resolved: str = None
|
|
232
|
+
_resolved_by: SecretSource = _no_repr_no_compare_none()
|
|
232
233
|
|
|
233
234
|
def __post_init__(self):
|
|
234
235
|
if self.sources is None:
|
|
@@ -273,6 +274,23 @@ class SecretConfig:
|
|
|
273
274
|
def resolved(self) -> str | None:
|
|
274
275
|
return self._resolved
|
|
275
276
|
|
|
277
|
+
@property
|
|
278
|
+
def resolved_by(self) -> SecretSource | None:
|
|
279
|
+
"""The source which resolved the secret, or 'None' if unresolved"""
|
|
280
|
+
return self._resolved_by
|
|
281
|
+
|
|
282
|
+
@property
|
|
283
|
+
def is_ephemeral(self) -> bool:
|
|
284
|
+
"""True if the secret was resolved from a 'random_chars' source
|
|
285
|
+
|
|
286
|
+
Such a value changes whenever the process restarts, and differs
|
|
287
|
+
between processes.
|
|
288
|
+
"""
|
|
289
|
+
return (
|
|
290
|
+
self._resolved_by is not None
|
|
291
|
+
and self._resolved_by.kind == RandomCharsSecretSource.kind
|
|
292
|
+
)
|
|
293
|
+
|
|
276
294
|
|
|
277
295
|
def get_secret(secret_config: SecretConfig) -> str:
|
|
278
296
|
excs = []
|
|
@@ -292,6 +310,7 @@ def get_secret(secret_config: SecretConfig) -> str:
|
|
|
292
310
|
)
|
|
293
311
|
|
|
294
312
|
secret_config._resolved = getter(source)
|
|
313
|
+
secret_config._resolved_by = source
|
|
295
314
|
except secrets.SecretError as exc:
|
|
296
315
|
excs.append(exc)
|
|
297
316
|
|
|
@@ -725,8 +725,8 @@ async def open_engines(
|
|
|
725
725
|
):
|
|
726
726
|
"""Yield both engines, at the revision this release of soliplex expects.
|
|
727
727
|
|
|
728
|
-
Handle the special case for `no_auth_mode`
|
|
729
|
-
as an admin
|
|
728
|
+
Handle the special case for `no_auth_mode` here, adding the default user
|
|
729
|
+
as an admin for RAM-based authz databases. See #1512.
|
|
730
730
|
|
|
731
731
|
The engines are disposed on the way out, however the block ends -- a
|
|
732
732
|
refused migration included.
|
|
@@ -738,17 +738,23 @@ async def open_engines(
|
|
|
738
738
|
Refuse migrations prohibited by the installation's 'migration_policy',
|
|
739
739
|
as well as in the case that the application runs with 'multiple_writers'.
|
|
740
740
|
"""
|
|
741
|
+
threads_engine = _create_async_engine(
|
|
742
|
+
the_installation.thread_persistence_async_dburi,
|
|
743
|
+
json_serializer=util.serialize_sqla_json,
|
|
744
|
+
pool_pre_ping=True,
|
|
745
|
+
)
|
|
746
|
+
authz_is_ram = (
|
|
747
|
+
the_installation.authorization_async_dburi
|
|
748
|
+
== config_installation.ASYNC_MEMORY_ENGINE_URL
|
|
749
|
+
)
|
|
750
|
+
authz_engine = _create_async_engine(
|
|
751
|
+
the_installation.authorization_async_dburi,
|
|
752
|
+
json_serializer=util.serialize_sqla_json,
|
|
753
|
+
pool_pre_ping=True,
|
|
754
|
+
)
|
|
741
755
|
engines = Engines(
|
|
742
|
-
threads_engine=
|
|
743
|
-
|
|
744
|
-
json_serializer=util.serialize_sqla_json,
|
|
745
|
-
pool_pre_ping=True,
|
|
746
|
-
),
|
|
747
|
-
authorization_engine=_create_async_engine(
|
|
748
|
-
the_installation.authorization_async_dburi,
|
|
749
|
-
json_serializer=util.serialize_sqla_json,
|
|
750
|
-
pool_pre_ping=True,
|
|
751
|
-
),
|
|
756
|
+
threads_engine=threads_engine,
|
|
757
|
+
authorization_engine=authz_engine,
|
|
752
758
|
)
|
|
753
759
|
try:
|
|
754
760
|
for database, engine in (
|
|
@@ -764,8 +770,7 @@ async def open_engines(
|
|
|
764
770
|
),
|
|
765
771
|
)
|
|
766
772
|
|
|
767
|
-
if no_auth_mode:
|
|
768
|
-
authz_engine = engines.authorization_engine
|
|
773
|
+
if no_auth_mode and authz_is_ram:
|
|
769
774
|
async with authz_engine.begin() as ra_connection:
|
|
770
775
|
await ra_connection.run_sync(
|
|
771
776
|
add_no_auth_user_as_admin,
|
|
@@ -79,6 +79,10 @@ class SecretsNotFound(ExceptionGroup, SecretError):
|
|
|
79
79
|
def get_env_var_secret(
|
|
80
80
|
source: config_secrets.EnvVarSecretSource,
|
|
81
81
|
):
|
|
82
|
+
"""Look up a secret value from the environment / doenv
|
|
83
|
+
|
|
84
|
+
Strip any whitespace from a found value.
|
|
85
|
+
"""
|
|
82
86
|
if source._installation_config is not None:
|
|
83
87
|
from_dotenv = source._installation_config.from_dotenv
|
|
84
88
|
else:
|
|
@@ -87,7 +91,7 @@ def get_env_var_secret(
|
|
|
87
91
|
merged = os.environ | from_dotenv
|
|
88
92
|
|
|
89
93
|
try:
|
|
90
|
-
return merged[source.env_var_name]
|
|
94
|
+
return merged[source.env_var_name].strip()
|
|
91
95
|
except KeyError as exc:
|
|
92
96
|
raise SecretEnvVarNotFound(
|
|
93
97
|
source.secret_name,
|
|
@@ -98,6 +102,10 @@ def get_env_var_secret(
|
|
|
98
102
|
def get_file_path_secret(
|
|
99
103
|
source: config_secrets.FilePathSecretSource,
|
|
100
104
|
):
|
|
105
|
+
"""Look up a secret value from a file path.
|
|
106
|
+
|
|
107
|
+
Strip any whitespace from a found value.
|
|
108
|
+
"""
|
|
101
109
|
file_path = pathlib.Path(source.file_path)
|
|
102
110
|
if not file_path.is_absolute():
|
|
103
111
|
file_path = source._config_path.parent / source.file_path
|
|
@@ -115,6 +123,10 @@ def get_file_path_secret(
|
|
|
115
123
|
def get_subprocess_secret(
|
|
116
124
|
source: config_secrets.SubprocessSecretSource,
|
|
117
125
|
):
|
|
126
|
+
"""Look up a secret value from a subprocess call.
|
|
127
|
+
|
|
128
|
+
Strip any whitespace from a found value.
|
|
129
|
+
"""
|
|
118
130
|
try:
|
|
119
131
|
found = subprocess.check_output(
|
|
120
132
|
[source.command, *source.args],
|
|
@@ -138,4 +150,5 @@ def get_subprocess_secret(
|
|
|
138
150
|
def get_random_chars_secret(
|
|
139
151
|
source: config_secrets.RandomCharsSecretSource,
|
|
140
152
|
):
|
|
153
|
+
"""Compute a secret value from random characters."""
|
|
141
154
|
return os.urandom(source.n_chars).hex()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: soliplex
|
|
3
|
-
Version: 0.92
|
|
3
|
+
Version: 0.92.2
|
|
4
4
|
Summary: An AI-powered Retrieval-Augmented Generation (RAG) system with a modern web interface.
|
|
5
5
|
Author-email: Enfold <info@enfoldsystems.net>
|
|
6
6
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -20,7 +20,7 @@ Requires-Dist: fakeredis!=2.35.0
|
|
|
20
20
|
Requires-Dist: fastapi
|
|
21
21
|
Requires-Dist: fastmcp<5.0,>=4.1.2
|
|
22
22
|
Requires-Dist: greenlet
|
|
23
|
-
Requires-Dist: haiku.rag-slim<0.
|
|
23
|
+
Requires-Dist: haiku.rag-slim<0.112,>=0.111.0
|
|
24
24
|
Requires-Dist: idna>=3.15
|
|
25
25
|
Requires-Dist: itsdangerous
|
|
26
26
|
Requires-Dist: joserfc<1.8,>=1.7.5
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|