Skip to content

support new SAT v2 and multi-tenancy in auth-N/auth-Z#134

Open
kelleyloder wants to merge 26 commits into
develop-multi-tenantfrom
sat-rbac-capabilities-v2
Open

support new SAT v2 and multi-tenancy in auth-N/auth-Z#134
kelleyloder wants to merge 26 commits into
develop-multi-tenantfrom
sat-rbac-capabilities-v2

Conversation

@kelleyloder

Copy link
Copy Markdown

Support new SAT v2 token with xconf capabilities.
Authentication ->

  • no partners in SAT -> 403
  • no tenantId header -> 403

Authorization ->

  • tenantId not in SAT partners -> 403
  • no capability for request type -> 403

Use tenantId from header in the rest of the request if SAT v2.

In the case of no SAT v2, check for SAT legacy or Xerxes, in which case skip tenantId check and use default tenantId for the rest of the request.

kelleyloder and others added 26 commits May 15, 2026 14:40
…ential execution

- Add SkipIfMockDatabase() helper to skip tests that require real Cassandra
- Use unique IDs (timestamps) to prevent test collisions
- Add time.Sleep for Cassandra eventual consistency
- Update Makefile to run tests sequentially (-p 1) to avoid DB race conditions
- Tests now pass reliably in both mock and real DB modes
- Adapt DAO calls to include tenantId parameter (multi-tenant API)
- Change xhome to rdkcloud (xhome invalid on multi-tenant)
- Use mock HTTP server for GroupServiceConnector tests
- Fix table name constants (singular to plural)
- Skip/fix tests with pre-existing multi-tenant failures
Copilot AI review requested due to automatic review settings June 25, 2026 21:05
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of lines (20,000). Try reducing the number of changed lines and requesting a review from Copilot again.

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.

6 participants