Skip to content

dashboard cannot encrypt password field #3230

@hhyygg2009

Description

@hhyygg2009

Issue description

elasticsearch-logger with password not working

Expected behavior

elasticsearch-logger should normal with password

How to Reproduce

update elasticsearch-logger config in apisix-dashboard, apisix log will throw below err msg

[warn] 50#50: *45968 [lua] plugin.lua:1002: decrypt_func(): failed to decrypt the conf of plugin [elasticsearch-logger] key [auth.password], err: decrypt ssl key failed

{
  "_meta": {
    "disable": false
  },
  "auth": {
    "password": "xxx",
    "username": "xxx"
  },
  "endpoint_addr": "https://xxx:9200",
  "field": {
    "index": "xxx"
  },
  "ssl_verify": false,
  "timeout": 15
}

Screenshots

No response

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

apps version:

apache/apisix:3.14.0-ubuntu
apache/apisix-dashboard:3.0.1-centos

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions