apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: how to validates the requests by user

Open cverdela opened this issue 6 years ago • 3 comments

Issue description

how to validates the requests by user for example, User A post URL with body cpu_load_short,host=server01,USER=A value=0.64 1434055562000000006 (influxdb tag) body must with USER=A not B

Environment

  • apisix version (cmd: apisix version):2.0
  • OS:docker

cverdela avatar Dec 02 '20 02:12 cverdela

I do not understand your question very well, can you provide more detail? @cverdela

idbeta avatar Dec 02 '20 10:12 idbeta

for example, User A post xxxURL with body cpu_load_short,host=server01,**USER=A** value=0.64 1434055562000000006 IF User B post URL with body cpu_load_short,host=server01,**USER=A** value=0.64 1434055562000000006 should be error(because A<>B)

cverdela avatar Dec 02 '20 11:12 cverdela

@cverdela maybe you could try plugin hmac-auth

nic-chen avatar Dec 03 '20 15:12 nic-chen