You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split from #298, which covers the breaking 0.4.0 change.
Problem
add_routes(app) mounts /cached-hits and /cached-records with no access control unless dependencies is passed, and shows content previews by default. See #298 for what that exposes. Today the only notice is a docstring sentence, so an app can ship the open routes without anyone noticing.
Split from #298, which covers the breaking 0.4.0 change.
Problem
add_routes(app)mounts/cached-hitsand/cached-recordswith no access control unlessdependenciesis passed, and shows content previews by default. See #298 for what that exposes. Today the only notice is a docstring sentence, so an app can ship the open routes without anyone noticing.Proposal
UserWarningfromadd_routes()whendependenciesisNone. Name the parameter, and say that 0.4.0 will require it and turn previews off by default (add_routes: monitoring routes are unauthenticated and expose content previews by default #298).dependencies=[]as a deliberate opt-out that does not warn, so local and test setups can silence it without adding a guard.No behaviour change besides the warning.