Repository navigation
Releases
Releases · matthew-cognisn/dtPyAppFramework
v4.4.1
Security
- Bump cryptography library from 44.0.0 to 46.0.5 to address elliptic curve
public key validation vulnerability (SECT curves). The vulnerability allowed
attackers to provide public key points from small-order subgroups, potentially
leaking private key bits via ECDH or enabling ECDSA signature forgery.
v4.4.0
Added
-
Native system temp path option via
USE_SYSTEM_TEMP=TRUEenvironment variable- When enabled, uses the OS temp directory directly without app-specific subdirectory
- Temp directory cleaning is automatically skipped to avoid deleting other apps' files
- Useful when relying on OS-level temp cleanup mechanisms
-
Option to disable local secrets store via
LOCAL_SECRETS_STORE=FALSEenvironment variable- When disabled, no keystore files are created or accessed
- Reading secrets returns
None(or the provided default value) - Writing secrets raises
LocalSecretsDisabledException - Useful for containerised environments using external secret sources (Kubernetes secrets, etc.)
- New
LocalSecretsDisabledExceptionexception class for handling write attempts when disabled
-
Option to disable config file reading via
CONFIG_FILES_ENABLED=FALSEenvironment variable- When disabled, no config.yaml files are loaded or watched
settings.get()returns the default value (orNone)- Useful for containerised environments with external configuration management
Documentation
- Add comprehensive file paths reference documentation (
file-paths-reference.rst) - Add comprehensive configuration reference documentation (
config-reference.rst)
v4.3.0
Changed
- Breaking: The all-users keystore (
App_Local_Store) is no longer created
by default. Set environment variableALL_USER_KS=TRUEto enable it.
This reduces permission errors and simplifies default deployments where
only per-user secrets are needed.
v4.2.1
Added
- Graceful directory creation failure handling in ApplicationPaths
- New
_safe_makedirs()helper wraps allos.makedirscalls withOSErrorhandling - New
path_creation_statusdict tracks which paths were successfully created - New
is_path_available(path_name)convenience method for downstream consumers - Applications continue with reduced functionality when system-level paths
(e.g.C:\ProgramData,/var/log) are not writable, instead of crashing
- New
Changed
- ApplicationPaths now logs
logging.warning()on directory creation failure
instead of crashing (tmp, logging, usr_data) or printing to stdout (app_data) purge_old_logs()returns early when log directory does not existinitialise_logging()handles missing log directories gracefully and returns
Nonewhen file logging is unavailableSettingsReaderchecks directory existence before scheduling watchdog observer,
preventingOSErrorwhen config directories are missingLocalSecretStoresManageruseslogging.warning()instead ofprint()when
skipping the APP Local Secret Storeshutil.rmtreefor temp directory cleanup is now wrapped in try/except
Fixed
- Fix flaky dictionary attack resistance test that false-positived on short
substrings (e.g. "key") appearing by chance in random 24-character secrets
v4.1.2
Fixed
- Fix 11 test failures on Linux CI caused by incorrect mock paths and platform assumptions
- Use os.path.join for expected Windows paths so tests pass on Linux runners
- Skip Windows service test on non-Windows platforms (call_service unavailable)
- Mock run_cmd at the correct import path (dtPyAppFramework.security.crypto.run_cmd)
- Correct MAC address fingerprint test to match inverted collection logic
- Fix empty custom salt assertion (b"" is falsy, falls back to default salt)
- Match actual error message in file permissions validation test
- Fix flaky constant-time comparison test by averaging over 1000 iterations and
widening timing tolerance to 3x for shared CI runners
v4.1.1
Added
- Add multi-process file locking and atomic writes to local keystore
Implemented thread-safe access to the local secrets store for containerised - Add container-specific paths for temp and logging in CONTAINER_MODE
Implemented container-aware path management to support multiple containers - Add --password command-line argument to set KEYSTORE_PASSWORD
Added a new --password / -p command-line argument that sets the - Add sample applications for keystore features
- password_keystore: Demonstrates --password argument and portable keystores
- Add separate process workers to concurrent_keystore sample
Restructured concurrent_keystore sample to run each worker as a - Address all SonarQube issues across source, tests, and samples
Fix 2 blockers: remove extra self argument in _add_secret_file call, - Add sample data and logs directories to .gitignore
Ignore runtime-generated data/ and logs/ directories under samples/
Changed
Local secrets multiprocess
- Improve application shutdown handling with auto-exit and wait_for_shutdown
Redesigned the application lifecycle to support two patterns: - Merge pull request #2 from Digital-Thought/container-changes
Container changes - Use KEYSTORE_PASSWORD directly in container mode without system fingerprint
In CONTAINER_MODE, the keystore password is now used directly from the - Merge pull request #3 from Digital-Thought/HMAC-Container-Change
Hmac container change - Use matching short_name for password_keystore samples
Both create_keystore.py and access_keystore.py now use
Add AppContext singleton facade, metadata auto-discovery from text files, - Merge pull request #4 from Digital-Thought/HMAC-Container-Change
Hmac container change - Bump azure-core and filelock to address security vulnerabilities
- azure-core: 1.32.0 → 1.38.0 (fixes deserialization of untrusted data, HIGH)
Security and code quality release addressing all SonarQube findings:
- azure-core: 1.32.0 → 1.38.0 (fixes deserialization of untrusted data, HIGH)
- Clean artifacts from sample runs.
Removed
- Removed deprecated versions of the artifact actions
Fixed
- Fix keystore path references in sample applications
Changed ApplicationPaths().keystore_root_path to - Fix empty secret key validation errors
Added defensive checks to prevent SecurityValidationError when empty - Fix test failures, source bugs, and update documentation
Fix 38 failing CI tests across 6 test files: correct singleton - fix: Correct test failures and InputValidator import path
Fix relative import in secret_store.py from..security.validationto - Fix remaining SonarQube issues across source, tests, and samples
Source fixes: - fix: Remove redundant exception handling and resolve SonarQube false positive
- Remove redundant try/except block in keystore.py that caught exceptions
- fix: Increase PBKDF2 iteration count to 100,000 for password strengthening
Increase iterations in _strengthen_user_password from 50,000 to 100,000