Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Slack Engineering 5 min read Case study easyNovice

How we built enterprise search to be secure and private

Slack's enterprise search, which brings Google Drive and GitHub results into Slack search and AI Answers, uses a federated, real-time design instead of an index. Queries go to partner search APIs at request time using per-user OAuth tokens, so no external data is stored server-side and results and permissions can't go stale. The system reuses Slack AI's model: LLMs hosted in an escrow VPC on AWS, RAG with the user's ACL rather than training on customer data, and Search Answers discarded after display. Admins and users must each opt in per source, and only read-only OAuth scopes are requested.

Assumes: OAuth basicsRetrieval-augmented generation

Related posts

  • How We Built Slack AI To Be Secure and Private

    Slack Engineering easyNovice

    Slack AI was designed around four principles: customer data never leaves Slack's trust boundary, no LLM training on customer data, the AI only sees what the requesting user can see, and all existing compliance controls still apply. Closed-source foundation models run in an AWS-hosted escrow VPC so the model provider never gets customer data. Stateless RAG over off-the-shelf models replaces fine-tuning, which raises the need for large context windows at low latency. Retrieval reuses the user's ACLs and existing fetch libraries, outputs are ephemeral where possible, and derived summaries are invalidated when source messages are tombstoned by DLP.

  • Lessons on UX, security, and scale when building an enterprise-grade Slack agent

    Sourcegraph mediumAdept

    Sourcegraph's Deep Search Slack agent fits into enterprise workflows through staged status messages (emoji acknowledgement, escalation links for long searches), TL;DR answers with threaded follow-ups, and rich link unfurling via Slack's link_shared events, SHA256-based entity IDs, chat.unfurl work objects and flexpane details. On the enterprise side it supports Enterprise Grid's one-app-to-many-workspaces model, auto-links Slack users to Sourcegraph accounts by verified email so permissions match code access, and validates setup by forcing a fresh Slack event-URL ping with a random retry parameter. Abuse is controlled with simple Redis fixed-window counters per user and team that fail open if Redis is down.

  • Creating AI agent solutions for warehouse data access and security

    Meta Engineering mediumAdept

    Meta is reworking access control for its offline data warehouse around a multi-agent system. Data-user agents suggest less-restricted alternatives, enable low-risk exploration and draft permission requests. Data-owner agents follow owner-written SOPs to process requests and proactively configure access rules. The warehouse hierarchy is exposed to LLMs as a text folder structure, with context management (automatic, static, dynamic) and explicit role-based or implicit activity-inferred intention. In the partial data preview flow, an LLM judges requests using user activity, query shape and resource metadata, bounded by daily data-access budgets and a rule-based risk guardrail, with daily evals on historical requests and an owner feedback loop.

  • Staying Evergreen: How we automated secure access and repo hygiene in a shared org

    GitHub Engineering mediumAdept

    Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail. It fails secure by revoking all access when a review goes unanswered, fails closed by keeping reviews pending until every removal succeeds, and never deletes anything. Rollout relied on a DRY_RUN mode, logfmt logs in Splunk, and proactive pacing to stay under GitHub's secondary content-creation rate limits of 80 requests/minute and 500/hour.

  • Agentic Platform: Open-Sourcing the Agentic Identity Broker

    Zalando Engineering hardMaster

    Zalando open-sourced the MIT-licensed Agentic Identity Broker, which lets AI agents act on behalf of users across third-party systems without ever receiving provider tokens. Running on Kubernetes alongside kagent and agentgateway, the broker records grants of admin-defined permission sets from users to agents, holds encrypted per-user provider sessions, and performs RFC 8693-style token exchange at the gateway so OAuth ceremonies stay out of agents and MCP servers. Effective access is the intersection of user and agent permissions, and per-tool-call authorization is layered on via OPA through agentgateway's ExtProc. Planned additions include central tool approvals, CIBA for high-risk actions, and SPIFFE to separate agent attestation from user identity and avoid per-hop STS latency.

The quest for software engineering knowledge.

Look:
Layout: