Repository navigation
Conversation
dolanor
marked this pull request as draft
April 12, 2023 17:23
dolanor
force-pushed
the
secret-scrub-multi-write
branch
from
April 13, 2023 13:54
b689094 to
2b4f4e7
Compare
Contributor
Author
|
There was a weird behavior where the output wouldn't get correctly scrubbed. |
dolanor
force-pushed
the
secret-scrub-multi-write
branch
from
April 13, 2023 14:03
2b4f4e7 to
f6e7fca
Compare
Contributor
Author
|
There is some issue with the way the line buffer works. It holds the last line to be to check it with future secret. I'm gonna switch to another secret improvement that should be faster to deliver in the meantime. |
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
when the scrubbing happens, it will try to scrub the biggest first if a secret is a substring of a bigger one, it will avoid partial leaks of the bigger secret Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
Signed-off-by: Tanguy ⧓ Herrmann <[email protected]>
dolanor
force-pushed
the
secret-scrub-multi-write
branch
from
April 20, 2023 02:42
af5e946 to
d1a9f7e
Compare
Contributor
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Contributor
|
This PR was closed because it has been stalled for 7 days with no activity. |
Ardaferad35
added a commit
to Ardaferad35/CineVerse
that referenced
this pull request
Aug 5, 2026
The project previously avoided the Hilt Gradle plugin entirely due to a known AGP 9 incompatibility (dagger/dagger#4944), manually extending generated Hilt_* base classes as a workaround. Root-caused it: - Hilt 2.57.1 (in use) predates AGP 9 support. 2.58/2.59 added it but 2.59 shipped with a runtime regression (dagger/dagger#5099, ComponentTreeDeps missing from the artifact). 2.60.1 fixes both. - hilt-navigation-compose was pinned to 1.2.0 because 1.4.0 requires compileSdk 37 (project is on 36); 1.3.0 is the latest stable that doesn't require it. With the real plugin applied and hiltJavaCompileDebug actually running for the first time, it surfaced a real bug the pluginless setup had been silently masking: Dagger does not support Kotlin constructor default parameter values, and MovieRepository/TvRepository/ RecommendationRepository/UserListRepository relied on them as their only injection path (e.g. `movieDao: MovieDao = AppGraph.movieDao`). Fixed by dropping the defaults from the @Inject constructors (Hilt now resolves every dependency from the existing DatabaseModule/ FirebaseModule/NetworkModule/ConnectivityModule bindings) and adding a `default()` companion factory carrying the old default expressions, for the ~15 call sites across screens/workers/other ViewModels that still construct these repositories manually outside Hilt. Behavior is unchanged; only how the instances get wired changed. The wider inconsistency (AppGraph service locator + manual repository construction alongside Hilt) is unchanged by this commit and remains tracked as follow-up work.
Ardaferad35
added a commit
to Ardaferad35/CineVerse
that referenced
this pull request
Aug 13, 2026
The project previously avoided the Hilt Gradle plugin entirely due to a known AGP 9 incompatibility (dagger/dagger#4944), manually extending generated Hilt_* base classes as a workaround. Root-caused it: - Hilt 2.57.1 (in use) predates AGP 9 support. 2.58/2.59 added it but 2.59 shipped with a runtime regression (dagger/dagger#5099, ComponentTreeDeps missing from the artifact). 2.60.1 fixes both. - hilt-navigation-compose was pinned to 1.2.0 because 1.4.0 requires compileSdk 37 (project is on 36); 1.3.0 is the latest stable that doesn't require it. With the real plugin applied and hiltJavaCompileDebug actually running for the first time, it surfaced a real bug the pluginless setup had been silently masking: Dagger does not support Kotlin constructor default parameter values, and MovieRepository/TvRepository/ RecommendationRepository/UserListRepository relied on them as their only injection path (e.g. `movieDao: MovieDao = AppGraph.movieDao`). Fixed by dropping the defaults from the @Inject constructors (Hilt now resolves every dependency from the existing DatabaseModule/ FirebaseModule/NetworkModule/ConnectivityModule bindings) and adding a `default()` companion factory carrying the old default expressions, for the ~15 call sites across screens/workers/other ViewModels that still construct these repositories manually outside Hilt. Behavior is unchanged; only how the instances get wired changed. The wider inconsistency (AppGraph service locator + manual repository construction alongside Hilt) is unchanged by this commit and remains tracked as follow-up work.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We need to scrub even if the secret is written in multiple
os.Stdout.Write().Current state
After investigation, our system split big secrets into 32KB chunks.
And our secrets are limited to < 128000 bytes values.
Buildkit seems to handle bigger plaintext values, but we pass our secrets to the shim via
os/exec.Cmdwhich limits the size of passed parameters. (I'll see how to improve that, maybe by passing the secrets as file to the shim command line)