aws / aws/eks-anywhere

Creds in snow does not allow space

Open
#5,702 0 comments 0 reactions 0 assignees View on GitHub
kind/bug
Dominant language
Go
Stars
2.1k
Forks
328
Avg merge
1d 4h
Merged PRs (30d)
9

Description

## Actual behaviour
When the line of snow creds file containing whitespace at the end:
```
[10.0.0.1]
aws_access_key_id = ***
aws_secret_access_key = ***
region = snow
```

`create cluster -f ./cluster.yaml -v 99` would fail:
```
Error: getting device ips from aws credentials: no ip address profile found in content
```

## Expected behaviour
No error getting device ips from aws credentials

Contributor guide

Open the contributing guide

Research direction

Start by searching the exact error text, "no ip address profile found in content," and trace the credential parsing used by `create cluster -f ./cluster.yaml -v 99`. Reproduce the trailing-space case from the issue, add coverage for it, and verify that the command no longer fails while reading AWS credentials.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, go
Domain
authentication, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.