commit | dce68ce05c8bedfac9e5bd1fcb951f64745757b6 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Tue Feb 20 17:28:12 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Thu Feb 22 10:33:17 2018 +0900 |
tree | 793fdaecf416c272310d8bced075bcb049e6fb02 | |
parent | 92f9d8ca7ee0b27b3ca3193b6971e70dc9994f7e [diff] |
Add read only HTTP filter to prevent PUT/POST/DELETE The filter intercepts all HTTP requests and rejects any PUT, POST or DELETE with a "503 Service Unavailable" status code [1]. This prevents: - Creating a new project from the UI - Changing a project's configuration from the UI - Changing user preferences from the UI - and any other operation performed by a POST/PUT/DELETE REST API call [1] https://httpstatuses.com/503 Change-Id: I4fa7d335d8392270e004f55d29581eeffa3346a2