Skip to content

Commit

Permalink
Fix dev container and Cloudfront version check (#542)
Browse files Browse the repository at this point in the history
* Fix docker dev container build

* Fix boolean on Cloudfront MinimumProtocolVersionRule
  • Loading branch information
arothian authored Apr 2, 2021
1 parent a9c403a commit 633e5d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ RUN echo 'export GPG_TTY="$(tty)"' >> /home/$USERNAME/.bashrc \
&& chown -R $USERNAME /home/$USERNAME/.gnupg

# Add non-root user to gems and bundle
RUN chown -R $USERNAME /usr/local/lib/ruby/gems/2.5.0 \
RUN chown -R $USERNAME /usr/local/lib/ruby/gems/2.7.0 \
&& chown -R $USERNAME /usr/local/bundle

# Enter container as non-root user
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def tls_version?(viewer_certificate)

def cert_has_bad_tls_version?(min_protocol_version)
min_protocol_version.nil? ||
(min_protocol_version.is_a?(String) && min_protocol_version.start_with?('TLSv1.2'))
(min_protocol_version.is_a?(String) && !min_protocol_version.start_with?('TLSv1.2'))
end

def override_tls_config?(viewer_certificate)
Expand Down

0 comments on commit 633e5d0

Please sign in to comment.