Connecting Bitbucket to Chariot
This guide explains how to connect your Bitbucket organization to Chariot, allowing you to monitor your repositories for security vulnerabilities and sensitive data exposure.
Prerequisites
Before you begin, ensure you have:
- Admin access to your Bitbucket organization
- Permission to create OAuth consumers in Bitbucket
- Access to your Chariot account
Option 1: Install the Chariot Bitbucket App (Recommended)
The easiest way to connect Bitbucket to Chariot is by installing our Bitbucket app:
- Log into Chariot
- Navigate to Integrations
- Find and click on "Bitbucket" in the Source Code Managers section
- Click the "Install Bitbucket App" button
- You'll be redirected to Bitbucket to authorize the installation
- Review and grant the necessary permissions
- Once approved, you'll be redirected back to Chariot
The app requires the following permissions:
- Read access to repositories
- Read access to pull requests
- Read access to repository webhooks
Option 2: Manual Configuration with OAuth
If you prefer to set up the integration manually or need more granular control, you can use OAuth:
- Create an OAuth Consumer in Bitbucket:
- Go to Bitbucket Settings → OAuth consumers
- Click "Add consumer"
- Fill in the following details:
- Name: Chariot
- Callback URL:
https://chariot.praetorian.com/hello
- Permissions:
- Repository: Read
- Pull requests: Read
- Webhooks: Read
- After creating the OAuth consumer, you'll receive:
- A Client ID (Key)
- A Client Secret
- In Chariot:
- Navigate to Integrations
- Find and click on "Bitbucket"
- Enter your OAuth token
- Provide your Bitbucket organization URL (e.g.,
https://bitbucket.org/your-organization
) - Click "Connect"
Verifying the Connection
To verify that your connection is working:
- Navigate to Assets in Chariot
- Look for repositories from your Bitbucket organization
- Check the Integrations page to see your connected Bitbucket account
Troubleshooting
Common issues and solutions:
- Unable to Connect: Verify your OAuth token has the correct permissions
- No Repositories Showing: Check that your organization URL is correct
- Authentication Errors: Ensure your OAuth token is valid and hasn't expired
If you continue to experience issues, contact Chariot Support.
Multiple Organizations
You can connect multiple Bitbucket organizations to Chariot. Simply repeat the connection process for each organization you want to monitor.
Managing Your Connection
To manage your Bitbucket connection:
- Go to Settings → Integrations
- Find your Bitbucket connection
- Use the options menu (⋮) to:
- View connection details
- Update settings
- Remove the connection
Additional Resources
Need help? Contact our support team for assistance.