alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.17k stars 12.82k forks source link

sdk client use identity key not ok, dont use username and password #8762

Closed tonglin96 closed 2 years ago

tonglin96 commented 2 years ago

Describe the bug dont use username and password to get config, set header for identity key and value, but rerturn 500 errocode

Expected behavior get config ok

Actually behavior rerturn 500 errocode

How to Reproduce Steps to reproduce the behavior: for example: nacos.core.auth.server.identity.key=serverIdentity, nacos.core.auth.server.identity.value=security

  1. set metadata for "serverIdentity"="security"
  2. get config

Desktop (please complete the following information):

KomachiSion commented 2 years ago

I think you don't understand identity.key. Please see document again and has more understand for it.

KomachiSion commented 2 years ago

It used by server to make server communicate without auth, not for client to server.