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

Add ability to dynamically get authentication information #7660

Merged
merged 9 commits into from
Oct 8, 2020

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Sep 25, 2020

Motivation

Customer request (also eventually can refactor other integrations like OpenMetrics & Vault since we already do similar things)

Copy link
Member

@AlexandreYang AlexandreYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It I understand correctly, the current use case is about reading token from a file and then writing as request header.

What are the other possible kind of readers and writers ? Having more use cases might help understanding if we need a solution as generic as this one (PR).

That said, I like the flexibility of the implementation.

@ofek
Copy link
Contributor Author

ofek commented Sep 25, 2020

Possible readers:

  • Vault
  • AWS KMS
  • body of response from arbitrary endpoints

Possible writers:

  • Field e.g. make it the password

Copy link
Contributor

@ruthnaebeck ruthnaebeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs review

@ofek
Copy link
Contributor Author

ofek commented Oct 1, 2020

@ruthnaebeck I applied your suggestions but removed the period after examples to prevent copy/paste errors.

ruthnaebeck
ruthnaebeck previously approved these changes Oct 1, 2020
Copy link
Contributor

@ruthnaebeck ruthnaebeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for docs

AlexandreYang
AlexandreYang previously approved these changes Oct 8, 2020
@ofek ofek merged commit e9bbcf2 into master Oct 8, 2020
@ofek ofek deleted the ofek/auth-token branch October 8, 2020 17:54
github-actions bot pushed a commit that referenced this pull request Oct 8, 2020
* Add ability to dynamically get authentication information

* Update config specs

* incorporate feedback

* Apply suggestions from code review

Co-authored-by: ruthnaebeck <[email protected]>

* sync config

* easier default

* gracefully retry

* update from master

* address

Co-authored-by: ruthnaebeck <[email protected]> e9bbcf2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment