Shut the parts kiosk behind a device token, and stop the health probe leaking
This commit is contained in:
@@ -150,6 +150,24 @@ class PrintedpartsPlugin(BasePlugin):
|
||||
'category': 'printedparts',
|
||||
'description': 'Default low-stock threshold for new items',
|
||||
},
|
||||
{
|
||||
'key': 'printedparts_kiosk_enabled',
|
||||
'value': 'false',
|
||||
'valuetype': 'boolean',
|
||||
'category': 'printedparts',
|
||||
'description': 'Serve the parts kiosk routes. Off by default: '
|
||||
'they are the only unauthenticated write in the '
|
||||
'product, so a site opts in',
|
||||
},
|
||||
{
|
||||
'key': 'printedparts_kiosk_token',
|
||||
'value': '',
|
||||
'valuetype': 'secret',
|
||||
'category': 'printedparts',
|
||||
'description': 'Device token the kiosk sends as X-Kiosk-Token. '
|
||||
'Generate one, then open the kiosk once as '
|
||||
'/parts-kiosk?token=<value> on each screen',
|
||||
},
|
||||
{
|
||||
'key': 'printedparts_unknown_badge',
|
||||
'value': 'deny',
|
||||
|
||||
Reference in New Issue
Block a user