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

Ingress API version is end-of-live #255

Open
kathodion opened this issue Mar 3, 2023 · 9 comments
Open

Ingress API version is end-of-live #255

kathodion opened this issue Mar 3, 2023 · 9 comments

Comments

@kathodion
Copy link

kathodion commented Mar 3, 2023

Hi
Had problems deploying the file https://github.com/Keyfactor/ejbca-containers/blob/master/deployment-examples/kubernetes/microk8s/ejbca-ce-with-ingress-and-mariadb.yaml
to Azure K8 cluster. The problem occurred around the API version v1beta. Tried to migrate the code to v1 stable, but it needs further testing (I am quite new to K8).

Here is my version

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ejbca-ingress
  namespace: ejba-pki-01
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    # nginx.ingress.kubernetes.io/use-regex annotation: "false"
    # Managing the instance with a client TLS certificate will require additional configuration
    #nginx.ingress.kubernetes.io/auth-tls-verify-client: "optional"
    #nginx.ingress.kubernetes.io/auth-tls-secret: "default/ca-secret"
    #nginx.ingress.kubernetes.io/auth-tls-verify-depth: "3"
    #nginx.ingress.kubernetes.io/auth-tls-pass-certificate-to-upstream: "true"
    # Hook
    # nginx.ingress.kubernetes.io/configuration-snippet: |
    #   proxy_set_header SSL_CLIENT_CERT $ssl_client_cert;
    # AJP is available in nginx-ingress-controller:0.18.0 and later
    # nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
    # nginx.ingress.kubernetes.io/affinity: "cookie"
    # nginx.ingress.kubernetes.io/session-cookie-name: "route"
    # nginx.ingress.kubernetes.io/session-cookie-hash: "sha1"
    # nginx.ingress.kubernetes.io/session-cookie-expires: "1800"
    # nginx.ingress.kubernetes.io/session-cookie-max-age: "1800"
    ingressclass.kubernetes.io/is-default-class: "true"
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  # Ensure that this hostname is resolvable for example in /etc/hosts if you are doing local testing
  - http:
      paths:
      - path: /ejbca
        pathType: Prefix
        backend:
          service:
            name: ejbca-backend-service
            port:
              number: 8082
@primetomas
Copy link
Collaborator

Did you get it working? Can you make a pull request with that update?

@kathodion
Copy link
Author

Did you get it working? Can you make a pull request with that update?

Deployment worked, but there is an issue accessing the front end. Will update the issue after I fix it.

@kathodion
Copy link
Author

URL to the admin portal

image

Response I am getting back

image

--

Question

"Additionally this example assumes that pki.primekey.example to be resolvable from the Ingress." Where should the address point to, or to where should it resolve?

does the readme intend to deploy the app locally? And if yes, what needs to be changed to deploy it to a public cloud?

@primetomas
Copy link
Collaborator

do you use https:// in the url and not http://?
Looking at the error message that would be what I expect, i.s. using wrong protocol.

@kathodion
Copy link
Author

kathodion commented Mar 17, 2023

I got it running but I cannot create a new branch to upload the changes. Can you help me here?

Also I get this message
image

How can I upgrade to this RA UI version?

@primetomas
Copy link
Collaborator

To create a new branch and a pull request do the following:

  • Fork the Keyfactor repository to your own repo with the "Fork" button on the top right.
  • Create a branch in your repository, you can do that in the GitHub UI as well by clicking Branches->New Branch
  • Check out your own repository and make changes there, in the new branch you created.
  • Push your changes to your own repository branch
  • Now in the GitHub repo there should appear a button "create pull request"
  • That PR will appear on our repo and we can review it and merge it

@primetomas
Copy link
Collaborator

The RA UI is there, in the EJBCA Admin UI there is link to it at the bottom left menu.

@primetomas
Copy link
Collaborator

Hi @kathodion : if you don't want, or can't, create a PR. Just upload your version here and we will take care of it.

@primetomas
Copy link
Collaborator

Hi @kathodion , if you don't know how to create a PR, you can send me the files as well and I can handle it.

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

2 participants