Skip to content

Commit

Permalink
Merge pull request #65 from sorah/route53-rej-root-label-list
Browse files Browse the repository at this point in the history
ListResourceRecordSets now rejects name ending '.'
  • Loading branch information
sorah authored Dec 4, 2024
2 parents c6822d1 + e787001 commit 88bb295
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 47 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.1', '3.2', '3.3']
container:
image: public.ecr.aws/sorah/ruby:${{ matrix.ruby-version }}-dev
steps:
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: ['3.0', '3.1', '3.2']
ruby-version: ['3.1', '3.2', '3.3']

# FIXME: once GitHub Actions gains support of adding command line arguments to container
# services:
Expand Down
94 changes: 50 additions & 44 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,68 @@ PATH
GEM
remote: https://rubygems.org/
specs:
acme-client (2.0.15)
acme-client (2.0.19)
base64 (~> 0.2.0)
faraday (>= 1.0, < 3.0.0)
faraday-retry (>= 1.0, < 3.0.0)
aws-eventstream (1.2.0)
aws-partitions (1.855.0)
aws-sdk-acm (1.62.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sdk-core (3.187.1)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.651.0)
aws-eventstream (1.3.0)
aws-partitions (1.1018.0)
aws-sdk-acm (1.81.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-core (3.214.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
aws-sigv4 (~> 1.9)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.72.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sdk-route53 (1.81.0)
aws-sdk-core (~> 3, >= 3.184.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.138.0)
aws-sdk-core (~> 3, >= 3.181.0)
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-route53 (1.105.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.176.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.6)
aws-sigv4 (1.6.1)
aws-sigv4 (~> 1.5)
aws-sigv4 (1.10.1)
aws-eventstream (~> 1, >= 1.0.2)
base64 (0.2.0)
diff-lcs (1.5.0)
faraday (2.7.12)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
faraday-retry (2.2.0)
diff-lcs (1.5.1)
faraday (2.12.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.0)
net-http (>= 0.5.0)
faraday-retry (2.2.1)
faraday (~> 2.0)
jmespath (1.6.2)
mini_portile2 (2.8.6)
nokogiri (1.16.5)
json (2.9.0)
logger (1.6.2)
mini_portile2 (2.8.8)
net-http (0.6.0)
uri
nokogiri (1.16.8)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
racc (1.8.0)
rake (13.1.0)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
racc (1.8.1)
rake (13.2.1)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.2)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
ruby2_keywords (0.0.5)
thor (1.3.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.2)
thor (1.3.2)
uri (1.0.2)

PLATFORMS
ruby
Expand All @@ -79,4 +85,4 @@ DEPENDENCIES
rspec

BUNDLED WITH
2.4.12
2.5.23
2 changes: 1 addition & 1 deletion lib/acmesmith/challenge_responders/route53.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def save_original_records(*domain_and_challenges)
domain_and_challenges.each do |domain, challenge|

hosted_zone_id = find_hosted_zone(domain)
name = "#{challenge.record_name}.#{domain}."
name = "#{challenge.record_name}.#{canonical_fqdn(domain)}."

rrsets = list_existing_rrsets(hosted_zone_id, name)
next if rrsets.empty?
Expand Down

0 comments on commit 88bb295

Please sign in to comment.