Skip to content

fix: resolve the access key to the secret value#3207

Merged
dnephin merged 1 commit intomainfrom
dnephin/connector-fix-reading-access-key
Sep 15, 2022
Merged

fix: resolve the access key to the secret value#3207
dnephin merged 1 commit intomainfrom
dnephin/connector-fix-reading-access-key

Conversation

@dnephin
Copy link
Contributor

@dnephin dnephin commented Sep 14, 2022

Summary

The access key being used for the getJWK call to the server was being used directly from the command line options. If a user specified a value of env:... or file:... then the connector would have sent the wrong value for the access key.

This PR fixes the problem by first resolve the access key to the value stored in secrets, and using that as the value for the auth header.

Not entirely sure how to write a test for this since we can't easily run the connector in isolation until #2613 is merged.

@dnephin dnephin merged commit e54ebda into main Sep 15, 2022
@dnephin dnephin deleted the dnephin/connector-fix-reading-access-key branch September 15, 2022 16:22
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.

2 participants