-
Notifications
You must be signed in to change notification settings - Fork 594
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
Gateway Discovery for DB mode #4751
Comments
As a previous issue #3606, we could simply discover all clients and choose one to call admin APIs to configure each time when we sync the configuration. |
Were we looking to achieve anything functionally different from normal DB mode with this? This feels like it needs more clarification on the background of why we want to do this and the end functionality goals. Discovery is a suite of several pieces of controller functionality, and not all are relevant for DB mode. Discovery mode (functionally, enumerating all Kong instances in a Deployment and sending configuration to each of them) has no obvious way to fit into DB mode, where you must send configuration to one replica only, and the then replica handles distribution on the Kong side via the DB's broadcast mechanism. You can already run a controller Deployment separate from the proxy Deployment in DB mode; it can send its configuration requests through the Service for its. There wasn't ever any need for the sidecar approach for DB mode, it was just simpler to use the same Deployment template as the DB-less default. We do need to determine which mode to use, and ideally don't need configuration to toggle between them, but that can be handled by talking to the Service initially, checking the database mode, and then configuring the parser to either broadcast to all endpoints or to unicast to the Service. One ancillary concern is that separate controller Deployments remove the ability to shield the admin API with a localhost-only listen. The overall discovery design does include automatic mTLS configuration, and we probably want that for default separate controller and proxy Deployments. IIRC there's also some component of discovery used for Konnect integration to list individual replicas. I'm unsure if we support Konnect+KIC+DB mode and if we wanted to port that. |
From discussion this morning:
We should reconcile the As the admin API will no longer have security by local network restriction, we should also configure mTLS in these DB configurations. |
Is there an existing issue for this?
Problem Statement
GD (#702) today only works with DB-less mode (Kong/docs.konghq.com#5602)
Proposed Solution
Solve for DB-mode as well.
Additional information
No response
Acceptance Criteria
The text was updated successfully, but these errors were encountered: