Skip to content

[1.7.x] Role-based authentication not working on Community #129

Description

@thedoc31

Hi,

I'm running a self-hosted Rundeck Community v4.8.0 which is not hosted in Amazon, and I want to switch to using role-based authentication rather than the less-secure access key/secret key method. I started with ec2-nodes-plugin 1.7.0, which failed with [1]. I updated the plugin to the latest 1.7.6 today, but I still see the same error. As far as I can tell, there's nowhere for me to configure a roleSessionName or a profile name. I'm assuming roleArn is using the value I've configured on the node source.

The documentation isn't much help here as it makes it seem like role-based auth should work the same as the access key/secret key. The role has the same permission policy as the user account did. Any ideas?

[1]

The Node Source had an error:
com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: You must specify a value for roleArn and roleSessionName, com.amazonaws.auth.profile.ProfileCredentialsProvider@c8b684a: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@1cb9495a: Failed to connect to service endpoint: ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions