-
-
Notifications
You must be signed in to change notification settings - Fork 28
Nabsul/gateway api #131
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
Open
nabsul
wants to merge
27
commits into
main
Choose a base branch
from
nabsul/gateway-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Nabsul/gateway api #131
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
72c4d23
move service attribute
nabsul 9b349dd
Refactor dependency injection logic in Program.cs
nabsul c746294
Cleanup some config stuff
nabsul a3f5fbb
More config simplifying
nabsul 20edea6
Remove custom attributes
nabsul a8e19d1
Simplify helm charts
nabsul 3005194
Cleanup KCert charts
nabsul ccb5815
Simplify extensions and http challenge route
nabsul 07237ed
Clean up the challenge handlers
nabsul 2537835
Simplify kubernetes client generation, and AllConfig
nabsul eb2d5e6
Refactor config location and k8s client iteration logic
nabsul 096139f
Tweak
nabsul 717d49a
Cleanup update tls secret
nabsul d89c899
Refactor AcmeClient to simplify some things
nabsul 0afa326
Cancellation tokens everywhere
nabsul 8e25f24
Replace custom retry class with Polly
nabsul 673b4f3
Make changes to account for dependency injection transient scope
nabsul 2b90cfb
Use Semaphores and cleanup some more code
nabsul 49d978e
Minor fixes to the code
nabsul 726639b
Fix nonce and location header handling
nabsul e994ec0
fix indentation
nabsul c778fe2
remove quotes around kubectl service name
nabsul a784da0
Add small test app for deploying in cluster
nabsul 2463f54
Add files for creating test environment
nabsul 8f02a63
Start moving to gateway api
nabsul 6981a9f
Check in intermediate work
nabsul f333e45
Add l2 advertisement
nabsul 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,6 @@ appsettings.local.json | |
| .vscode | ||
| temp | ||
| *.tgz | ||
|
|
||
| # Jetbrains Rider | ||
| .idea | ||
| test.yml | ||
| testing/kcert-* | ||
| values.yaml | ||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Check failure
Code scanning / CodeQL
Log entries created from user input High
Copilot Autofix
AI 4 months ago
To fix the issue, sanitize the
tokenstring before logging it. Because logs are typically viewed as text, the primary concern is controlling newline and control characters. The simplest approach is to replace all carriage returns (\r) and linefeeds (\n) in the token string with empty strings before logging. This should be done inline in the call toLogInformationin Challenge/HttpChallengeProvider.cs line 15. No additional dependencies are required; usestring.Replacemethods. Only the line logging the token needs changing. No logic changes are needed, and the return value remains unsanitized (as it is part of the ACME protocol).