René's URL Explorer Experiment


Title: feat: Add structured audit logging for MCP feature server · Issue #6452 · feast-dev/feast · GitHub

Open Graph Title: feat: Add structured audit logging for MCP feature server · Issue #6452 · feast-dev/feast

X Title: feat: Add structured audit logging for MCP feature server · Issue #6452 · feast-dev/feast

Description: Is your feature request related to a problem? Please describe. Feast can expose the Python feature server as an MCP server (feature_server.type: mcp, mcp_enabled: true, endpoint /mcp) via fastapi_mcp. Operators and platform teams need a ...

Open Graph Description: Is your feature request related to a problem? Please describe. Feast can expose the Python feature server as an MCP server (feature_server.type: mcp, mcp_enabled: true, endpoint /mcp) via fastapi_m...

X Description: Is your feature request related to a problem? Please describe. Feast can expose the Python feature server as an MCP server (feature_server.type: mcp, mcp_enabled: true, endpoint /mcp) via fastapi_m...

Opengraph URL: https://github.com/feast-dev/feast/issues/6452

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Add structured audit logging for MCP feature server","articleBody":"### Is your feature request related to a problem? Please describe.\n\nFeast can expose the Python feature server as an MCP server (`feature_server.type: mcp`, `mcp_enabled: true`, endpoint `/mcp`) via `fastapi_mcp`. Operators and platform teams need a clear **audit trail** for agent/MCP access: who invoked which tool, what resource was accessed, whether authentication and authorization succeeded or failed, and a correlation ID that links MCP calls to internal REST requests.\n\nToday, MCP integration only logs startup/errors (`sdk/python/feast/infra/mcp_servers/mcp_server.py`). That is not enough for security and operations use cases:\n\n| Mechanism | What it does | Gap for MCP audit |\n|-----------|--------------|-------------------|\n| `feature_logging` | Logs **served feature values** to the offline store | Not a security audit log; not wired on the Python FastAPI MCP server |\n| Uvicorn access logs | HTTP path/status (off by default) | No principal, no MCP tool name |\n| RBAC logs | Unstructured permission messages in app logs | No MCP correlation; often DEBUG-only for allows |\n\n**With `auth.type: no_auth`:** MCP tool calls are effectively anonymous — no principal in logs.\n\n**With `auth.type: oidc` / `kubernetes`:** RBAC applies on secured REST routes when the MCP client forwards `Authorization` (default in `fastapi_mcp`), but there is still no structured audit stream for MCP `tools/call`, successful reads, or request correlation. The `/mcp` transport itself is not audited.\n\nRegistry MCP (`registry.mcp.enabled: true`) has the same gap.\n\n### Describe the solution you'd like\n\nAdd **structured audit logging** (JSONL) for the Python MCP feature server, separate from `feature_logging`:\n\n1. **Config** under `feature_server` (e.g. `audit_logging.enabled`, `sink`, `file_path`, `require_auth_for_mcp`, `log_successful_reads`).\n2. **Audit events** with stable schema: `event_type`, UTC `timestamp`, `request_id`, **`principal`**, `source` (IP, transport), `action` (MCP tool / HTTP path), `resource`, `outcome`, `duration_ms`.\n3. **Two emission layers:**\n   - MCP middleware on `/mcp` (`mcp.tools.call`, session events).\n   - REST + RBAC hooks (`authn.*`, `authz.decision`, `http.request`) on secured endpoints.\n4. **Header propagation** via `FastApiMCP(headers=[...])` so MCP and REST events share `request_id` (and optionally tool name).\n5. **No sensitive payloads** in audit logs (no tokens, entity rows, or feature values).\n\nOptional follow-ups: registry MCP parity, OTEL sink, operator CRD fields.\n\nExample config:\n\n```yaml\nfeature_server:\n  type: mcp\n  mcp_enabled: true\n  audit_logging:\n    enabled: true\n    sink: stdout\n```\n\nExample event (JSONL):\n\n```json\n{\n  \"event_type\": \"mcp.tools.call\",\n  \"timestamp\": \"2026-05-28T12:00:00.000Z\",\n  \"request_id\": \"…\",\n  \"principal\": {\n    \"username\": \"jane.doe@company.com\",\n    \"roles\": [\"feast-reader\", \"ml-engineer\"],\n    \"auth_type\": \"oidc\"\n  },\n  \"source\": { \"ip\": \"10.0.0.1\", \"transport\": \"mcp-http\" },\n  \"action\": { \"mcp_tool\": \"get_online_features\", \"path\": \"/get-online-features\" },\n  \"resource\": { \"type\": \"feature_service\", \"name\": \"driver_activity_v1\", \"actions\": [\"READ_ONLINE\"] },\n  \"outcome\": \"success\",\n  \"duration_ms\": 42\n}\n```","author":{"url":"https://github.com/patelchaitany","@type":"Person","name":"patelchaitany"},"datePublished":"2026-05-29T07:01:56Z","url":"https://github.com/feast-dev/feast/issues/6452"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:23a95068-74cf-db49-dffa-cc9a759d649e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DAA:6B7A6:EFE0EC:13BE345:6AFE981C
html-safe-nonce6d70947f84f9500f9272219717d7f322b466ac36396e40661221f84fc24b8a39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REFBOjZCN0E2OkVGRTBFQzoxM0JFMzQ1OjZBRkU5ODFDIiwidmlzaXRvcl9pZCI6IjczMjcwNDY4ODI3NTg0NTQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7c5679d3bdbfc2056015e44f153f67c6c31be162bd9ee0b763a8322e8433acba
hovercard-subject-tagissue:4546411914
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6452/issue_layout
twitter:imagehttps://opengraph.githubassets.com/282edcc8e523c28b8a9622cd6607ccf6f2e0d38f10ba75c238fe357d1d67b83f/feast-dev/feast/issues/6452
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/282edcc8e523c28b8a9622cd6607ccf6f2e0d38f10ba75c238fe357d1d67b83f/feast-dev/feast/issues/6452
og:image:altIs your feature request related to a problem? Please describe. Feast can expose the Python feature server as an MCP server (feature_server.type: mcp, mcp_enabled: true, endpoint /mcp) via fastapi_m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepatelchaitany
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6452#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6452
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6452
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/6452
Reloadhttps://github.com/feast-dev/feast/issues/6452
Reloadhttps://github.com/feast-dev/feast/issues/6452
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6452
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6452
#6456https://github.com/feast-dev/feast/pull/6456
feat: Add structured audit logging for MCP feature serverhttps://github.com/feast-dev/feast/issues/6452#top
#6456https://github.com/feast-dev/feast/pull/6456
kind/featureNew feature or requesthttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Ffeature%22
https://github.com/patelchaitany
patelchaitanyhttps://github.com/patelchaitany
on May 29, 2026https://github.com/feast-dev/feast/issues/6452#issue-4546411914
patelchaitanyhttps://github.com/patelchaitany
kind/featureNew feature or requesthttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Ffeature%22
on May 29, 2026https://github.com/feast-dev/feast/issues/6452#event-26097449690
https://github.com/HarperZ9
HarperZ9https://github.com/HarperZ9
on Jun 28, 2026https://github.com/feast-dev/feast/issues/6452#issuecomment-4824120943
ntkatholehttps://github.com/ntkathole
completedhttps://github.com/feast-dev/feast/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6456https://github.com/feast-dev/feast/pull/6456
on Sep 17, 2026https://github.com/feast-dev/feast/issues/6452#event-31298358979
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/6452
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6452
kind/featureNew feature or requesthttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Ffeature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.