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

fix: sanitize access token when reading from stdin #1404

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Conversation

y-lakhdar
Copy link
Contributor

@y-lakhdar y-lakhdar commented Dec 5, 2023

Proposed changes

This PR addresses an issue where the access token obtained using the command
echo "ACCESS_TOKEN" | coveo auth:token --stdin contains a newline character at the end, causing authentication to fail.

The solution is to sanitize the token before storing it in the config.

Testing

  • Unit Tests:
  • Functionnal Tests:
  • Manual Tests:

@y-lakhdar y-lakhdar requested a review from a team as a code owner December 5, 2023 19:53
@y-lakhdar y-lakhdar requested review from louis-bompart and fbeaudoincoveo and removed request for a team December 5, 2023 19:53
Copy link
Contributor

github-actions bot commented Dec 5, 2023

Thanks for your contribution @y-lakhdar !
When your pull-request is ready to be merged, check the box below to merge it

  • Merge! :shipit:

Copy link
Contributor

github-actions bot commented Dec 5, 2023

Pull Request Report

PR Title

✅ Title follows the conventional commit spec.

@y-lakhdar y-lakhdar enabled auto-merge (squash) December 5, 2023 20:04
@y-lakhdar y-lakhdar merged commit 4db2b8c into master Jan 16, 2024
48 checks passed
@y-lakhdar y-lakhdar deleted the KIT-2928 branch January 16, 2024 19:23
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