Projects
home:rottame:yggdra_agents
dns_authoritative_provisioner
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 17
View file
rubygem-dns_authoritative_provisioner.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jan 13 16:36:39 UTC 2026 - Angelo Grossini <rottame@intercom.it> + +- strip outer parentheses from DKIM data. +- update to version 3.3.2 + +------------------------------------------------------------------- Tue Jan 13 15:56:43 UTC 2026 - Angelo Grossini <rottame@intercom.it> - configurable extras_path
View file
rubygem-dns_authoritative_provisioner.spec
Changed
@@ -1,4 +1,4 @@ -%define package_version 3.3.1 +%define package_version 3.3.2 %define mod_name dns_authoritative_provisioner %define mod_full_name %{mod_name}-%{version}
View file
dns_authoritative_provisioner-3.3.1.gem/checksums.yaml.gz -> dns_authoritative_provisioner-3.3.2.gem/checksums.yaml.gz
Changed
@@ -1,7 +1,7 @@ --- SHA256: - metadata.gz: cc45779f24bfb4e41c849660690cad2e39d9dbba854e3e95516c7744e3521153 - data.tar.gz: cc3e0ae7a995661aaae9f675584331c895ff2c5c59d598bda1399f45e3c8b625 + metadata.gz: d022203f236479c89161aad59b8715a24a072caadffe4b1f203ea301b1cbb767 + data.tar.gz: 8239ff9e4409020d82eadc813b42f2cc7ab21b544e2eef5024dae07f81b0e9af SHA512: - metadata.gz: 35b0c298163e63444659da3f91b7ead1ec23e79b32df8fa71679b085876f4da88b743bd46371ea14598ae627ccf310c182550923103a045426856bd0d2983bbc - data.tar.gz: e9755b12a15dc64ea968e2eecca5186ca3af600da3e0bc064c71a44e7ae14b46e97c2efb687ffce18b0eb10661f7507fcef6b1ebdc02a3f3709d13d19ebd2f5f + metadata.gz: 1c450d4d3d6dcbb89b51efca51a6c2229bdf3abb87e4311b7020512e4b193720d534d05fc3737665635f3db71767e46233bfd79393aadd0101de98c982cb79a0 + data.tar.gz: 96e68b36da953dc9c87e09c52b4f96a55421e80ebf646ac1279a2de035fb401c2a6d318bb56ecbe0c25c10b6b9ea7030456e0c2fb57297cda3c54f82e3e885bf
View file
dns_authoritative_provisioner-3.3.1.gem/data/Gemfile.lock -> dns_authoritative_provisioner-3.3.2.gem/data/Gemfile.lock
Changed
@@ -9,7 +9,7 @@ PATH remote: . specs: - dns_authoritative_provisioner (3.3.0) + dns_authoritative_provisioner (3.3.1) tomte-agents (~> 1.1, >= 1.1.0) tomte-core (~> 1.3.0, < 1.4.0) tomte-protocol (~> 1.2, >= 1.2.0)
View file
dns_authoritative_provisioner-3.3.1.gem/data/lib/ygg/dns/authoritative_provisioner/version.rb -> dns_authoritative_provisioner-3.3.2.gem/data/lib/ygg/dns/authoritative_provisioner/version.rb
Changed
@@ -2,7 +2,7 @@ module Dns module AuthoritativeProvisioner - VERSION = '3.3.1' + VERSION = '3.3.2' end end
View file
dns_authoritative_provisioner-3.3.1.gem/data/lib/ygg/dns/authoritative_provisioner/zone.rb -> dns_authoritative_provisioner-3.3.2.gem/data/lib/ygg/dns/authoritative_provisioner/zone.rb
Changed
@@ -394,17 +394,24 @@ # fixes common data problems # TXT SPF/DMARC record must be quoted # TXT DKIM record must be split to allowed maximum length and be quoted + # Strips outer parentheses if present # # return String | String def record_data(r) + data = r:data + # Strip outer parentheses if present + if data.is_a?(String) && data =~ /\A\s*\(.*\)\s*\z/ + data = data.strip.gsub(/\A\s*\(/, '').gsub(/\)\s*\z/, '') + end + case r:rr_type when 'TXT' - case r:data - when /v=DKIM/ then fix_dkim_data(r:data) - when /v=SPF/, /v=DMARC/ then quote_record_data(r:data) - else r:data + case data + when /v=DKIM/ then fix_dkim_data(data) + when /v=SPF/, /v=DMARC/ then quote_record_data(data) + else data end - else r:data + else data end end
View file
dns_authoritative_provisioner-3.3.1.gem/data/spec/unit/zone_spec.rb -> dns_authoritative_provisioner-3.3.2.gem/data/spec/unit/zone_spec.rb
Changed
@@ -489,6 +489,38 @@ end end + it 'strips outer parentheses from DKIM data' do + dkim_with_parentheses = '("v=DKIM1; t=s; k=rsa; h=sha256; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADC" "BiQKBgQDJQ3nQ3lESAqiNu6e4ciEhadR+9J6/OCpDVlbWBDPYNNMf/+LLymvCO2h" "2EY5DtVlTW2g7hQMXeACOP6BXCYbqA7nbfgFoLmV+ZiinB8YRsl1oUHlFaXI28Nb" "0rJy7t332Vc2yCnT6DVFzcJzkq+j/JKijJTbRoH5jYAHdOZvX5QIDAQAB")' + record = { :rr_type => 'TXT', :data => dkim_with_parentheses } + result = subject.record_data(record) + # Should not contain parentheses + expect(result).not_to include('(') + expect(result).not_to include(')') + # Should contain the DKIM data + expect(result).to include('v=DKIM1') + expect(result).to include('t=s') + expect(result).to include('k=rsa') + # Should be properly formatted with quotes + parts = result.scan(/"^"+"/) + expect(parts.length).to be >= 1 + parts.each do |part| + expect(part).to match(/\A".*"\z/) + end + end + + it 'strips outer parentheses with whitespace from DKIM data' do + dkim_with_parentheses_ws = ' ( "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC" ) ' + record = { :rr_type => 'TXT', :data => dkim_with_parentheses_ws } + result = subject.record_data(record) + # Should not contain parentheses + expect(result).not_to include('(') + expect(result).not_to include(')') + # Should contain the DKIM data + expect(result).to include('v=DKIM1') + # Should be properly formatted + expect(result).to match(/\A".*"\z/) + end + it 'processes TXT records with v=SPF' do record = { :rr_type => 'TXT', :data => 'v=SPF1 include:_spf.example.com ~all' } result = subject.record_data(record)
View file
dns_authoritative_provisioner-3.3.1.gem/metadata.gz -> dns_authoritative_provisioner-3.3.2.gem/metadata.gz
Changed
@@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: dns_authoritative_provisioner version: !ruby/object:Gem::Version - version: 3.3.1 + version: 3.3.2 platform: ruby authors: - Daniele Orlandi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.