Skip to content

credential: Add Plain variant to allow more input#78

Merged
Xuanwo merged 2 commits intomainfrom
env-credential
Mar 1, 2022
Merged

credential: Add Plain variant to allow more input#78
Xuanwo merged 2 commits intomainfrom
env-credential

Conversation

@Xuanwo
Copy link
Copy Markdown
Member

@Xuanwo Xuanwo commented Mar 1, 2022

Signed-off-by: Xuanwo github@xuanwo.io

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Add Plain variant to allow more input.

fix #77

Databend will pass users' input directly without checking:

https://github.com/datafuselabs/databend/blob/f76e4756f859abf697c4a405c01f85621227904c/query/src/sessions/session_mgr.rs#L284-L288

We should check the empty credential and fall back to default logic instead.

@Xuanwo Xuanwo merged commit 6511b9a into main Mar 1, 2022
@Xuanwo Xuanwo deleted the env-credential branch March 1, 2022 09:25
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

Successfully merging this pull request may close these issues.

backend/s3: Web Token Identity not loaded correctly

1 participant