Skip to content

SK-2681: Add dict context support for Conditional Data Access#241

Merged
saileshwar-skyflow merged 4 commits intomainfrom
release/26.5.0
May 6, 2026
Merged

SK-2681: Add dict context support for Conditional Data Access#241
saileshwar-skyflow merged 4 commits intomainfrom
release/26.5.0

Conversation

@saileshwar-skyflow
Copy link
Copy Markdown
Collaborator

Summary

  • Add dict support for the ctx parameter in bearer token and signed data token generation
  • Add _validate_and_resolve_ctx() with key validation (alphanumeric + underscores only for CEL compatibility)
  • Add error messages for invalid ctx type and invalid dict keys
  • Add 14+ unit tests for the new validation function
  • Update README with string vs dict context documentation and CEL expression examples
  • Update sample files with both string and dict context approaches

Test plan

  • _validate_and_resolve_ctx() manually verified: string, dict, None, empty string, invalid type, invalid keys, nested objects
  • Pre-existing test collection error on main (requires credentials.json — not a regression)
  • End-to-end test with a Skyflow vault using a Conditional Data Access policy

Refs SK-2681, DOCU-1440

@saileshwar-skyflow saileshwar-skyflow merged commit 3c53165 into main May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants