Closed aleon1220 closed 4 years ago
I have an update on this: Thank God Bitbucket Oauth is working now in my 2 Minnaker instances. Here is what i did:
I found 2 distinct set of files Ubuntu system spinnaker config files and Halyard Spinnaker config files I modified both sets of files whenever required
For Ubuntu system spinnaker config files
1. vim /etc/spinnaker/templates/profiles/front50-local.yml
spinnaker.s3.versioning: false
2. vim /etc/spinnaker/templates/profiles/settings-local.js
window.spinnakerSettings.feature.kustomizeEnabled = true;
3. vim /etc/spinnaker/templates/profiles/gate-local.yml
server:
servlet:
context-path: /api/v1
tomcat:
protocolHeader: X-Forwarded-Proto
remoteIpHeader: X-Forwarded-For
internalProxies: .*
httpsServerPort: X-Forwarded-Port
security:
oauth2:
client:
userAuthorizationUri: https://bitbucket.org/site/oauth2/authorize
accessTokenUri: https://bitbucket.org/site/oauth2/access_token
scope: ""
resource:
userInfoUri: https://api.bitbucket.org/2.0/user
userInfoMapping: # Used to map the userInfo response to our User
email: email
username: username
4. vim /etc/spinnaker/templates/service-settings/gate.yml
healthEndpoint: /api/v1/health
For Halyard Spinnaker config files (inside Halyard Pod) 1. vi ~/.hal/default/profiles/gate-local.yml
server:
servlet:
context-path: /api/v1
tomcat:
protocolHeader: X-Forwarded-Proto
remoteIpHeader: X-Forwarded-For
internalProxies: .*
httpsServerPort: X-Forwarded-Port
security:
oauth2:
client:
userAuthorizationUri: https://bitbucket.org/site/oauth2/authorize
accessTokenUri: https://bitbucket.org/site/oauth2/access_token
scope: ""
resource:
userInfoUri: https://api.bitbucket.org/2.0/user
userInfoMapping: # Used to map the userInfo response to our User
email: email
username: username
The issue has been resolved in the OSS project. Refer to my comment above for more details.
The issue has been resolved in the OSS project. Refer to my comment above for more details.
I am running minnaker in AWs EC2.
Basically i have followed steps from https://www.spinnaker.io/setup/security/authentication/oauth/#bring-your-own-provider
In the step to "manually set the redirect_uri for Gate"
hal config security authn oauth2 edit --pre-established-redirect-uri https://my-real-gate-address.com:8084/login
ismy-real-gate-address.com
my public IP??Here is detail to my configs: hal config
~/.hal/default/profiles/settings-local.js
~/.hal/default/profiles/gate-local.yml
But interestingly enough take a look at the gate.yml inside the Gate Pod It has BASIC security still enabled. how do i disable it?
/opt/spinnaker/config/gate.yml
In Spinnaker UI it always shows as anonymous! Please help