feat(search): manage source permissions through a shared API and CLI

Merged
WA
1d ago
+525-427

Summary

  • Read and replace Search source permissions through one API and CLI command group. Each connector defines the grant format it accepts.
  • Keep authorization, revision checks, and atomic grant replacement in the shared path. Update the GitLab CI example and generated references.

Type of Change

  • Improvement

Testing

  • Ran the public HTTP end-to-end suite against Sim and PostgreSQL, including concurrent replacements, revoked access, malformed uploads, and unsupported sources.
  • Ran the CLI and documented CI job against a running Sim instance. With two signed-in users and a GitLab fixture, the replacement granted one reader access and revoked search and document reads for the other.
  • Ran the permission store integration tests, all 527 CLI tests, docs compatibility, lint, type-check, and all 62 repository audits.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)