Skip to content

bug: openid-connect yml conf could not use $env to set plugin properties #11319

Description

@150149

Current Behavior

When I use yaml config to set plugin properties, apisix openid-connect plugin could not read $env://KEYCLOAK_PWDvalue.
Environment variable can be seen through linux cmd:

echo $KEYCLOAK_PWD

But apisix plugin could not read those config properties

Expected Behavior

Apisix plugin can read those config properties

Error Logs

No response

Steps to Reproduce

  1. Create config(Show only key code)
  - uri: /api/xxx/*
    service_id: xxxx
    plugins:
      openid-connect:
        client_id: xxx
        client_secret: $ENV://KEYCLOAK_PWD
        discovery: xxxx
        scope: openid

Environment

  • APISIX version (3.2.0):
  • Operating system (Linux 3.10.0-1160.118.1.el7.x86_64 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux):
  • OpenResty / Nginx version (openresty/1.21.4.2):
  • etcd version, if relevant (not use):
  • APISIX Dashboard version, if relevant(not use)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions