-
Notifications
You must be signed in to change notification settings - Fork 231
[No-Merge, Draft] Feature/2.0_beta/self_host_postgres #786
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
Draft
anuchandy
wants to merge
19
commits into
main
Choose a base branch
from
feature/2.0-beta/selft_host_postgres
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ervice, which makes these service classes stateless
…d updated all service classes to accept and pass ITokenCredentialFactory to BaseAzureService
3d1aff9
to
d0d4cbd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Demonstrates the code changes for the flows required to self-host Postgres. The changes are not specific to Postgres, though they have only been verified with Postgres.
The server is started as:
appsettings.json
With Entra ID request validation and Managed Identity:
In this configuration, the Incoming MCP calls are authenticated through the
inboundAuthentication.azureAd
configuration. Outgoing Azure service calls, such as those to Postgres, use the managed identity of the host where the Azure MCP server is running.The
outboundAuthentication.clientId
property is required when using a user-assigned managed identity. For a system-assigned identity, this property is not needed.With Entra ID request validation and JWT pass through:In this configuration, incoming MCP calls are authenticated through the inboundAuthentication.azureAd settings. The same JWT token is then passed through for outgoing Azure service calls - such as those to Postgres..
With Entra ID request validation and OBO
Validates incoming token and exchanges it for Azure token using OBO flow.
The
clientCredential
can supports multiple credential types :Https
The host is responsible for handling HTTPS. Azure services such as ACA, Functions, and AKS include built-in HTTPS support. For example, when a client connects over HTTPS, decryption occurs at the service’s front-end (ingress). The TLS handshake (certificate validation and decryption) is performed by Azure’s managed ingress, which then forwards the decrypted HTTP traffic to the container over the internal network where the MCP Server is running.
Diagrams