kind: ConfigMap
apiVersion: v1
metadata:
  name: developer-hub-rhtap-app-config
  namespace: rhtap
  uid: e174d5e9-90a9-4f3c-a304-ca3e6c70f786
  resourceVersion: '66379'
  creationTimestamp: '2024-10-02T16:42:30Z'
  labels:
    app.kubernetes.io/managed-by: Helm
    rhdh.redhat.com/ext-config-sync: 'true'
  annotations:
    meta.helm.sh/release-name: rhtap-dh
    meta.helm.sh/release-namespace: rhtap
    rhdh.redhat.com/backstage-name: developer-hub
  managedFields:
    - manager: rhtap-cli
      operation: Update
      apiVersion: v1
      time: '2024-10-02T16:42:30Z'
      fieldsType: FieldsV1
      fieldsV1:
        'f:data': {}
        'f:metadata':
          'f:annotations':
            .: {}
            'f:meta.helm.sh/release-name': {}
            'f:meta.helm.sh/release-namespace': {}
            'f:rhdh.redhat.com/backstage-name': {}
          'f:labels':
            .: {}
            'f:app.kubernetes.io/managed-by': {}
            'f:rhdh.redhat.com/ext-config-sync': {}
    - manager: Mozilla
      operation: Update
      apiVersion: v1
      time: '2024-10-02T17:15:41Z'
      fieldsType: FieldsV1
      fieldsV1:
        'f:data':
          'f:app-config.rhtap.yaml': {}
data:
  app-config.rhtap.yaml: |
    app:
      title: Red Hat Developer Hub
      baseUrl: ${BACKEND_URL}
    argocd:
      appLocatorMethods:
        - type: 'config'
          instances:
            - name: default
              url: ${ARGOCD__URL}
              token: ${ARGOCD__API_TOKEN}
      password: ${ARGOCD__PASSWORD}
      username: ${ARGOCD__USER}
      waitCycles: 25
    auth:
      environment: production
      providers:
        github:
          production:
            clientId: ${GITHUB__APP__CLIENT__ID}
            clientSecret: ${GITHUB__APP__CLIENT__SECRET}
    backend:
      auth:
        keys:
          - secret: ${BACKEND_SECRET}
      baseUrl: ${BACKEND_URL}
      cors:
        origin: ${BACKEND_URL}
    catalog:
      locations:
        - type: url
          target: ${DEVELOPER_HUB__CATALOG__URL}
      rules:
        - allow:
          - Component
          - System
          - Group
          - Resource
          - Location
          - Template
          - API
    integrations:
      github:
        - host: ${GITHUB__HOST}
          apps:
            - appId: ${GITHUB__APP__ID}
              clientId: ${GITHUB__APP__CLIENT__ID}
              clientSecret: ${GITHUB__APP__CLIENT__SECRET}
              webhookUrl: ${GITHUB__APP__WEBHOOK__URL}
              webhookSecret: ${GITHUB__APP__WEBHOOK__SECRET}
              privateKey: ${GITHUB__APP__PRIVATE_KEY}
    proxy:
      endpoints:
        '/quay/api':
          target: ${QUAY__URL}
          headers:
            X-Requested-With: 'XMLHttpRequest'
            Authorization: 'Bearer ${QUAY__API_TOKEN}'
          changeOrigin: true
          # Change to "false" in case of using self hosted quay instance with a self-signed certificate
          secure: true
    quay:
      # The UI url for Quay, used to generate the link to Quay
      uiUrl: ${QUAY__URL}
    signInPage: github
    techdocs:
      builder: 'local'
      generator:
        runIn: 'local'
      publisher:
        type: 'local'
