Skip to content
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

Hosting local catalogs on github for TektonHub #1979

Open
martinmlouis opened this issue Sep 8, 2024 · 0 comments
Open

Hosting local catalogs on github for TektonHub #1979

martinmlouis opened this issue Sep 8, 2024 · 0 comments

Comments

@martinmlouis
Copy link

martinmlouis commented Sep 8, 2024

Hello,
I am trying to host tektonhub locally and running into issues.
I have deployed it as per https://github.com/tektoncd/hub/blob/main/docs/DEPLOYMENT.md
I have 3 ingresses 1. for ui 2. for auth 3. for api
First the ingress said it was giving cors issue and I solved it. Second it is saying that "could not find a matching session for this request" and I used sticky k8s session annotations it did not solve it and gave the same error.

My configs:

apiVersion: v1
kind: ConfigMap
metadata:
name: tekton-hub-ui
data:
API_URL: 'http://tektonapi.35.212.92.161.nip.io'
API_VERSION: 'v1'
AUTH_BASE_URL: 'http://tektonauth.35.212.92.161.nip.io'
REDIRECT_URI: 'http://tektonauth.35.212.92.161.nip.io/auth/github/callback'
CUSTOM_LOGO_MEDIA_TYPE: 'image/png'
CUSTOM_LOGO_BASE64_DATA: ''

apiVersion: v1
kind: Secret
metadata:
name: tekton-hub-api
type: Opaque
stringData:
GH_CLIENT_ID: 'Ov23li8x1dRtxalci5T1'
GH_CLIENT_SECRET: '3107905da62cb18f906cf46ba826b8af3ffac97d'
GHE_URL: ''
GL_CLIENT_ID: ''
GL_CLIENT_SECRET: ''
GLE_URL: ''
BB_CLIENT_ID: ''
BB_CLIENT_SECRET: ''
JWT_SIGNING_KEY: 'myrandomkey'
ACCESS_JWT_EXPIRES_IN: '365d'
REFRESH_JWT_EXPIRES_IN: '365d'
AUTH_BASE_URL: 'http://tektonauth.35.212.92.161.nip.io'
.......
.......

SCOPES: |
- name: agent:create
users: [vinamra28, piyush-garg, pratap0007, puneetpunamiya, sm43, sthaha, vdemeester, martinmlouis]
- name: catalog:refresh
users: [vinamra28, piyush-garg, pratap0007, puneetpunamiya, sm43, sthaha, vdemeester, martinmlouis]
- name: config:refresh
users: [vinamra28, piyush-garg, pratap0007, puneetpunamiya, sm43, sthaha, vdemeester, martinmlouis]

Git hub details:
Homepage URL: http://tektonhub.35.212.92.161.nip.io
Authorization callback : 'http://tektonauth.35.212.92.161.nip.io/auth/github/callback'

Ingress:
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Access-Control-Allow-Origin: $http_origin";
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Range, Authorization, X-Project-Key"
nginx.ingress.kubernetes.io/cors-max-age: "1728000"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
nginx.ingress.kubernetes.io/cors-expose-headers: "*, X-Project-Key"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
nginx.ingress.kubernetes.io/session-cookie-path: /
nginx.ingress.kubernetes.io/session-cookie-samesite: "Strict"
spec:

We would like to have our own TektonHub at work for self serving support model to our developers.
I appreciate any help or insight to get this working
Thanks,
Martin Lourduswamy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant