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

rusoto_credential profile.rs aws_session_token parsing problem #2012

Open
klatu201 opened this issue Feb 24, 2024 · 0 comments
Open

rusoto_credential profile.rs aws_session_token parsing problem #2012

klatu201 opened this issue Feb 24, 2024 · 0 comments

Comments

@klatu201
Copy link

The aws_session_token is a base64 string and can have equal signs at the end as padding, but the basic split code [ https://github.com/rusoto/rusoto/blob/master/rusoto/credential/src/profile.rs - Line 388

 let v: Vec<&str> = unwrapped_line.split('=').collect();
            if !v.is_empty() {
                token = Some(v[1].trim_matches(' ').to_string());
            }

does not correctly pull the full token.

The same issue was fixed in the aws-sdk-cpp back in 2018 - https://github.com/aws/aws-sdk-cpp/pull/766/files

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