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

Compare commits

..

34 Commits

Author SHA1 Message Date
dependabot[bot]
e859d9a5ca gems: update async requirement from ~> 1.31.0 to >= 1.31, < 2.28
Updates the requirements on [async](https://github.com/socketry/async) to permit the latest version.
- [Release notes](https://github.com/socketry/async/releases)
- [Changelog](https://github.com/socketry/async/blob/main/releases.md)
- [Commits](https://github.com/socketry/async/compare/v1.31.0...v2.27.0)

---
updated-dependencies:
- dependency-name: async
  dependency-version: 2.27.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-04 16:06:57 +00:00
renovate[bot]
01175ec8f9 docker: update alpine Docker tag to v3.22.1 2025-07-17 10:18:27 +02:00
dependabot[bot]
8d2c2f9c90 gems: update rubocop requirement from ~> 1.77.0 to ~> 1.78.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.77.0...v1.78.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 19:02:43 +02: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
10 changed files with 40 additions and 20 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -3,11 +3,9 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'bundler/audit/task'
RSpec::Core::RakeTask.new(:spec)
RuboCop::RakeTask.new
Bundler::Audit::Task.new
desc 'Run experimental solargraph type checker'
task :solargraph do
@@ -18,7 +16,7 @@ end
hadolint_version = 'v2.12.0'
# renovate: datasource=github-tags depName=aquasecurity/trivy
trivy_version = 'v0.54.1'
trivy_version = 'v0.61.0'
namespace :docker do
ci_image = 'cmur2/dyndnsd:ci'
@@ -68,7 +66,14 @@ namespace :docker do
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'
task ci: [:default, 'docker:lint', :build, 'docker:build', 'docker:e2e']

View File

@@ -1,11 +1,11 @@
FROM alpine:3.20.3
FROM alpine:3.22.1
EXPOSE 5353 8080
ARG DYNDNSD_VERSION
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 && \
gem install --no-document dyndnsd -v ${DYNDNSD_VERSION} && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -1,11 +1,11 @@
FROM alpine:3.20.3
FROM alpine:3.22.1
EXPOSE 5353 8080
COPY pkg/dyndnsd-*.gem /tmp/dyndnsd.gem
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 && \
gem install --no-document /tmp/dyndnsd.gem && \
rm -rf /usr/lib/ruby/gems/*/cache/ && \

View File

@@ -27,11 +27,13 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 3.0'
s.add_dependency 'async', '~> 1.31.0'
s.add_dependency 'async', '>= 1.31', '< 2.28'
s.add_dependency 'async-dns', '~> 1.3.0'
s.add_dependency 'base64', '~> 0.2.0' # needed for async
s.add_dependency 'logger', '>= 1.6', '< 1.8'
s.add_dependency 'metriks'
s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.22.0'
s.add_dependency 'opentelemetry-instrumentation-rack', '>= 0.22', '< 0.26'
s.add_dependency 'opentelemetry-instrumentation-rack', '~> 0.22.0'
s.add_dependency 'opentelemetry-sdk', '~> 1.2.0'
s.add_dependency 'rack', '~> 3.0'
s.add_dependency 'rackup', '~> 2'
@@ -42,8 +44,8 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rack-test'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'rubocop', '~> 1.67.0'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 3.1.0'
s.add_development_dependency 'solargraph', '~> 0.49.0'
s.add_development_dependency 'rubocop', '~> 1.78.0'
s.add_development_dependency 'rubocop-rake', '~> 0.7.1'
s.add_development_dependency 'rubocop-rspec', '~> 3.6.0'
s.add_development_dependency 'solargraph', '~> 0.55.0'
end

View File

@@ -138,7 +138,7 @@ module Dyndnsd
# @param params [Hash{String => String}]
# @return [Array<String>]
def extract_v4_and_v6_address(params)
return [] if !(params['myip'])
return [] if !params['myip']
begin
IPAddr.new(params['myip'], Socket::AF_INET)
IPAddr.new(params['myip6'], Socket::AF_INET6)
@@ -207,7 +207,7 @@ module Dyndnsd
params = Rack::Utils.parse_query(env['QUERY_STRING'])
# 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(',')

View File

@@ -89,7 +89,7 @@ module Dyndnsd
# @return [Array{Array{Object}}]
def self.parse_endpoints(endpoint_list)
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 } }
.flatten(1)
end