Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APISIX not support Nacos ak/sk authentication #9208

Open
alanjiang opened this issue Mar 30, 2023 · 2 comments
Open

APISIX not support Nacos ak/sk authentication #9208

alanjiang opened this issue Mar 30, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@alanjiang
Copy link

Current Behavior

这是NACOS配置:

spring:

nacos:

  discovery:
    enable: true
    server-addr: ${nacos.ip}:8848
    contextPath: /nacos
    service: ${spring.application.name}
    namespace: ${nacos.namespace}
    group: ${spring.profile.active}
    secure: true
    access-key: XX
    secret-key: XX

在APISIX中, 配置NACOS服务发现:
discovery:
nacos:
host:
- "http://${nacos.ip}:8848"

重启APISIX后,发现后端报错:

image

想问下:APISX是否只是提供了NACOS的用户名/密码的认证模式, 并没有提供基于NACOS的access-key, secret-key这种认证模式? 如果提供了,麻烦告诉我如何配置NACOS的access-key, secret-key认证? 谢谢。

Expected Behavior

APISX能够识别阿里云的NACOS服务。

Error Logs

image

Steps to Reproduce

K8S环境中可以复现

Environment

我的APISIX版本: 2.15.0

@Gallardot
Copy link
Member

Hi @alanjiang, after checking the nacos service discovery implementation, we can confirm that ak/sk authentication mode is not supported. If you are interested in this, welcome to PR.

@moonming moonming added the enhancement New feature or request label Apr 7, 2023
@moonming moonming changed the title 阿里云Nacos开启认证后,APISIX不能发现upstream APISIX not support Nacos ak/sk authentication Apr 7, 2023
@smileby
Copy link
Contributor

smileby commented Jan 8, 2024

This has been resolved in #10445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants