Are you experiencing an issue with...
:beetle: Description
I have the env var BITBUCKET_SERVER_ORIGINS=https://domain.com/bitbucket
This is our internal proxy server. And there is no way I can access this without /bitbucket.
Is there a way to solve this problem?
Hi! Have you tried setting the env var to just the origin part? IIRC the origin env var is only used to validate the security check on the token, not for the request.
IIRC the origin env var is only used to validate the security check on the token, not for the request.
That's correct. This is basically just defining which domains you'll allow your self-hosted Shields server to issue authenticated requests to in order to avoid any exfil of your configure creds.
You'll probably want to have something like this in your config:
BITBUCKET_SERVER_ORIGINS=https://my-private-bitbucket-server-domain.com
Then for your actual badges, you can specify the full url to your instance:
https://your-self-hosted-shields-server-url/bitbucket/pr/foo/bar?server=https://my-private-bitbucket-server-domain.com/bitbucket
This would be a great addition to the docs.
@axi92 any chance you'd be up for improving that in a PR?
Ah ok I understand. That is the server that is on the whitelist for sending credentials to.
What is missing in the docs? @paulmelnikow
As far as I see if I would have read the docs I could understand how it is meant to be xD
I guess I thought you had looked at the docs and that it wasn鈥檛 clear you could still use a deep link under that domain. Maybe they are good enough as they are!
Most helpful comment
That's correct. This is basically just defining which domains you'll allow your self-hosted Shields server to issue authenticated requests to in order to avoid any exfil of your configure creds.
You'll probably want to have something like this in your config:
BITBUCKET_SERVER_ORIGINS=https://my-private-bitbucket-server-domain.com
Then for your actual badges, you can specify the full url to your instance:
https://your-self-hosted-shields-server-url/bitbucket/pr/foo/bar?server=https://my-private-bitbucket-server-domain.com/bitbucket