Skip to content

proxy: use authorization header

Romain Courteaud requested to merge romain/slapos.core:20261013 into master

Use the HTTP Authorization header to inform slapproxy which partition triggered a http request.

'Authorization: X-SlapPartition computer_id=%s, computer_partition_id=%s' % (computer_id, computer_partition_id)

Previously, it was done by passing computer_id/computer_partition_id inside the body json parameters. As the json schema does not allow such tricks anymore, use more standard way to propagate the information.

It is of course as unsecure as before.

Edited by Romain Courteaud

Merge request reports