However it’s giving us the below error. The Webservice is configured and enabled. The policies are in place to provide access. Appreciate if someone can help to troubleshoot the issue.
Error:
COMPANY:host:461111111189/BURoleForDAPIAMAuthenticator failed to authenticate with authenticator authn-iam service COMPANY:webservice:conjur/authn-iam/eecdev: CONJ00018E Invalid or expired AWS headers: Timed out connecting to server
So it looks like the request is going from the client to the conjur server (most likely a follower). When the follower attempts to authenticate the host IAM credentials it is receiving a Timed out connecting to sever. Where is the conjur instance the application is authenticating too deployed? Is it on-prem or in the AWS?
The conjur instance must have access to following URL: https://sts.amazonaws.com/?Action=GetCallerIdentity&Version=2011-06-15
Does this error always occur? Or does it happen every now and then?
[ec2-user@usaea1uapuesc05 ~]$ ruby test_iam.rb
Traceback (most recent call last):
13: from test_iam.rb:20:in <main>' 12: from /home/ec2-user/.gem/ruby/gems/conjur-api-5.3.4/lib/conjur/base.rb:155:in token’
11: from /home/ec2-user/.gem/ruby/gems/conjur-api-5.3.4/lib/conjur/base.rb:345:in refresh_token' 10: from /home/ec2-user/.gem/ruby/gems/conjur-api-5.3.4/lib/conjur/base.rb:223:in refresh_token’
9: from /home/ec2-user/.gem/ruby/gems/conjur-api-5.3.4/lib/conjur/api/authn.rb:65:in authenticate' 8: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/resource.rb:69:in post’
7: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in execute' 6: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in execute’
5: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in transmit' 4: from /opt/rh/rh-ruby25/root/usr/share/ruby/net/http.rb:910:in start’
3: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in block in transmit' 2: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in process_result’
1: from /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in return!' /home/ec2-user/.gem/ruby/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in exception_with_response’: 404 Not Found (RestClient::NotFound)