C-6: ConnectorRuntime enforces capability_mask per operation.
READ-only ACs cannot invoke MUTATE operations (wipe, lock, retire).
C-7: AC validated against database (exists, active, not expired)
before connector invocation.
C-9: Delegated AC capability bounded by delegator's capability.
C-10: Command counter uses atomic SQL increment with limit check.
M-23: expire_stale() uses same atomic SQL pattern.
H-1: Sensitive credential fields hidden from repr/logs via repr=False.
H-2: Stub backend requires ALLOW_STUB_CREDENTIALS=true to activate.
H-3: Kerberos backend raises CredentialResolutionError instead of
returning stub ticket.
H-4: Chronicle INTENT emitted before execution, RESULT after.
H-5: device_id validated as UUID before Graph API URL interpolation.
H-8: ConnectorRuntime enforces governance for all connector invocations.
Signed-off-by: Tyler King <tking@guildhouse.dev>
62 lines
2.8 KiB
Python
62 lines
2.8 KiB
Python
# engine/__init__.py
|
|
# Copyright (C) 2005-2026 the SQLAlchemy authors and contributors
|
|
# <see AUTHORS file>
|
|
#
|
|
# This module is part of SQLAlchemy and is released under
|
|
# the MIT License: https://www.opensource.org/licenses/mit-license.php
|
|
|
|
"""SQL connections, SQL execution and high-level DB-API interface.
|
|
|
|
The engine package defines the basic components used to interface
|
|
DB-API modules with higher-level statement construction,
|
|
connection-management, execution and result contexts. The primary
|
|
"entry point" class into this package is the Engine and its public
|
|
constructor ``create_engine()``.
|
|
|
|
"""
|
|
|
|
from . import events as events
|
|
from . import util as util
|
|
from .base import Connection as Connection
|
|
from .base import Engine as Engine
|
|
from .base import NestedTransaction as NestedTransaction
|
|
from .base import RootTransaction as RootTransaction
|
|
from .base import Transaction as Transaction
|
|
from .base import TwoPhaseTransaction as TwoPhaseTransaction
|
|
from .create import create_engine as create_engine
|
|
from .create import create_pool_from_url as create_pool_from_url
|
|
from .create import engine_from_config as engine_from_config
|
|
from .cursor import CursorResult as CursorResult
|
|
from .cursor import ResultProxy as ResultProxy
|
|
from .interfaces import AdaptedConnection as AdaptedConnection
|
|
from .interfaces import BindTyping as BindTyping
|
|
from .interfaces import Compiled as Compiled
|
|
from .interfaces import Connectable as Connectable
|
|
from .interfaces import ConnectArgsType as ConnectArgsType
|
|
from .interfaces import ConnectionEventsTarget as ConnectionEventsTarget
|
|
from .interfaces import CreateEnginePlugin as CreateEnginePlugin
|
|
from .interfaces import Dialect as Dialect
|
|
from .interfaces import ExceptionContext as ExceptionContext
|
|
from .interfaces import ExecutionContext as ExecutionContext
|
|
from .interfaces import TypeCompiler as TypeCompiler
|
|
from .mock import create_mock_engine as create_mock_engine
|
|
from .reflection import Inspector as Inspector
|
|
from .reflection import ObjectKind as ObjectKind
|
|
from .reflection import ObjectScope as ObjectScope
|
|
from .result import ChunkedIteratorResult as ChunkedIteratorResult
|
|
from .result import FilterResult as FilterResult
|
|
from .result import FrozenResult as FrozenResult
|
|
from .result import IteratorResult as IteratorResult
|
|
from .result import MappingResult as MappingResult
|
|
from .result import MergedResult as MergedResult
|
|
from .result import Result as Result
|
|
from .result import result_tuple as result_tuple
|
|
from .result import ScalarResult as ScalarResult
|
|
from .result import TupleResult as TupleResult
|
|
from .row import BaseRow as BaseRow
|
|
from .row import Row as Row
|
|
from .row import RowMapping as RowMapping
|
|
from .url import make_url as make_url
|
|
from .url import URL as URL
|
|
from .util import connection_memoize as connection_memoize
|
|
from ..sql import ddl as ddl
|