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

Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed (AWS EKS) #1206

Closed
rowi1de opened this issue May 9, 2023 · 5 comments
Labels

Comments

@rowi1de
Copy link

rowi1de commented May 9, 2023

I'm currently facing the following issue when using sealed-secrets + https://github.com/bakito/sealed-secrets-web.
As sealed-secret-web is using sealed-secrets API, maybe you guys have an idea:

2023/05/09 07:22:56 Connection to sealed secrets with (Namespace: infrastructure / ServiceName: sealed-secrets)
2023/05/09 07:22:56 Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed
  • sealed-secrets 2.8.1
    with:
 repoURL: 'https://bitnami-labs.github.io/sealed-secrets'
  targetRevision: 2.8.1
  helm:
    values: |-
      ingress:
        enabled: true
        hostname: sealed-secrets.something.com
        pathType: Prefix
        ingressClassName: "nginx"
        annotations:
          nginx.ingress.kubernetes.io/auth-type: basic
          # name of the secret that contains the user/password definitions
          nginx.ingress.kubernetes.io/auth-secret: sealed-secrets-cert-basic-auth
          # message to display with an appropriate context why the authentication is required
          nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - sealed-secrets-cert'

destination:
  server: 'https://kubernetes.default.svc'
  namespace: infrastructure
syncPolicy:
  automated:
    prune: true
    selfHeal: true
  syncOptions:
    - CreateNamespace=true
  • sealed-secrets-web 3.0.7
project: infrastructure
source:
  repoURL: 'https://charts.bakito.net'
  targetRevision: 3.0.*
  helm:
    values: |
      sealedSecrets:
        namespace: infrastructure
        serviceName: sealed-secrets
        # certURL: "http://sealed-secrets.infrastructure.svc.cluster.local:8080/v1/cert.pem" # https://github.com/bitnami-labs/sealed-secrets/issues/1206
      disableLoadSecrets: true
  chart: sealed-secrets-web
destination:
  server: 'https://kubernetes.default.svc'
  namespace: infrastructure
syncPolicy:
  automated:
    prune: true
    selfHeal: true
  syncOptions:
    - CreateNamespace=true

The namespace & service mentioned in the error exist Namespace: infrastructure / ServiceName: sealed-secrets
any hints for further debugging welcome

@rowi1de rowi1de added the triage Issues/PRs that need to be reviewed label May 9, 2023
@rowi1de
Copy link
Author

rowi1de commented May 10, 2023

Overrding the certUrl with the cluster internal DNS fixes it, but this should not be required:
certURL: "http://sealed-secrets.infrastructure.svc.cluster.local:8080/v1/cert.pem"

I have the feeling something is wrong with service port / name
https://github.com/bitnami-labs/sealed-secrets/blob/67c2699797425dff2d39f550b42b1782d2ba406e/pkg/kubeseal/kubeseal.go#LL120C2-L120C40

@rowi1de rowi1de changed the title [Question] Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed May 10, 2023
@rowi1de
Copy link
Author

rowi1de commented May 12, 2023

Same error happens when using kubeseal --validate --cert $SEALED_SECRETS_CERT --controller-namespace infrastructure --controller-name sealed-secrets or kubeseal --fetch-cert --controller-namespace infrastructure --controller-name sealed-secrets

@rowi1de
Copy link
Author

rowi1de commented May 13, 2023

@rowi1de rowi1de closed this as completed May 14, 2023
@rowi1de rowi1de reopened this Jun 1, 2023
@rowi1de rowi1de changed the title Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed Setup sealer: cannot fetch certificate: error trying to reach service: Address is not allowed (AWS EKS) Jun 1, 2023
@alvneiayu alvneiayu removed the triage Issues/PRs that need to be reviewed label Jun 23, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2023

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the Stale label Jul 9, 2023
@github-actions
Copy link
Contributor

Due to the lack of activity in the last 7 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants