Flock: A Framework for Deploying On-Demand Distributed Trust

Darya Kaviani, Sijun Tan, Pravein Govindan Kannan, Raluca Ada PopaOSDI 2024

TL;DR

This paper introduces Flock, a novel framework that simplifies the deployment of distributed trust systems. By shifting the deployment burden from application providers to individual users, Flock enables on-demand, cross-cloud distributed trust without the need for costly and complex business relationships. This innovation promises to significantly lower the barrier to entry for adopting distributed trust, making it accessible to a wider range of applications.

What Problem Does This Paper Address?

Modern applications are increasingly adopting distributed trust to protect sensitive user data from single points of failure or attack. This paradigm typically requires data to be distributed across multiple independent "trust domains" (organizations). However, establishing these distinct trust domains is a major hurdle. Application providers, being a single trust domain themselves, struggle to manually forge costly and time-consuming relationships with numerous third parties willing to host their distributed trust modules. This "deployment challenge" limits the widespread adoption of beneficial distributed trust systems, even for well-funded organizations.

Methods

Flock tackles this challenge with an "on-demand distributed-trust architecture." The core idea is to reverse the deployment model: instead of the provider deploying to multiple clouds, each user's client automatically deploys the necessary components across several cloud providers.

Key techniques include:

  • Serverless Computing: Flock leverages serverless functions (e.g., AWS Lambda, Google Cloud Run) to minimize costs. These functions are invoked only when needed, avoiding the expense of always-on VMs.
  • Flock Relay: To enable secure, end-to-end communication between serverless instances across different clouds, Flock introduces a NAT-independent relay protocol. This relay facilitates secure serverless-to-serverless (S2S) and serverless-to-relay (S2R) TLS connections without the application provider (who hosts the relay) being able to compromise data confidentiality or integrity.
  • Three-Tier Authentication: Flock implements a robust authentication system comprising:
  • Cloud-level: Fine-grained access keys to prevent unauthorized invocation of serverless instances.
  • Network-level: Mutual TLS (mTLS) certificates for secure communication.
  • Application-level: MPCAuth, a protocol that allows a user to authenticate once to a logical "trusted server" (simulated by an MPC of the n parties), achieving the security of authenticating to each party individually.
  • Programmatic Registration & Deployment: Flock automates the complex process of creating cloud accounts and deploying serverless instances using tools like Playwright for UI automation and cloud provider APIs.

Datasets

Not discussed in the paper. The evaluation focuses on performance and cost metrics of cryptographic modules and system throughput, rather than training on specific datasets.

Key Insights and Ideas

  • User-Driven Deployment is Key: The most significant insight is reversing the deployment paradigm. By empowering users to deploy their own trust domains, Flock bypasses the need for inter-organizational business relationships, which is the primary bottleneck.
  • Serverless is a Natural Fit: The "pay-as-you-go" and event-driven nature of serverless computing perfectly aligns with the on-demand model, making distributed trust economically viable for individual users.
  • Relay for Secure Cross-Cloud Serverless: The Flock Relay is a crucial innovation, enabling secure, end-to-end encrypted communication between ephemeral serverless functions across different cloud providers without compromising privacy.
  • MPCAuth Simplifies User Experience: Abstracting away the complexity of authenticating to multiple parties via MPCAuth significantly improves the user experience, making distributed trust applications feel more like traditional single-provider applications.

Key Results

  • Performance: Flock achieves comparable performance to traditional distributed trust setups. On average, it introduces a 1.05x latency overhead.
  • Cost: Flock is significantly more cost-effective. It achieves 0.68-2.27x the cloud cost of traditional deployments, excluding the substantial costs of establishing business relationships in the traditional model.
  • Throughput: Flock's relay achieves high throughput, comparable to direct TLS connections, and can support a large number of concurrent users.
  • Supported Applications: Flock successfully supports 8 types of distributed-trust applications, including secret recovery, signing, decryption, PIR, and data freshness, demonstrating its versatility.

Limitations and Future Work

  • Availability: Flock's availability is dependent on the application provider and the underlying cloud services. If the provider or a cloud is unavailable, Flock does not offer availability.
  • Application Code: Flock assumes that the application client code is not compromised and is open-source. Its security focus is on protecting application servers.
  • User Experience: While Flock automates much of the deployment, users may still need to complete multiple authentication steps for cloud registration.
  • Future Work: The authors suggest exploring stricter enforcement of spending limits by cloud providers and further optimizing serverless cold-start times. They also note that while their current implementation supports "n out of n" security, the architecture can be extended to support "t out of n" security for t < n.

Summary updated

BibTeX
@inproceedings{kaviani2024flock,
  author = {Darya Kaviani and Sijun Tan and Pravein Govindan Kannan and Raluca Ada Popa},
  title = {{Flock: A Framework for Deploying On-Demand Distributed Trust}},
  booktitle = {OSDI},
  year = {2024},
  url = {https://openreview.net/forum?id=SNYJ7T07rA},
}
Figure