-
Notifications
You must be signed in to change notification settings - Fork 36
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
feat: Harvest should define and document auth precedence #1882
Conversation
if err != nil { | ||
abs, err2 := filepath.Abs(credPath) | ||
if err2 != nil { | ||
abs = credPath | ||
} | ||
return fmt.Errorf("failed to read file=%s error: %w", abs, err) | ||
} | ||
if p == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic hasn't changed yet for absolute path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
absolute path is only used in the error to help customers figure out the readfile error and where the file is being read from
pkg/auth/auth_test.go
Outdated
name: "no default, poller credentials_file", | ||
pollerName: "test", | ||
want: PollerAuth{Username: "username", Password: "from-secrets-file"}, | ||
defaultDefined: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false
docs/configure-harvest-basic.md
Outdated
|
||
| parameter | description | default | Link | | ||
|----------------------|----------------------------------------------------------------------------|--------------|-----------------------------| | ||
| `auth_sytle` | One of `basic_auth` or `certificate_auth` | `basic_auth` | [link](#Pollers) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description should add that it is an optional field if using credentials_file
and credentials_script
Fixes: #1867