Skip to content

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

Open

Description

@KoeusIss

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions