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

Fetch credentials with ec2 provider failed with missing SSL certificate. #64

Open
KoeusIss opened this issue Jan 26, 2024 · 0 comments
Open

Comments

@KoeusIss
Copy link

Using aws_credentials_ec2 provider failed with this error

Kernel pid terminated (application_controller) ("{application_start_failure,aws_credentials,{{shutdown,{failed_to_start_child,aws_credentials,{{badmatch,{error,enoent}},[{pubkey_os_cacerts,get,0,[{file,\"pubkey_os_cacerts.erl\"},{line,38}]},{httpc,ssl_verify_host_options,1,[{file,\"httpc.erl\"},{line,476}]},{httpc,'-http_options_default/0-fun-5-',0,[{file,\"httpc.erl\"},{line,1015}]},{httpc,http_options,3,[{file,\"httpc.erl\"},{line,961}]},{httpc,handle_request,9,[{file,\"httpc.erl\"},{line,771}]},{aws_credentials_httpc,request,6,[{file,\"/app/deps/aws_credentials/src/aws_credentials_httpc.erl\"},{line,71}]},{aws_credentials_ec2,fetch_session_token,0,[{file,\"/app/deps/aws_credentials/src/aws_credentials_ec2.erl\"},{line,52}]},{aws_credentials_ec2,fetch,1,[{file,\"/app/deps/aws_credentials/src/aws_credentials_ec2.erl\"},{line,40}]}]}}},{aws_credentials_app,start,[normal,[]]}}}")

It seems the package not compatible with the restricted security constraint introduced by erlang 26. https://www.erlang.org/blog/otp-26-highlights/#ssl-safer-defaults. We miss to explicitly append SSL options to the httpc calls, and maybe find a way to pull configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant