1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2025-08-08 08:33:56 +02:00

Compare commits

..

56 Commits

Author SHA1 Message Date
renovate[bot]
22974603ab project: update aquasecurity/trivy to v0.61.1 2025-07-01 03:42:19 +00:00
dependabot[bot]
d3522e2c92 gems: update rubocop requirement from ~> 1.76.1 to ~> 1.77.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.76.1...v1.77.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.77.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-23 15:26:28 +02:00
dependabot[bot]
d92ee500c9 gems: update rubocop requirement from ~> 1.75.1 to ~> 1.76.1
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.75.1...v1.76.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-version: 1.76.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 20:39:22 +02:00
cn
0ddb87cc57 gems: update solargraph 2025-06-05 23:56:42 +02:00
cn
685854aad3 project: update Renovate config migration 2025-06-05 23:03:03 +02:00
renovate[bot]
3825f57521 docker: update alpine Docker tag to v3.22.0 2025-06-05 23:02:12 +02:00
dependabot[bot]
bf8d1d5bbe gems: update rubocop-rspec requirement from ~> 3.5.0 to ~> 3.6.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-version: 3.6.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 17:11:56 +02:00
renovate[bot]
4becd05aa9 project: update aquasecurity/trivy to v0.61.0 2025-04-01 12:51:44 +02:00
dependabot[bot]
60fdaf9a94 gems: update logger requirement from ~> 1.6.0 to >= 1.6, < 1.8
Updates the requirements on [logger](https://github.com/ruby/logger) to permit the latest version.
- [Release notes](https://github.com/ruby/logger/releases)
- [Commits](https://github.com/ruby/logger/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: logger
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 23:17:59 +02:00
dependabot[bot]
8ad610ceb3 gems: update rubocop requirement from ~> 1.74.0 to ~> 1.75.1
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.74.0...v1.75.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-31 23:17:26 +02:00
cn
0de309112b ci: ignore vulns on old rubies 2025-03-31 23:14:42 +02:00
dependabot[bot]
066afeb866 gems: update rubocop requirement from ~> 1.73.1 to ~> 1.74.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.73.1...v1.74.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 12:39:37 +01:00
841c6f8b79 project: less frequent trivy updates 2025-03-11 17:08:09 +01:00
renovate[bot]
12c7e8996c project: update aquasecurity/trivy to v0.60.0 2025-03-11 17:06:22 +01:00
dependabot[bot]
1055197b08 gems: update rubocop-rspec requirement from ~> 3.4.0 to ~> 3.5.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 19:52:02 +01:00
dependabot[bot]
08a705ed9a gems: update rubocop-rake requirement from ~> 0.6.0 to ~> 0.7.1
Updates the requirements on [rubocop-rake](https://github.com/rubocop/rubocop-rake) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rake/releases)
- [Changelog](https://github.com/rubocop/rubocop-rake/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rake/compare/v0.6.0...v0.7.1)

---
updated-dependencies:
- dependency-name: rubocop-rake
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 19:49:37 +01:00
renovate[bot]
927fec98f2 docker: update alpine Docker tag to v3.21.3 2025-02-27 23:09:29 +01:00
dependabot[bot]
1e36454711 gems: update rubocop requirement from ~> 1.71.0 to ~> 1.73.1
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.71.0...v1.73.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-27 23:08:36 +01:00
cn
a2e4480e0a project: don't run solargraph by default 2025-02-27 23:02:48 +01:00
cn
466dd30ff4 gem: support Ruby 3.4 2025-02-27 23:02:48 +01:00
cn
07a2be0e7d gems: ignore irrelevant vulns in dev dependency solargraph 2025-02-27 23:02:48 +01:00
renovate[bot]
c2eab91a17 project: update aquasecurity/trivy to v0.59.1 2025-02-06 15:33:20 +01:00
renovate[bot]
957e9d851d project: update aquasecurity/trivy to v0.59.0 2025-02-03 10:15:22 +01:00
dependabot[bot]
45b5a7fb5f gems: update rubocop-rspec requirement from ~> 3.3.0 to ~> 3.4.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.3.0...v3.4.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-02 21:13:29 +01:00
dependabot[bot]
8e0fc18f7c gems: update rubocop requirement from ~> 1.70.0 to ~> 1.71.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.70.0...v1.71.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-02 21:13:18 +01:00
dependabot[bot]
59c50396fb gems: update rubocop requirement from ~> 1.69.0 to ~> 1.70.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.69.0...v1.70.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-13 13:29:48 +01:00
renovate[bot]
d11dcc9b39 docker: update alpine Docker tag to v3.21.2 2025-01-09 10:04:27 +01:00
dependabot[bot]
9be5e929fb gems: update rubocop-rspec requirement from ~> 3.2.0 to ~> 3.3.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 16:26:00 +01:00
renovate[bot]
39796681ab docker: update alpine Docker tag to v3.21.0 2024-12-12 16:13:29 +01:00
dependabot[bot]
9a8b04085f gems: update rubocop requirement from ~> 1.68.0 to ~> 1.69.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.68.0...v1.69.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-02 13:31:00 +01:00
dependabot[bot]
90127eb00c gems: update rubocop requirement from ~> 1.67.0 to ~> 1.68.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.67.0...v1.68.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-14 22:25:59 +01:00
dependabot[bot]
b18c1d779f gems: update rubocop-rspec requirement from ~> 3.1.0 to ~> 3.2.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 12:15:27 +01:00
dependabot[bot]
9a77a511cd gems: update rubocop requirement from ~> 1.66.0 to ~> 1.67.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.66.0...v1.67.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-23 18:10:09 +02:00
dependabot[bot]
cfb5463bff gems: update rubocop-rspec requirement from ~> 3.0.1 to ~> 3.1.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.0.1...v3.1.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-11 11:46:33 +02:00
renovate[bot]
45e82dc86a docker: update alpine Docker tag to v3.20.3 2024-09-12 10:39:51 +02:00
dependabot[bot]
8656fd141b gems: update rubocop requirement from ~> 1.65.0 to ~> 1.66.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.65.0...v1.66.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-02 14:05:16 +02:00
renovate[bot]
b9d9f41913 project: update aquasecurity/trivy to v0.54.1 2024-08-01 16:12:13 +02:00
renovate[bot]
b88b109259 docker: update alpine Docker tag to v3.20.2 2024-07-25 08:52:21 +02:00
dependabot[bot]
80e91fcb5d gems: update rubocop requirement from ~> 1.64.0 to ~> 1.65.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.64.0...v1.65.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-15 14:17:02 +02:00
renovate[bot]
5d09b50b0e project: update aquasecurity/trivy to v0.53.0 2024-07-04 14:49:25 +02:00
renovate[bot]
e18bc8910c docker: update alpine Docker tag to v3.20.1 2024-06-27 10:15:08 +02:00
renovate[bot]
e145885b57 ci: update docker/build-push-action action to v6 2024-06-20 16:05:40 +02:00
dependabot[bot]
76c9208940 gems: update rubocop-rspec requirement from ~> 2.31.0 to ~> 3.0.1
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.31.0...v3.0.1)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 15:32:08 +02:00
dependabot[bot]
0ab9ace8c8 gems: update rubocop-rspec requirement from ~> 2.30.0 to ~> 2.31.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.30.0...v2.31.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 13:21:42 +02:00
renovate[bot]
27867076f3 project: update aquasecurity/trivy to v0.52.0 2024-06-06 10:50:20 +02:00
dependabot[bot]
8a270e37fc gems: update rubocop-rspec requirement from ~> 2.29.2 to ~> 2.30.0
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.29.2...v2.30.0)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 13:59:06 +02:00
renovate[bot]
d1e3d6f9d2 project: update aquasecurity/trivy to v0.51.4 2024-05-30 09:10:56 +02:00
dependabot[bot]
dc0eb621e7 gems: update rubocop requirement from ~> 1.63.5 to ~> 1.64.0
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.63.5...v1.64.0)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-27 16:16:29 +02:00
renovate[bot]
78b4f956cd project: update aquasecurity/trivy to v0.51.2 2024-05-23 13:42:13 +02:00
Christian Nicolai
85c6378d73 ci: update wait time for Docker E2E test 2024-05-23 13:41:34 +02:00
renovate[bot]
556f087a10 docker: update alpine Docker tag to v3.20.0 2024-05-23 13:41:34 +02:00
Christian Nicolai
c962f3eb84 gems: downgrade solargraph to version 0.49.0
This revert be33b1917a due to https://github.com/castwide/solargraph/issues/701
2024-05-23 13:39:55 +02:00
dependabot[bot]
581885daa0 gems: update rubocop-rspec requirement from ~> 2.26.1 to ~> 2.29.2
Updates the requirements on [rubocop-rspec](https://github.com/rubocop/rubocop-rspec) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v2.26.1...v2.29.2)

---
updated-dependencies:
- dependency-name: rubocop-rspec
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 22:18:52 +02:00
dependabot[bot]
267a96bf73 gems: update rubocop requirement from ~> 1.61.0 to ~> 1.63.5
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop/rubocop/compare/v1.61.0...v1.63.5)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 21:46:44 +02:00
renovate[bot]
44a4a28094 project: update aquasecurity/trivy to v0.51.1 2024-05-16 21:46:29 +02:00
3f962fa3bb docs: remove Depfu badge 2024-05-16 21:43:41 +02:00
12 changed files with 50 additions and 30 deletions

View File

@@ -20,6 +20,13 @@
matchManagers: ["bundler"], matchManagers: ["bundler"],
enabled: false, enabled: false,
}, },
// Only quarter update since noisy/stable tools
{
matchPackageNames: [
"aquasecurity/trivy",
],
schedule: ["* 0-8 1 */3 *"],
},
// Commit message formats // Commit message formats
{ {
matchDatasources: ["docker"], matchDatasources: ["docker"],
@@ -33,7 +40,7 @@
customManagers: [ customManagers: [
{ {
customType: "regex", customType: "regex",
fileMatch: ["\.rb$", "^Rakefile$"], managerFilePatterns: ["/.rb$/", "/^Rakefile$/"],
matchStrings: [ matchStrings: [
"renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s.*_version = '(?<currentValue>.*)'\\s" "renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s.*_version = '(?<currentValue>.*)'\\s"
] ]

View File

@@ -42,7 +42,7 @@ jobs:
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }} - name: Build and push Docker image for dyndnsd ${{ env.DYNDNSD_VERSION }}
uses: docker/build-push-action@v5 uses: docker/build-push-action@v6
with: with:
context: docker context: docker
build-args: | build-args: |

View File

@@ -18,10 +18,10 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
ruby-version: ruby-version:
- '3.0'
- '3.1' - '3.1'
- '3.2' - '3.2'
- '3.3' - '3.3'
- '3.4'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby-version }} - name: Set up Ruby ${{ matrix.ruby-version }}

View File

@@ -1,4 +1,4 @@
require: plugins:
- rubocop-rake - rubocop-rake
- rubocop-rspec - rubocop-rspec

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 3.11.0
IMPROVEMENTS:
- add Ruby 3.4 support
## 3.10.0 ## 3.10.0
IMPROVEMENTS: IMPROVEMENTS:

View File

@@ -1,6 +1,6 @@
# dyndnsd.rb # dyndnsd.rb
![ci](https://github.com/cmur2/dyndnsd/workflows/ci/badge.svg) [![Dependencies](https://badges.depfu.com/badges/4f25da8493f7a29f652ac892fbf9227b/overview.svg)](https://depfu.com/github/cmur2/dyndnsd) ![ci](https://github.com/cmur2/dyndnsd/workflows/ci/badge.svg)
A small, lightweight and extensible DynDNS server written with Ruby and Rack. A small, lightweight and extensible DynDNS server written with Ruby and Rack.

View File

@@ -3,11 +3,9 @@
require 'bundler/gem_tasks' require 'bundler/gem_tasks'
require 'rspec/core/rake_task' require 'rspec/core/rake_task'
require 'rubocop/rake_task' require 'rubocop/rake_task'
require 'bundler/audit/task'
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new RuboCop::RakeTask.new
Bundler::Audit::Task.new
desc 'Run experimental solargraph type checker' desc 'Run experimental solargraph type checker'
task :solargraph do task :solargraph do
@@ -18,7 +16,7 @@ end
hadolint_version = 'v2.12.0' hadolint_version = 'v2.12.0'
# renovate: datasource=github-tags depName=aquasecurity/trivy # renovate: datasource=github-tags depName=aquasecurity/trivy
trivy_version = 'v0.50.4' trivy_version = 'v0.61.1'
namespace :docker do namespace :docker do
ci_image = 'cmur2/dyndnsd:ci' ci_image = 'cmur2/dyndnsd:ci'
@@ -50,7 +48,7 @@ namespace :docker do
chmod a+w e2e/db.json chmod a+w e2e/db.json
SCRIPT SCRIPT
sh "docker run -d --name=dyndnsd-ci -v $(pwd)/e2e:/etc/dyndnsd -p 8080:8080 -p 5353:5353 #{ci_image}" sh "docker run -d --name=dyndnsd-ci -v $(pwd)/e2e:/etc/dyndnsd -p 8080:8080 -p 5353:5353 #{ci_image}"
sh 'sleep 1' sh 'sleep 5'
puts '----------------------------------------' puts '----------------------------------------'
# `dig` needs `sudo apt-get install -y -q dnsutils` # `dig` needs `sudo apt-get install -y -q dnsutils`
sh <<~SCRIPT sh <<~SCRIPT
@@ -68,7 +66,14 @@ namespace :docker do
end end
end end
task default: [:rubocop, :spec, 'bundle:audit', :solargraph] namespace :bundle do
desc 'Check for vulnerabilities with bundler-audit'
task :audit do
sh 'bundler-audit check --ignore GHSA-vvfq-8hwr-qm4m' if !RUBY_VERSION.start_with?('3.0')
end
end
task default: [:rubocop, :spec, 'bundle:audit']
desc 'Run all tasks desired for CI' desc 'Run all tasks desired for CI'
task ci: [:default, 'docker:lint', :build, 'docker:build', 'docker:e2e'] task ci: [:default, 'docker:lint', :build, 'docker:build', 'docker:e2e']

View File

@@ -1,11 +1,11 @@
FROM alpine:3.19.1 FROM alpine:3.22.0
EXPOSE 5353 8080 EXPOSE 5353 8080
ARG DYNDNSD_VERSION ARG DYNDNSD_VERSION
RUN apk --no-cache add openssl ca-certificates && \ RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \ apk --no-cache add ruby ruby-webrick && \
apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \ apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \
gem install --no-document dyndnsd -v ${DYNDNSD_VERSION} && \ gem install --no-document dyndnsd -v ${DYNDNSD_VERSION} && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \ rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -1,11 +1,11 @@
FROM alpine:3.19.1 FROM alpine:3.22.0
EXPOSE 5353 8080 EXPOSE 5353 8080
COPY pkg/dyndnsd-*.gem /tmp/dyndnsd.gem COPY pkg/dyndnsd-*.gem /tmp/dyndnsd.gem
RUN apk --no-cache add openssl ca-certificates && \ RUN apk --no-cache add openssl ca-certificates && \
apk --no-cache add ruby ruby-etc ruby-io-console ruby-json ruby-webrick && \ apk --no-cache add ruby ruby-webrick && \
apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \ apk --no-cache add --virtual .build-deps linux-headers ruby-dev build-base tzdata && \
gem install --no-document /tmp/dyndnsd.gem && \ gem install --no-document /tmp/dyndnsd.gem && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \ rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -27,23 +27,25 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 3.0' s.required_ruby_version = '>= 3.0'
s.add_runtime_dependency 'async', '~> 1.31.0' s.add_dependency 'async', '~> 1.31.0'
s.add_runtime_dependency 'async-dns', '~> 1.3.0' s.add_dependency 'async-dns', '~> 1.3.0'
s.add_runtime_dependency 'metriks' s.add_dependency 'base64', '~> 0.2.0' # needed for async
s.add_runtime_dependency 'opentelemetry-exporter-jaeger', '~> 0.22.0' s.add_dependency 'logger', '>= 1.6', '< 1.8'
s.add_runtime_dependency 'opentelemetry-instrumentation-rack', '~> 0.22.0' s.add_dependency 'metriks'
s.add_runtime_dependency 'opentelemetry-sdk', '>= 1.2', '< 1.5' s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.22.0'
s.add_runtime_dependency 'rack', '~> 3.0' s.add_dependency 'opentelemetry-instrumentation-rack', '~> 0.22.0'
s.add_runtime_dependency 'rackup', '~> 2' s.add_dependency 'opentelemetry-sdk', '~> 1.2.0'
s.add_runtime_dependency 'webrick', '>= 1.6.1' s.add_dependency 'rack', '~> 3.0'
s.add_dependency 'rackup', '~> 2'
s.add_dependency 'webrick', '>= 1.6.1'
s.add_development_dependency 'bundler' s.add_development_dependency 'bundler'
s.add_development_dependency 'bundler-audit', '~> 0.9.0' s.add_development_dependency 'bundler-audit', '~> 0.9.0'
s.add_development_dependency 'rack-test' s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake' s.add_development_dependency 'rake'
s.add_development_dependency 'rspec' s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.61.0' s.add_development_dependency 'rubocop', '~> 1.77.0'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0' s.add_development_dependency 'rubocop-rake', '~> 0.7.1'
s.add_development_dependency 'rubocop-rspec', '~> 2.26.1' s.add_development_dependency 'rubocop-rspec', '~> 3.6.0'
s.add_development_dependency 'solargraph', '~> 0.50.0' s.add_development_dependency 'solargraph', '~> 0.55.0'
end end

View File

@@ -138,7 +138,7 @@ module Dyndnsd
# @param params [Hash{String => String}] # @param params [Hash{String => String}]
# @return [Array<String>] # @return [Array<String>]
def extract_v4_and_v6_address(params) def extract_v4_and_v6_address(params)
return [] if !(params['myip']) return [] if !params['myip']
begin begin
IPAddr.new(params['myip'], Socket::AF_INET) IPAddr.new(params['myip'], Socket::AF_INET)
IPAddr.new(params['myip6'], Socket::AF_INET6) IPAddr.new(params['myip6'], Socket::AF_INET6)
@@ -207,7 +207,7 @@ module Dyndnsd
params = Rack::Utils.parse_query(env['QUERY_STRING']) params = Rack::Utils.parse_query(env['QUERY_STRING'])
# require hostname parameter # require hostname parameter
return [422, {'X-DynDNS-Response' => 'hostname_missing'}, []] if !(params['hostname']) return [422, {'X-DynDNS-Response' => 'hostname_missing'}, []] if !params['hostname']
hostnames = params['hostname'].split(',') hostnames = params['hostname'].split(',')

View File

@@ -89,7 +89,7 @@ module Dyndnsd
# @return [Array{Array{Object}}] # @return [Array{Array{Object}}]
def self.parse_endpoints(endpoint_list) def self.parse_endpoints(endpoint_list)
endpoint_list.map { |addr_string| addr_string.split('@') } endpoint_list.map { |addr_string| addr_string.split('@') }
.map { |addr_parts| [addr_parts[0], addr_parts[1].to_i || 53] } .map { |addr_parts| [addr_parts[0], addr_parts[1]&.to_i || 53] }
.map { |addr| [:tcp, :udp].map { |type| [type] + addr } } .map { |addr| [:tcp, :udp].map { |type| [type] + addr } }
.flatten(1) .flatten(1)
end end