Open noorul opened 1 year ago
The proxy isn't currently open source, but it's something we've talked about... The first step would be running the idea by the business/product/legal/security teams to get their perspective, and frankly we just haven't had the engineering bandwidth to even start those discussions yet.
At worst case, since you're running it through the CLI, you could try doing TCP dump to see what is being sent over the wire to BitBucket and then manually check whether that matches the creds you've got in the config file, as well as confirm those creds are legit if you run the API calls yourself outside of :dependabot: .
@jeffwidman I already intercepted the request and found that it uses username
and password
fields to form basic auth. But our bitbucket server does not support basic auth instead it expects a bearer token. I tried token
field but it is ignored. Is there a way to tell the proxy that it has to use Bearer
auth instead of Basic
and use token from a field? I wonder how this works for api.github.com.
This will probably require further investigation from our side. I don't control where that will fit in the planning/prioritization, but I will make sure those who do see this.
What version of BitBucket server are you using? And is this a privately hosted BitBucket server or BitBucket cloud?
This is the Bitbucket Server v8.4.1 for which I implemented various interfaces in dependabot-core.
@jeffwidman This is kind of blocking me from progressing. Any help is appreciated.
Is there an existing issue for this?
I made changes to dependabot-core to support the bitbucket server source.
Everything is working fine. I started using dependabot cli to verify certain things a few days back and everything was working fine even without specifying the credentials, for example, input
But all of a sudden it stopped working. Now I get the following error:
I tried several combination of setting credentials for the type git_source but not helping, for example
I think the proxy is not passing credentials as bearer tokens. How to force a proxy to pass a bearer token?
Is the code available in public for ghcr.io/github/dependabot-update-job-proxy/dependabot-update-job-proxy:latest ?
I created an issue,https://github.com/dependabot/dependabot-core/issues/7736, for this in the CLI project but did not get any response.