Logo
Sign up Sign in
forks/warmbly
1
0
hosted on Rithub
Fork 0
You've already forked warmbly
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
warmbly/internal/app/cipher/static.go
Matthew Meszaros e58921484d feat: rebuild mailbox import around column mapping and automatic host and sign-in detection (CSV, XLSX, pasted lists, saved mappings, retryable rows with fixes, migrations 000205-000206), connect whole Google Workspace domains and Microsoft 365 organizations through a proved administrator grant, import from inbox vendors (InboxKit, Zapmail, Mailforge, Infraforge, Maildoso, Cheap Inboxes, ScaledMail) with vendor-managed forwarding and DNS, add a sending domains page with per-domain tracking and verified root redirects, unify Add account into one Google and one Microsoft entry with per-method choices, mark per-mailbox Google sign-in as retiring with in-place moves to the admin grant or an app password, allow the loopback security mode in the credential columns (migration 000207), read semicolon-separated CSVs, and add a mock vendor API to the sandbox
2026-09-23 08:41:01 -07:00

20 lines
484 B
Go
Raw Permalink Blame History

package cipher
import (
"context"
"github.com/google/uuid"
)
// staticService hands out one fixed key for every organization.
type staticService struct{ key []byte }
// NewStatic is a CipherService over one fixed 32-byte key, for tests; production resolves a DEK per organization.
func NewStatic(key []byte) CipherService {
return &staticService{key: key}
}
func (s *staticService) Cipher(context.Context, uuid.UUID) (*Cipher, error) {
return &Cipher{plainDEK: s.key}, nil
}
Reference in New Issue View Git Blame Copy Permalink
English
English
Licenses API
Explore · Agents · Move from GitHub · Rithub vs GitHub · For startups · Terms · Privacy