Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl opts injection and protobuf upgrade #22

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
include default customize_hostname_check
  • Loading branch information
bernardo-martinez committed Mar 8, 2023
commit 7e4f12d090b1f7c5a4b3896fc253e16300300be1
8 changes: 7 additions & 1 deletion lib/connection.ex
Original file line number Diff line number Diff line change
@@ -52,9 +52,15 @@ defmodule Bigtable.Connection do

@spec build_opts() :: list()
defp build_opts do
default_ssl_opts = [
customize_hostname_check: [
match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
]
]

[
cred: %GRPC.Credential{
ssl: Application.get_env(:bigtable, :ssl, [])
ssl: Application.get_env(:bigtable, :ssl, []) ++ default_ssl_opts
}
]
end