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

request help: failed to sync SSL to APISIX label exceeds the maximum length of the schema. #1768

Open
jinjianming opened this issue Apr 3, 2023 · 5 comments
Assignees
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@jinjianming
Copy link

Issue description

2023-04-03T20:31:35+08:00       error   apisix/apisix_tls.go:213        failed to sync SSL to APISIX    {"error": "unexpected status code 400; error message: {\"error_msg\":\"invalid configuration: property \\\"labels\\\" validation failed: failed to validate meta_secret_name (matching \\\".*\\\"): string too long, expected at most 64, got 66\"}\n", "errorCauses": [{"error": "unexpected status code 400"}

Environment

  • your apisix-ingress-controller version (output of apisix-ingress-controller version --long): 1.6.0
  • your Kubernetes cluster version (output of kubectl version):
  • if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
@tao12345666333
Copy link
Member

Can you show me your resource's label?

In the schema definition of APISIX, its maximum value has been set to 64.

https://github.com/apache/apisix/blob/809ba09b26ddd62e0efa612f85e90d1aa938ce02/apisix/schema_def.lua#L81-L87

@tao12345666333 tao12345666333 added the bug Something isn't working label Apr 4, 2023
@tao12345666333 tao12345666333 changed the title request help: failed to sync SSL to APISIX string too long, expected at most 64, got 66 request help: failed to sync SSL to APISIX label exceeds the maximum length of the schema. Apr 4, 2023
@jinjianming
Copy link
Author

你能告诉我你的资源标签吗?

在 APISIX 的模式定义中,其最大值已设置为 64。

https://github.com/apache/apisix/blob/809ba09b26ddd62e0efa612f85e90d1aa938ce02/apisix/schema_def.lua#L81-L87

My secret name is indeed greater than 64

js-design-test-bigdata-data-app-service-router-secret1653999379471

@tao12345666333 tao12345666333 added the triage/accepted Indicates an issue or PR is ready to be actively worked on. label Apr 6, 2023
@Fabriceli
Copy link
Contributor

could you assign to me?

@tao12345666333
Copy link
Member

Assigned, thanks

@monkeyDluffy6017
Copy link

What is the appropriate setting for the length?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants