-
Notifications
You must be signed in to change notification settings - Fork 0
chore: 네트워크 디버깅을 위한 Chucker 라이브러리 연동 #286
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
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
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.
🧩 Analysis chain
🌐 Web query:
Chucker 4.3.1 ChuckerInterceptor Builder redactHeaders Authorization Cookie Set-Cookie Android OkHttp💡 Result:
In Chucker, header redaction is configured on
ChuckerInterceptor.BuilderviaredactHeaders(vararg String)—so to hide auth/cookie values you can do:Chucker will replace the values of those headers with
**in the Chucker UI/logged transactions. [1]Also, I couldn’t find a Chucker 4.3.1 artifact published to common indexes; the latest listed in early 2026 appears to be 4.3.0. [2]
Sources: [1] [2]
🏁 Script executed:
Repository: YAPP-Github/Reed-Android
Length of output: 696
🏁 Script executed:
Repository: YAPP-Github/Reed-Android
Length of output: 959
🏁 Script executed:
Repository: YAPP-Github/Reed-Android
Length of output: 1676
🏁 Script executed:
Repository: YAPP-Github/Reed-Android
Length of output: 95
🏁 Script executed:
Repository: YAPP-Github/Reed-Android
Length of output: 50
🏁 Script executed:
# Read the version catalog cat gradle/libs.versions.tomlRepository: YAPP-Github/Reed-Android
Length of output: 11177
인증 헤더는 Chucker 수집 대상에서 제외해 주세요.
현재 코드는
ChuckerInterceptor(context)기본 생성자로 생성되어Authorization,Cookie,Set-Cookie같은 민감 헤더가 그대로 저장될 수 있습니다. 디버그 빌드여도 기기에서 열람·공유 가능한 네트워크 캡처가 남기 때문에 보안/프라이버시 관점에서 위험합니다. 93번 줄에서Builder로 변경하면서 인증 관련 헤더를 마스킹하세요.민감 헤더 마스킹 예시
fun provideChuckerInterceptor( `@ApplicationContext` context: Context, ): ChuckerInterceptor { - return ChuckerInterceptor(context) + return ChuckerInterceptor.Builder(context) + .redactHeaders("Authorization", "Cookie", "Set-Cookie") + .build() }📝 Committable suggestion
🤖 Prompt for AI Agents