-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[confmap] log a warning when using $VAR in config (WIP) #9547
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
29844f3
[confmap] log a warning when using $VAR in config
tomasmota e4af3c0
Merge branch 'main' into dollar-warning
tomasmota 7b2906b
revert bad rebase
tomasmota 62a720b
[chore][Feature Request Template] Comment out header descriptions (#9…
crobert-1 a3ca427
Remove deprecated obsreport/obsreporttest package (#9724)
dmitryax 30a629d
use generated meter (#9669)
codeboten 31666b3
Update github-actions deps (#9743)
renovate[bot] fbfe4b2
[exporter/otlp] enable lifecycle test (#9735)
fatsheep9146 b0fedad
[chore] group build-tools packages (#9742)
codeboten 59f3fc7
[confmap] confmap honors `Unmarshal` methods on config embedded struc…
atoulme 3e13d81
[exporterhelper] Fix persistent queue size backup on reads (#9740)
carsonip 9cb8f44
Give NoOp create settings a unique name (#9637)
dashpole acd71fb
Update github/codeql-action action to v3.24.7 (#9744)
renovate[bot] 1fe43cf
[exporter/nopexporter] Add the nopexporter (#9448)
evan-bradley 1830f83
[receiver/nopreceiver] Add the nopreceiver (#9446)
evan-bradley 5d5f737
[chore] Run make gotidy to fix the CI (#9747)
dmitryax 8c72ae4
[chore] group golang.org/x packages (#9741)
codeboten 9d2a10c
[chore] Fix an incorrect automatic replace made by a bot in `otel-con…
ababushk 92992c5
[chore] Move resource test to service/internal/resource (#9730)
mx-psi bae5867
[chore] tidy code to return directly (#9751)
atoulme 8994209
reviewable
tomasmota 63a1bad
Merge branch 'main' into dollar-warning
tomasmota b610033
add warning message tests
tomasmota 5e5b9f5
add QuoteMeta to regexp
tomasmota 326ec46
Merge branch 'main' into dollar-warning
tomasmota cb677ff
build
tomasmota 37e0dce
Merge branch 'main' into dollar-warning
tomasmota 169069f
add check for both types together
tomasmota File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
To test the
QuoteMeta
change I commented above, we should add a test like$HOSTONAME${HOST.NAME}
to check that we are properly escaping charactersThere 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.
I have added QuoteMeta because it makes sense, but in practice I'm not really understanding how it is useful or needed, because our regexp will never match
${HOST.NAME}
, and if you attempt to have$HOST.NAME
you will just end up with127.0.0.1.NAME
according to my testing. Same if you put other special characters after$HOST
.With that in mind, I couldn't think of a good test case, because the
$VAR
way, which is the only one we match, does not play well with special characters anyways.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.
You are right, I mistakenly assumed that
.
would be a valid part of a naked environment variable name foros.Expand
, but it does not seem like that is the case.I guess a test that has both
${HOST.NAME}
and$HOST_NAME
should be a valid test, right? Taking a look at the implementation ofos.Expand
, it also seems like$?
would be a valid thing to test, but I doubt anybody is using that in practice 😄