diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-15 16:37:08 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-17 16:30:22 -0600 |
| commit | 45df4d0d9b577fecee798d672695fe24ff57fb1b (patch) | |
| tree | 1b99bf645035b58e0d6db08c7a83521f41f7a75b /vendor/bytes/src/buf/vec_deque.rs | |
| parent | f94f79608393d4ab127db63cc41668445ef6b243 (diff) | |
feat: migrate from Cedar to SpiceDB authorization system
This is a major architectural change that replaces the Cedar policy-based
authorization system with SpiceDB's relation-based authorization.
Key changes:
- Migrate from Rust to Go implementation
- Replace Cedar policies with SpiceDB schema and relationships
- Switch from envoy `ext_authz` with Cedar to SpiceDB permission checks
- Update build system and dependencies for Go ecosystem
- Maintain Envoy integration for external authorization
This change enables more flexible permission modeling through SpiceDB's
Google Zanzibar inspired relation-based system, supporting complex
hierarchical permissions that were difficult to express in Cedar.
Breaking change: Existing Cedar policies and Rust-based configuration
will no longer work and need to be migrated to SpiceDB schema.
Diffstat (limited to 'vendor/bytes/src/buf/vec_deque.rs')
| -rw-r--r-- | vendor/bytes/src/buf/vec_deque.rs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/bytes/src/buf/vec_deque.rs b/vendor/bytes/src/buf/vec_deque.rs deleted file mode 100644 index 55d5636b..00000000 --- a/vendor/bytes/src/buf/vec_deque.rs +++ /dev/null @@ -1,40 +0,0 @@ -use alloc::collections::VecDeque; -#[cfg(feature = "std")] -use std::io; - -use super::Buf; - -impl Buf for VecDeque<u8> { - fn remaining(&self) -> usize { - self.len() - } - - fn chunk(&self) -> &[u8] { - let (s1, s2) = self.as_slices(); - if s1.is_empty() { - s2 - } else { - s1 - } - } - - #[cfg(feature = "std")] - fn chunks_vectored<'a>(&'a self, dst: &mut [io::IoSlice<'a>]) -> usize { - if self.is_empty() || dst.is_empty() { - return 0; - } - - let (s1, s2) = self.as_slices(); - dst[0] = io::IoSlice::new(s1); - if s2.is_empty() || dst.len() == 1 { - return 1; - } - - dst[1] = io::IoSlice::new(s2); - 2 - } - - fn advance(&mut self, cnt: usize) { - self.drain(..cnt); - } -} |
