Version Affected: All
Overview
The GitHub connector in AI - Agentic Authority can reach repositories in one GitHub organization but cannot access repositories in other GitHub organizations, even though the user is a member of those organizations. Agent Authority has no setting for choosing an organization, and the connection appears to be tied to the user's personal GitHub account rather than to an organization.
Both behaviors are expected. A connection is always made with the user's personal GitHub account, and the connector can only reach organizations where the SecureAuth GitHub App is installed. Installing the app on each additional organization resolves this, and no change is needed in Agent Authority.
Cause
The SecureAuth GitHub connector is a GitHub App named SecureAuth AI Gateway, developed by SecureAuthCorp. It is not a GitHub OAuth app, and the difference determines what a connection can reach:
- Each user authorizes the app with their own personal GitHub account. A GitHub organization is not an account that anyone signs in as, so a connection that shows the user's personal account is working as designed.
- The token a GitHub App issues for a user only reaches the accounts and organizations where the app is installed. When the app is installed on only one organization, every other organization is out of reach apart from its public repositories, even for a user who is a member of it.
- Agent Authority does not need an organization picker. Every GitHub tool takes the organization as a parameter, owner, on each call, so one connection can work with any organization the app is installed on.
The SecureAuth AI Gateway app is public and can be installed on any personal account or organization, so reaching another organization is a setup step on GitHub, not a product limitation.
Resolution:
To resolve this:
- Sign in to GitHub, open https://github.com/apps/secureauth-ai-gateway, and select Install, or Configure if the app is already installed on another account.
- Under Where do you want to install SecureAuth AI Gateway?, choose the organization.
- Select All repositories or Only select repositories, and then confirm. If the user is an owner of the organization, the app is installed immediately. If the user is a member but not an owner, GitHub sends an installation request instead, and an organization owner approves it under the organization's Settings > GitHub Apps.
- Repeat steps 1 to 3 for each additional organization.
- Name the organization in the request to the agent, for example "list open pull requests in <organization>/<repository>". There is no need to disconnect or reconnect in Agent Authority, because the existing connection reaches every organization the app is installed on.
If an organization does not appear in the list in step 2, the GitHub account the user is signed in with is not a member of that organization. Have an organization owner add the account, or sign in with an account that is a member.
Special Considerations
Choosing All repositories in step 3 includes every repository in the organization, including repositories created later. A connection can still only reach repositories that the connected user can access in GitHub, but within that, an agent can act on any repository the installation covers. Choose Only select repositories when agents should be limited to specific repositories.
To limit which organizations an agent can use, either install the app only on the organizations that agents should reach, or add a policy rule in Agent Authority with a condition on the owner argument of the GitHub tools.
An installation request from a member who is not an owner waits until an owner approves it. Until then the organization stays out of reach, so confirm with an owner that the request has been approved if access does not appear.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
0 comments
Please sign in to leave a comment.