-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
drone not able to auth via oauth2 #6939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I do not know for sure for |
All works fine now |
I'm still experiencing this issue:
Redirects are working fine. Any ideas? |
pump |
@sleepycodernotes IMHO this was an issue that should be fixed by now. https://github.com/drone/drone/issues/2704#issuecomment-552084152 / #6883 (comment) |
Using latest images : gitea/drone/treafik/portainer |
|
|
|
In that case I can't help you. Because you need to open port So to summarize: no things you mentioned seem to be related to a gitea issue here. |
I'm having a similar issue, which i'm not able to work around.
It seems like drone is not able to resolve the internal domain for gitea from within the container in the last step. drone-server:
image: drone/drone:latest
volumes:
- ./drone-data:/var/lib/drone/
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_SERVER_HOST=drone.<internaldomain>
- DRONE_SERVER_PROTO=https
- DRONE_LOGS_DEBUG=true
#GITEA Settings
- DRONE_GITEA_SERVER=https://git.<internaldomain>
- DRONE_GITEA_CLIENT_ID=ers
- DRONE_GITEA_CLIENT_SECRET=abc
- DRONE_RPC_SECRET=def
labels:
- "traefik.enable=true"
# Router to forward Port 80 tto 443
- "traefik.http.routers.drone80.rule=Host(`drone.<internaldomain>`)"
- "traefik.http.routers.drone80.entrypoints=web"
- "traefik.http.routers.drone80.middlewares=httpsredirect"
- "traefik.http.middlewares.httpsredirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.httpsredirect.redirectscheme.permanent=true"
# Route which handles HTTPS Traffic
- "traefik.http.services.drone.loadbalancer.server.port=80"
- "traefik.http.services.drone.loadbalancer.server.scheme=http"
- "traefik.http.routers.drone.tls=true"
- "traefik.http.routers.drone.rule=Host(`drone.<internaldomain>`)"
- "traefik.http.routers.drone.entrypoints=websecure" And this one for Gitea gitea:
image: gitea/gitea:latest
environment:
- USER_UID=1000
- USER_GID=1000
- DOMAIN=git.<internaldomain>
- SSH_DOMAIN=git.<internaldomain>
restart: always
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
#- "3000:3000"
- "222:22"
labels:
- "traefik.enable=true"
# Router to forward Port 80 tto 443
- "traefik.http.routers.git80.rule=Host(`git.<internaldomain>`)"
- "traefik.http.routers.git80.entrypoints=web"
- "traefik.http.routers.git80.middlewares=httpsredirect"
- "traefik.http.middlewares.httpsredirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.httpsredirect.redirectscheme.permanent=true"
# Route which handles HTTPS Traffic
- "traefik.http.services.git.loadbalancer.server.port=3000"
- "traefik.http.services.git.loadbalancer.server.scheme=http"
- "traefik.http.routers.git.tls=true"
- "traefik.http.routers.git.rule=Host(`git.<internaldomain>`)"
- "traefik.http.routers.git.entrypoints=websecure" Is there anything else to consider? Edit: I could trace it down to internal DNS-Resolving not possible from the container. It seems I created a "chicken, egg" problem unresolvable (at least for me without deep knowledge of docker networking internals). |
drone:latest can login to gitea:latest, i'm create app in gitea oauth2 screnn and set env varaibles for drone, but when i'm authorize drone i get error:
Login Failed. unauthorized_client: client is not authorized
The text was updated successfully, but these errors were encountered: