-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
admin: disabled but manager tries to access services via 8444 #11995
Comments
Hello @tirelibirefe, thanks for reporting this. Kong Manager relies on the Admin API to work, and admin:
- enabled: false
+ enabled: true |
Hello @sumimakito The relevant ingress something like below:
Browser redirects Thanks & Regards |
here...
..same result normally. Port 8444 is not open publicly. |
@tirelibirefe Could you provide the
Do you mean that accessing
From the ingress you shared, it seems that you are hosting Kong Manager (front-end) on By the way, could you also verify that the |
Hello @sumimakito My values.yaml file is above.
From the ingress I shared, yes I host Kong Manager (front-end) on kong.myawesomedomain.com:80 (HTTP). I do not use port-forward, I use ClusterIP&Ingress. If admin-api is enabled, It can be accessed from a pod which is inside of Kubernetes by using its service endpoint. It looks like the problem is in Kong Manager itself. Browser redirects Thanks & Regards |
Hello @tirelibirefe - Thank you for providing these details. I noticed that the # ...
admin:
# ...
ingress:
enabled: true
hostname: admin-api.yourdomain.com
path: /
# ...
# ... And here's why… First, Kong Manager will request for In your scenario, Kong Manager will try to send Admin API requests using the current hostname |
Thanks for advises dear @sumimakito |
(pls ignore my previous message above) I added 2 example services to Kong by using admin api cli. if I try to access http://myawesomedomain.com/services?sort_desc=1&size=30 by using browser, browser redirects http to https and traffic is transferred properly. Also, when I send curl request to admin api via http
and
It looks like we are very close to the solution. I use nginx ingress controller and AWS ALB . How can I force "manager" redirect to HTTPS instead of HTTP ? ...and here my udpated values.yaml file below:
Thanks & Regards |
Also, |
@tirelibirefe tl;dr It looks like the HTTPS Admin API and the HTTP to HTTPS redirection are working fine. I think the issue should be caused by the missing admin:
enabled: true
# ...
ingress:
enabled: true
+ tls: true
ingressClassName: nginx
hostname: kongadminapi.myawesomedomain.com
# ... With the above change, Kong Manager should try to request the Admin API from the HTTPS endpoint instead this time. From Kong charts files, it seems that the protocol in the Admin API base is determined by {{- if .Values.admin.ingress.enabled }}
{{- $_ := set $autoEnv "KONG_ADMIN_GUI_API_URL" (include "kong.ingress.serviceUrl" .Values.admin.ingress) -}}
{{- $_ := set $autoEnv "KONG_ADMIN_API_URI" (include "kong.ingress.serviceUrl" .Values.admin.ingress) -}}
{{- end -}} {{- define "kong.ingress.serviceUrl" -}}
{{- if .tls -}}
https://{{ .hostname }}{{ .path | trimSuffix "/" }}
{{- else -}}
http://{{ .hostname }}{{ .path | trimSuffix "/" }}
{{- end -}}
{{- end -}} Meanwhile, I think we should also add more examples for setting up Kong Manager with Helm charts as the mechanism shown above is not very easy to be discovered for normal users. Thanks again for bringing this up. |
Hello @sumimakito In the original Helm Chart, there is no "admin.ingress.tls:" Apparently there are relevant codes in _helpers.tpl but I didn't notice/check it before. When I just saw your message, I added ...and the problem is fixed. |
You're welcome @tirelibirefe. I'm glad that it is working normally now. |
… Admin API is not enabled Feedback from issue #11995 highlighted potential user confusion due to the internal connection between Kong Manager and the Admin API. To address this, a warning message will now be displayed to notify users that the current configuration combination will not function as expected. This resolves KAG-3158
…nabled but the Admin API is not enabled (#12071) Feedback from issue #11995 highlighted potential user confusion due to the internal connection between Kong Manager and the Admin API. To address this, a warning message will now be displayed to notify users that the current configuration combination will not function as expected. This resolves KAG-3158
Is there an existing issue for this?
Kong version (
$ kong version
)3.4
Current Behavior
I have EKS 1.27 and trying to install Kong via Helm Chart 2.31.0.
I need to gateway and manager, no need to anything else.
External Postgres enabled.
Manager ingress and proxy ingress is enabled.
SSL offloading ALB level; so "certificates:" are not enabled.
After the installation I see that kong pod is running and migrations had been completed successfully.
Only default page (overciew) can be accessible on Manager UI; the problem is that /services /routes /consumers etc. cannot be accessed.
When I inspect the page, I see that Manager is trying to access /services by using 8444.
Expected Behavior
My values.yml file is below:
Steps To Reproduce
No response
Anything else?
Could you please advise me where does 8444 come from although admin api is disabled? Why does manager try to access /services by using 8444?
...any help will be very appreciated.
Thakns & Regards
The text was updated successfully, but these errors were encountered: