Skip to content

enhancement: support plugins in ApisixConsumer #397

@kayx23

Description

@kayx23

Summary

Please triage whether ApisixConsumer should support generic consumer-scoped plugins beyond authentication.

Current behavior

APISIX itself supports binding plugins to consumers, but ApisixConsumer currently exposes authParameter only and does not provide a general plugins field for additional consumer-scoped plugins.

From the current implementation:

  • ApisixConsumerSpec only contains authParameter
  • the translator only maps supported auth entries from authParameter into consumer plugins

As a result, consumer-level plugin use cases supported by APISIX cannot currently be expressed through ApisixConsumer.

Use cases affected

  • attaching plugins such as limit-count or limit-req directly to a consumer
  • managing consumer auth and other consumer-scoped plugin behavior in the same ApisixConsumer resource

Code context

  • api/v2/apisixconsumer_types.go
  • internal/adc/translator/apisixconsumer.go

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions