Ticket #763 (assigned enhancement)
Read-only mode - Setup
Reported by: | dread | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | ckan-future |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
Admin configures entering read-only mode in one of two places:
- CKAN config file (e.g. ckan.ini)
- environment variable from Apache config
Once enabled, no writes can occur to the database (including user ratings and other usage stats).
Change History
comment:3 Changed 3 years ago by dread
- Priority set to awaiting triage
- Type changed from story to enhancement
- Component set to ckan
comment:4 Changed 3 years ago by thejimmyg
- Owner changed from dread to thejimmyg
- Priority changed from awaiting triage to minor
Notes from my discussion with David a while ago:
Following irc discussion, it looks like read-only mode is simply achieved by Apache config:
- 503 for PUT/POST operations - stops writes
- 503 for GETs to URIs containing: /edit, /create, /new, /authz -
stops providing forms that lead to a write
- setenv CKAN_READONLY="Undergoing maintenance 12.00 UTC for one hour"
which can be picked up by CKAN to be displayed as we see fit in the future. Friedrich's current IATI sprint may link into this and grey out edit links etc.
Note: See
TracTickets for help on using
tickets.