pier-oliviert / phonebook

Manage DNS Records with Kubernetes
https://pier-oliviert.github.io/phonebook/
Apache License 2.0
59 stars 0 forks source link

desec provider not working #20

Open WladyX opened 3 days ago

WladyX commented 3 days ago
apiVersion: se.quencer.io/v1alpha1
kind: DNSRecord
metadata:
  labels:
    argocd.argoproj.io/instance: k8s-blue-cc-phonebook
  name: test-pb
  namespace: phonebook
spec:
  name: test-pb
  recordType: A
  targets:
    - 127.0.0.1
  ttl: 60
  zone: myzone.com
Name:         test-pb
Namespace:    phonebook
Labels:       argocd.argoproj.io/instance=k8s-blue-cc-phonebook
Annotations:  <none>
API Version:  se.quencer.io/v1alpha1
Kind:         DNSRecord
Metadata:
  Creation Timestamp:  2024-11-01T19:56:27Z
  Finalizers:
    phonebook.se.quencer.io/finalizer
  Generation:        1
  Resource Version:  90971193
  UID:               cda84e9e-e28b-45d9-9e87-178c35ec5e81
Spec:
  Name:         test-pb
  Record Type:  A
  Targets:
    127.0.0.1
  Ttl:   60
  Zone:  myzone.com
Status:
  Conditions:
    Last Transition Time:  2024-11-01T19:56:27Z
    Reason:                Integration found: desec
    Status:                Completed
    Type:                  Integration
    Last Transition Time:  2024-11-01T19:56:27Z
    Reason:                PB-DESEC-#0002: Unable to create record -- 405: body: {"detail":"Method \"POST\" not allowed."}
    Status:                Error
    Type:                  Provider
Events:                    <none>
apiVersion: se.quencer.io/v1alpha1
kind: DNSIntegration
metadata:
  labels:
    argocd.argoproj.io/instance: k8s-blue-cc-phonebook
  name: desec
spec:
  provider:
    name: desec
  secretRef:
    keys:
      - key: DESEC_TOKEN
        name: DESEC_TOKEN
    name: phonebook-secrets
  zones:
    - myzone.com
pier-oliviert commented 3 days ago

B-DESEC-#0002: Unable to create record -- 405: body: {"detail":"Method \"POST\" not allowed."}

I'm not familiar with desec, and the code seems pretty straight forward. @ainsey11 do you have an idea why this would happen?

I could try over the weekend to create an account there and see what's up.

pier-oliviert commented 5 hours ago

I found the fix for desec. I'm probably going to make a new release for it, but it also includes some breaking changes that will make multi-provider DNS a lot better.

For that reason, it might take a bit more for me to wrap this up. I believe it should all be released in a couple of days.

ainsey11 commented 3 hours ago

Ah you beat me to it!

Be intetested to see what the issue was :)