Get started
Verification report · signed

114 of 115 claims verified at floor 0.95.

Every claim below was scored against the source it cites. Check the signature offline with the key at /.well-known/report-keys, or re-run any claim with the pinned judge.

The report

Digestsha256:a758adecb5ade3c460a6e38a581742dd61ecc1c04f49b1b882ac7d6252ae7655
Signing key idpem-9ec90d53d901e315
Judgegoogle/gemini-4-argon · v0-dev
Judge prompt hashsha256:1e64388843ffb61194ac8007b4992da06d5edd7ac2671ec35b1e82d8c2a9d04d
AI Source of Truthrecord · entity AI Source of Truth verdict for record 980f9d7cbb04
Pipelinecore-0
Mean entailment0.999
Signed2026-11-19
Versionv2
Artifact digestsha256:6cd24611c6894d0fbf3699ac3eda09d9815b8b6dc3a5e10a30bd53f29cc7b560
Source commitsha256:e044c0b844fbe428fb6e0edb9a60c5d5da89a2eb3b04814b5f931800130034c8
Verified at2026-11-19T14:49:51.627Z
Cited byno other product cites this version yet

Agents: fetch the same report with artifacts_get view report (its freshness carries the version, digest, source commit and verified time, and its citation says whether it met its floor), compare versions with view versions, and re-check a claim with claims_verify (no token needed; see the MCP reference).

What this report checked

  • Sources were locked and hashed before any claim was scored
  • The text was split into atomic factual claims
  • Each claim was scored against the source it cites by the pinned judge
  • Each claim was bound to verified, in review or cut at the floor

Checks not run

  • Claims were re-verified after the style pass

What this report does not cover

  • Whether the cited sources are themselves true
  • Factual statements the decomposition step did not extract as claims
  • Safety or security of code, commands or instructions in the artifact
  • Licensing or ownership of the artifact content
Judge versionv0-dev

Verify it yourself

This report is also an in-toto attestation in a Sigstore bundle, signed with the report key. Check it with cosign and the published key; you need no ContextFile code. Full steps: /docs/verify.

Key idpem-9ec90d53d901e315
Rekornot logged (only reports on the registry are logged; cosign needs --insecure-ignore-tlog=true)
curl -sSo attestation.sigstore.json 'https://contextfile.ai/reports/sha256%3Aa758adecb5ade3c460a6e38a581742dd61ecc1c04f49b1b882ac7d6252ae7655/attestation.sigstore.json'
curl -sS 'https://contextfile.ai/.well-known/report-keys' | jq -r '.keys[] | select(.key_id == "pem-9ec90d53d901e315") | .pem' > report-key.pem
cosign verify-blob-attestation \
  --new-bundle-format --bundle attestation.sigstore.json \
  --key report-key.pem \
  --type https://contextfile.ai/verification-report/v1 \
  --insecure-ignore-tlog=true \
  ./artifact-file

Replace ./artifact-file with the file you bought; cosign checks that its SHA-256 is the statement subject. To read the scope block from the bundle:

jq -r .dsseEnvelope.payload attestation.sigstore.json | base64 -d | jq .predicate.body.scope

Claims

