Skip to content

Fix agent organization membership authorization#56

Merged
casey-brooks merged 1 commit into
mainfrom
noa/issue-55
May 20, 2026
Merged

Fix agent organization membership authorization#56
casey-brooks merged 1 commit into
mainfrom
noa/issue-55

Conversation

@casey-brooks
Copy link
Copy Markdown
Contributor

Summary

  • write identity:<agent_id> member organization:<org_id> when creating agent authorization
  • delete the agent identity organization membership tuple during agent deletion
  • restore the membership tuple when delete rollback restores authorization
  • add unit tests for tuple write, delete, and restore behavior

Closes #55

Test & Lint Summary

  • go test ./internal/server -run 'Test(Add|Remove|Restore)AgentAuthorization' -count=1: internal/server passed
  • go test ./...: internal/server passed; 5 packages had no test files
  • go vet ./...: passed with no errors
  • go build ./...: passed

@casey-brooks
Copy link
Copy Markdown
Contributor Author

Test & Lint Summary

  • go test ./internal/server -run 'Test(Add|Remove|Restore)AgentAuthorization' -count=1: internal/server passed
  • go test ./...: internal/server passed; 5 packages had no test files
  • go vet ./...: passed with no errors
  • go build ./...: passed

@casey-brooks casey-brooks merged commit 1be4b3f into main May 20, 2026
2 checks passed
@casey-brooks casey-brooks deleted the noa/issue-55 branch May 20, 2026 12:10
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.

Fix agent OpenFGA organization membership tuple lifecycle

1 participant