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

Compare commits

..

27 Commits

Author SHA1 Message Date
dependabot[bot]
4672c1e350 gems: update base64 requirement from ~> 0.2.0 to >= 0.2, < 0.4
Updates the requirements on [base64](https://github.com/ruby/base64) to permit the latest version.
- [Release notes](https://github.com/ruby/base64/releases)
- [Commits](https://github.com/ruby/base64/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: base64
  dependency-version: 0.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 12:17:05 +00: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
9 changed files with 34 additions and 13 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"],

View File

@@ -22,6 +22,7 @@ jobs:
- '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

@@ -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.54.1' trivy_version = 'v0.61.0'
namespace :docker do namespace :docker do
ci_image = 'cmur2/dyndnsd:ci' ci_image = 'cmur2/dyndnsd:ci'
@@ -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,4 +1,4 @@
FROM alpine:3.20.3 FROM alpine:3.21.3
EXPOSE 5353 8080 EXPOSE 5353 8080

View File

@@ -1,4 +1,4 @@
FROM alpine:3.20.3 FROM alpine:3.21.3
EXPOSE 5353 8080 EXPOSE 5353 8080

View File

@@ -29,9 +29,11 @@ Gem::Specification.new do |s|
s.add_dependency 'async', '~> 1.31.0' s.add_dependency 'async', '~> 1.31.0'
s.add_dependency 'async-dns', '~> 1.3.0' s.add_dependency 'async-dns', '~> 1.3.0'
s.add_dependency 'base64', '>= 0.2', '< 0.4' # needed for async
s.add_dependency 'logger', '>= 1.6', '< 1.8'
s.add_dependency 'metriks' s.add_dependency 'metriks'
s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.22.0' 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 'opentelemetry-sdk', '~> 1.2.0'
s.add_dependency 'rack', '~> 3.0' s.add_dependency 'rack', '~> 3.0'
s.add_dependency 'rackup', '~> 2' s.add_dependency 'rackup', '~> 2'
@@ -42,8 +44,8 @@ Gem::Specification.new do |s|
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.67.0' s.add_development_dependency 'rubocop', '~> 1.75.1'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0' s.add_development_dependency 'rubocop-rake', '~> 0.7.1'
s.add_development_dependency 'rubocop-rspec', '~> 3.1.0' s.add_development_dependency 'rubocop-rspec', '~> 3.6.0'
s.add_development_dependency 'solargraph', '~> 0.49.0' s.add_development_dependency 'solargraph', '~> 0.49.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(',')