ClaimSourceScoreStateRe-check
CLM-0001
Flask supports Python 3.11 and newer.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0002
Werkzeug is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0003
Jinja is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0004
MarkupSafe is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0005
ItsDangerous is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0006
Click is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0007
Blinker is installed automatically with Flask.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0008
Blinker provides support for signals.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0009
Click provides the flask command.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0010
python-dotenv and Watchdog are optional and are not installed automatically.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0011
Flask detects and uses python-dotenv and Watchdog if they are present.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0012
python-dotenv enables dotenv support when running flask commands.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0013
Watchdog provides a faster, more efficient reloader for the development server.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/installation.rst1verified
CLM-0014
The context keeps track of data and objects during a request, CLI command, or other activity.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0015
Code accesses the context through the current_app, g, request, and session proxies.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0016
During an app context, current_app and g are available.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0017
During a request context, request and session are also available alongside current_app and g.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0018
The context pattern addresses circular imports and the burden of passing request data through every function.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0019
Importing the app instance in project modules is prone to circular imports.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0020
With the app factory pattern, or in reusable blueprints and extensions, there is no app instance to import.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0021
Context locals are specific to the worker handling the activity, such as a thread, process, coroutine, or greenlet.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified
CLM-0022
After the response is returned to the WSGI server, the first step in the teardown sequence is that teardown_request functions are called.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rst1verified
CLM-0023
In the teardown sequence, the request_tearing_down signal is sent as the second step, after teardown_request functions are called.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rst1verified
CLM-0024
In the teardown sequence, teardown_appcontext functions are called as the third step, after the request_tearing_down signal is sent.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rst1verified
CLM-0025
In the teardown sequence, the appcontext_tearing_down signal is sent as the fourth step, after teardown_appcontext functions are called.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0026
In the teardown sequence, the app context is popped as the fifth step, and current_app, g, request, and session are no longer available.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst0.9in_review
CLM-0027
In the teardown sequence, the appcontext_popped signal is sent as the sixth step, after the app context is popped.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/appcontext.rst1verified
CLM-0028
A CLI command or plain app context follows the same teardown sequence order, omitting the steps that refer to the request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rst1verified
CLM-0029
A blueprint's handlers run if the blueprint owns the route that matches the request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/lifecycle.rst1verified
CLM-0030
request_tearing_down is always sent, even if an exception is raised.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rst1verified
CLM-0031
Listeners for request_tearing_down currently run after the regular teardown handlers, but the docs say this cannot be relied on.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rst1verified
CLM-0032
Both teardown signals are passed an exc keyword argument referencing the causing exception, if there was one.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rst1verified
CLM-0033
appcontext_pushed is sent when an application context is pushed, and its sender is the application.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rst1verified
CLM-0034
The docs call appcontext_pushed usually useful for unit tests, for example to set a resource early onto g.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/api.rst1verified
CLM-0035
The documented default for SESSION_COOKIE_SAMESITE is None.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0036
The documented default for PERMANENT_SESSION_LIFETIME is timedelta(days=31) (2678400 seconds).
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0037
The documented default for SESSION_REFRESH_EACH_REQUEST is True.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0038
The documented default for USE_X_SENDFILE is False.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0039
The documented default for SEND_FILE_MAX_AGE_DEFAULT is None.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0040
SESSION_COOKIE_SAMESITE can be set to 'Lax' (recommended) or 'Strict'.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0041
PERMANENT_SESSION_LIFETIME applies when session.permanent is true.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0042
PERMANENT_SESSION_LIFETIME can be a timedelta or an int.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0043
Flask's default cookie implementation validates that the cryptographic signature is not older than the PERMANENT_SESSION_LIFETIME value.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0044
Only uppercase values in a config file are stored in the config object.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0045
Config.from_file loads configuration from a file in a format of your choice, for example TOML via tomllib.load with text=False, or JSON via json.load.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0046
Config.from_prefixed_env loads all environment variables starting with a given prefix into the config.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0047
Configuration should be loaded very early, so that extensions can access it when calling init_app.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0048
Code that needs configuration at import time should be avoided.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0049
Creating the application in a function and registering blueprints on it makes it possible to create multiple instances with different configurations, which eases unit testing.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0050
When an instance_path is provided to Flask(...), it must be absolute.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0051
The instance_relative_config switch flips relative config-file paths from "relative to the application root" (the default) to "relative to instance folder".
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/config.rst1verified
CLM-0052
The most common extension pattern is a class with an init_app method that applies the extension to a given application.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0053
An extension should not store the app (self.app = app).
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0054
An extension should access an app directly only during init_app, and otherwise use current_app.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0055
Not storing the app on the extension supports the application factory pattern, avoids circular imports, and eases testing with different configurations.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0056
Flask.extensions can store a reference to the extension or application-specific state.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0057
Flask.extensions is a single namespace, so the key should be unique to the extension.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0058
Configuration keys in app.config should start with the extension's name so they don't interfere with other extensions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0059
Extensions can use before_request to set up data or a connection, and teardown_request to clean it up.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0060
An extension that adds views can define a Blueprint and call register_blueprint during init_app.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/extensiondev.rst1verified
CLM-0061
Creating the app in a function allows multiple instances, for testing or for running different versions in one process.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rst1verified
CLM-0062
With a factory, the app object cannot be used in blueprints at import time, and current_app should be used within a request instead.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/patterns/appfactories.rst1verified
CLM-0063
Build blueprint URLs by prefixing the endpoint with the blueprint name and a dot, for example url_for('admin.index').
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rst1verified
CLM-0064
Inside a blueprint's view or template, url_for('.index') links to another endpoint of the same blueprint.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rst1verified
CLM-0065
Blueprint templates are best placed in a folder named after the blueprint, for example admin/index.html, so they are not overridden by an application template of the same name.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rst1verified
CLM-0066
Setting EXPLAIN_TEMPLATE_LOADING makes Flask print the steps it takes to locate templates on every render_template call.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/blueprints.rst1verified
CLM-0067
View.as_view creates a view function that is registered with add_url_rule.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0068
The first argument to View.as_view is the name used to refer to the view with url_for.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0069
A view class cannot be decorated with @app.route() as a basic view function can.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0070
By default a new instance of the view class is created for every request.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0071
Setting View.init_every_request to False creates a single instance, in which case writing to self is not safe and g should be used instead.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0072
View decorators must be applied to the function returned by as_view, not to the class.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0073
Set View.decorators to a list of decorators to apply.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/views.rst1verified
CLM-0074
In production mode, if an exception is raised, Flask by default displays a very simple page and logs the exception to Flask.logger.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rst1verified
CLM-0075
An error handler is a function that returns a response when a type of error is raised.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rst1verified
CLM-0076
An error handler receives the error instance, most likely an HTTPException.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rst1verified
CLM-0077
The response's status code is not set to the handler's code, so the correct code must be set when returning a response.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rst1verified
CLM-0078
Register handlers with Flask.errorhandler, or with Flask.register_error_handler to register later.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/errorhandling.rst1verified
CLM-0079
If logging is not configured, Flask adds a StreamHandler to app.logger automatically.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rst1verified
CLM-0080
During requests, Flask's default StreamHandler writes to the stream in environ['wsgi.errors'].
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rst1verified
CLM-0081
Outside a request, Flask's default StreamHandler logs to sys.stderr.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rst1verified
CLM-0082
The default handler can be removed by importing flask.logging.default_handler and calling app.logger.removeHandler.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/logging.rst1verified
CLM-0083
Flask.test_cli_runner creates a FlaskCliRunner.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rst1verified
CLM-0084
FlaskCliRunner runs CLI commands in isolation and captures output in a Click Result object.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rst1verified
CLM-0085
For functions that expect an active context, use with app.app_context() to push an app context.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rst1verified
CLM-0086
with app.test_request_context() pushes a request context and takes the same arguments as the test client's request methods.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/testing.rst1verified
CLM-0087
flask shell starts an interactive shell with an application context active and the app instance imported.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rst1verified
CLM-0088
With debug mode, the reloader triggers when Python code or imported modules change.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rst1verified
CLM-0089
--extra-files adds watched files to the reloader, and --exclude-patterns ignores files by fnmatch pattern.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rst1verified
CLM-0090
The flask command accepts options via environment variables named FLASK_OPTION or FLASK_COMMAND_OPTION, for example FLASK_APP or FLASK_RUN_PORT.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/cli.rst1verified
CLM-0091
Flask.run starts the development server from Python.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rst1verified
CLM-0092
Unlike the CLI, the server started with Flask.run crashes if there are errors when reloading.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rst1verified
CLM-0093
The Flask.run call belongs in an if __name__ == "__main__": block.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rst1verified
CLM-0094
With flask run and the reloader, the server keeps running after syntax errors are introduced, and the interactive debugger is shown on access.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/server.rst1verified
CLM-0095
The development server, debugger, and reloader should not be used in production.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/index.rst1verified
CLM-0096
Flask is a WSGI application, and a WSGI server runs it.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/index.rst1verified
CLM-0097
Gunicorn takes {module_import}:{app_variable}, for example gunicorn -w 4 'hello:app'.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rst1verified
CLM-0098
For a factory with Gunicorn, use 'hello:create_app()'.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rst1verified
CLM-0099
Gunicorn does not support Windows but does run on WSL.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/gunicorn.rst1verified
CLM-0100
Waitress takes {module}:{app}, and --call {module}:{factory} for a factory.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rst1verified
CLM-0101
Waitress supports Windows directly.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rst1verified
CLM-0102
Waitress does not support streaming requests, because full request data is always buffered.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rst1verified
CLM-0103
Waitress uses a single process with multiple thread workers.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/waitress.rst1verified
CLM-0104
Unlike the other WSGI servers in the Flask docs, mod_wsgi can be run as root to bind to privileged ports, but it must be configured to drop permissions to a different user and group for workers.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/deploying/mod_wsgi.rst1verified
CLM-0105
The tutorial says to replace the 'dev' SECRET_KEY with random bytes in production, because otherwise attackers could use the public key to modify the session cookie.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/tutorial/deploy.rst1verified
CLM-0106
When Flask detects it is installed rather than in editable mode, it uses a different instance folder, for example .venv/var/flaskr-instance in the tutorial.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/tutorial/deploy.rst1verified
CLM-0107
SameSite=Lax prevents sending cookies with CSRF-prone requests from external sites, such as form submissions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rst1verified
CLM-0108
SameSite=Strict prevents sending cookies with all external requests, including regular links.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rst1verified
CLM-0109
Flask has configuration options to set Secure, HttpOnly and SameSite on the session cookie.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rst1verified
CLM-0110
Lowering PERMANENT_SESSION_LIFETIME may help mitigate replay attacks.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/web-security.rst1verified
CLM-0111
Flask supports async view functions by running the coroutine on a separate thread rather than an event loop on the main thread.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified
CLM-0112
Running async view functions on a separate thread preserves backwards compatibility with extensions and code that predate async in Python.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified
CLM-0113
The docs note that Flask's async support carries a performance cost compared with ASGI frameworks.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified
CLM-0114
Flask will never have a database layer or a form library.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified
CLM-0115
Flask bridges to Werkzeug for WSGI and Jinja for templating, and everything else is left to extensions.
https://github.com/pallets/flask/blob/49943b5a94413a530761350f04e896f76e8d620e/docs/design.rst1verified