Ticket #763 (assigned enhancement)

Opened 4 years ago

Last modified 2 years ago

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:1 Changed 4 years ago by dread

  • Owner set to dread

comment:2 Changed 4 years ago by dread

Referencing ticket #441 has changed sprint.

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.

comment:5 Changed 2 years ago by ross

  • Owner thejimmyg deleted
  • Repository set to ckan
  • Theme set to none
  • Status changed from new to assigned
  • Milestone set to ckan-future
Note: See TracTickets for help on using tickets.