Git Product home page Git Product logo

cloudflare-dns-auto-updater-go's Introduction

Hello there

👨‍💻 About me

I am a tech-enthusiast, code-writing, LEGO-assembler nerd

  • 🌞 Currently working as a Junior Dev at UMH Systems GmbH 🏭
  • 👀 I'm looking for new and interesting opportunities
  • 🥅 2022 Goals: improve my programming skills and DevOps knowledge
  • 🗿 Fun fact: I love aeronautics and astrophysics 🚀




📡 Connect with me:


LinkedIn Website


🛠 Languages and Tools:

C#  CSS  HTML  Javascript  NodeJS  Bash 

Docker  K3S  Kubernetes 

Vim  Visual Studio  VSCode 

Git  GitHub 

SQL Server  MySql  PostgreSQL 

Linux  Windows 


Metrics


Jokes Card

cloudflare-dns-auto-updater-go's People

Contributors

daruzero avatar dependabot[bot] avatar

Watchers

 avatar

cloudflare-dns-auto-updater-go's Issues

[Bug]: logs are messy

What happened?

Logs are all over the place and hard to read

What did you expect to happen?

Logs should be easy to read

How can we reproduce this issue?

Run the container

Logs

Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info @timestamp=2023-02-10T23:32:23.901Z Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info @timestamp=2023-02-10T23:32:23.901Z Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info Starting Cloudflare DNS Auto Updater | Starting Cloudflare DNS Auto Updater | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] ecs.version=1.6.0
Loading configuration | Loading configuration | log.level=info Loading configuration | Loading configuration | log.level=info @timestamp=2023-02-10T23:32:23.901Z Loading configuration | Loading configuration | log.level=info Loading configuration | Loading configuration | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] Loading configuration | Loading configuration | log.level=info Loading configuration | Loading configuration | log.level=info @timestamp=2023-02-10T23:32:23.901Z Loading configuration | Loading configuration | log.level=info Loading configuration | Loading configuration | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] ecs.version=1.6.0
Creating new Dns struct | Creating new Dns struct | log.level=info Creating new Dns struct | Creating new Dns struct | log.level=info @timestamp=2023-02-10T23:32:23.901Z Creating new Dns struct | Creating new Dns struct | log.level=info Creating new Dns struct | Creating new Dns struct | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] Creating new Dns struct | Creating new Dns struct | log.level=info Creating new Dns struct | Creating new Dns struct | log.level=info @timestamp=2023-02-10T23:32:23.901Z Creating new Dns struct | Creating new Dns struct | log.level=info Creating new Dns struct | Creating new Dns struct | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] ecs.version=1.6.0
Getting current ip | Getting current ip | log.level=info Getting current ip | Getting current ip | log.level=info @timestamp=2023-02-10T23:32:23.901Z Getting current ip | Getting current ip | log.level=info Getting current ip | Getting current ip | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] Getting current ip | Getting current ip | log.level=info Getting current ip | Getting current ip | log.level=info @timestamp=2023-02-10T23:32:23.901Z Getting current ip | Getting current ip | log.level=info Getting current ip | Getting current ip | log.level=info @timestamp=2023-02-10T23:32:23.901Z log.origin=[object Object] ecs.version=1.6.0
2023/02/10 23:32:23 Log level: info
�     �

Screenshots

No response

App Version

1.0.0

Additional Context

No response

[Feature]: Better email format

Describe your feature request

The email body could be nicer. Right now is like this:

Your IP address has changed to <new-ip> for the following record(s):
<zone-id>
        - <record-names>

The should be the name. would look nicer if bold

Is this a breaking change?

No

Describe possible alternatives

No response

Additional Context

No response

[Bug]: Error updating records

What happened?

Unable to update records because the request body is invalid

What did you expect to happen?

Should update records

How can we reproduce this issue?

Start the container

Logs

Error updating records. HTTP status code: 400. Response body: {"result":null,"success":false,"errors":[{"code":9207,"message":"Request body is invalid."}],"messages":[]} | log.level=fatal @timestamp=2023-02-11T18:55:12.934Z log.origin={"file.name":"build/dns.go","file.line":268} ecs.version=1.6.0

Screenshots

No response

App Version

1.0.0

Additional Context

No response

[Bug]: failed tls check for public IP API

What happened?

Container fails when getting the public ip because it fails to validate the x509 certificate

What did you expect to happen?

To correctly fetch the current public ip

How can we reproduce this issue?

  1. Run the container

Logs

log.level":"fatal","@timestamp":"2023-02-10T23:32:26.150Z","log.origin":{"file.name":"build/dns.go","file.line":137},"message":"Get \"https://api.ipify.org\": tls: failed to verify certificate: x509: certificate signed by unknown authority","ecs.version":"1.6.0"}

Screenshots

No response

App Version

1.0.0

Additional Context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.