baton-bitbucket-datacenter
is a connector for Bitbucket built using the Baton SDK. It communicates with the Bitbucket User provisioning API to sync data about user groups, users, projects and their repositories.
Check out Baton to learn more about the project in general.
To work with the connector, you can use basic authentication, with a username and password.
Each one of these methods are configurable with permissions (Read, Write, Admin) to access the Bitbucket API. The permissions required for this connector are:
- Read:
Group
,User
,Project
,Repository
- Admin:
Project
,Repository
brew install conductorone/baton/baton conductorone/baton/baton-bitbucket-datacenter
BATON_BITBUCKETDC_USERNAME=bitbucketdc-username BATON_BITBUCKETDC_PASSWORD=bitbucketdc-password BATON_BITBUCKETDC_BASE_URL=bitbucketdc-baseurl baton-bitbucket-datacenter
baton resources
docker run --rm -v $(pwd):/out -e BATON_BITBUCKETDC_USERNAME=bitbucketdc-username BATON_BITBUCKETDC_PASSWORD=bitbucketdc-password BATON_BITBUCKETDC_BASE_URL=bitbucketdc-baseurl ghcr.io/conductorone/baton-bitbucket-datacenter:latest -f "/out/sync.c1z"
docker run --rm -v $(pwd):/out ghcr.io/conductorone/baton:latest -f "/out/sync.c1z" resources
go install github.com/conductorone/baton/cmd/baton@main
go install github.com/conductorone/baton-bitbucket-datacenter/cmd/baton-bitbucket-datacenter@main
BATON_BITBUCKETDC_USERNAME=bitbucketdc-username BATON_BITBUCKETDC_PASSWORD=bitbucketdc-password BATON_BITBUCKETDC_BASE_URL=bitbucketdc-baseurl baton-bitbucket-datacenter
baton resources
baton-bitbucket-datacenter
will pull down information about the following Bitbucket resources:
- Groups
- Users
- Projects
- Repositories
We started Baton because we were tired of taking screenshots and manually building spreadsheets. We welcome contributions, and ideas, no matter how small -- our goal is to make identity and permissions sprawl less painful for everyone. If you have questions, problems, or ideas: Please open a Github Issue!
See CONTRIBUTING.md for more details.
baton-bitbucket-datacenter
Usage:
baton-bitbucket-datacenter [flags]
baton-bitbucket-datacenter [command]
Available Commands:
capabilities Get connector capabilities
completion Generate the autocompletion script for the specified shell
help Help about any command
Flags:
--bitbucketdc-baseurl string required: Bitbucket Data Center server. example http://localhost:7990. ($BATON_BITBUCKETDC_BASEURL) (default "http://localhost:7990")
--bitbucketdc-licensed-user-groups strings List of groups that are considered licensed users in Bitbucket Data Center ($BATON_BITBUCKETDC_LICENSED_USER_GROUPS)
--bitbucketdc-password string Application password used to connect to the BitBucketDC API. ($BATON_BITBUCKETDC_PASSWORD)
--bitbucketdc-token string HTTP access tokens in Bitbucket Data Center ($BATON_BITBUCKETDC_TOKEN)
--bitbucketdc-username string Username of administrator used to connect to the BitBucketDC API. ($BATON_BITBUCKETDC_USERNAME)
--client-id string The client ID used to authenticate with ConductorOne ($BATON_CLIENT_ID)
--client-secret string The client secret used to authenticate with ConductorOne ($BATON_CLIENT_SECRET)
-f, --file string The path to the c1z file to sync with ($BATON_FILE) (default "sync.c1z")
-h, --help help for baton-bitbucket-datacenter
--log-format string The output format for logs: json, console ($BATON_LOG_FORMAT) (default "json")
--log-level string The log level: debug, info, warn, error ($BATON_LOG_LEVEL) (default "info")
-p, --provisioning This must be set in order for provisioning actions to be enabled ($BATON_PROVISIONING)
--skip-full-sync This must be set to skip a full sync ($BATON_SKIP_FULL_SYNC)
--skip-repos Skip repositories ($BATON_SKIP_REPOS)
--ticketing This must be set to enable ticketing support ($BATON_TICKETING)
-v, --version version for baton-bitbucket-datacenter
Use "baton-bitbucket-datacenter [command] --help" for more information about a command.