-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix(localMeta): Add delegated targets back to localMeta #384
fix(localMeta): Add delegated targets back to localMeta #384
Conversation
5263f97
to
e136a77
Compare
Hey Folks 👋🏻 -- Ideally we'd like to have a backport of In case that's not possible we can probably use our own fork instead. |
7b22213
to
f05d0a6
Compare
f05d0a6
to
6f8a65a
Compare
6f8a65a
to
7e326ed
Compare
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.
Seems fine to me, but I want to hear from @rdimitrov whether he has any concern about adding this back. Thanks!
d0e4dcf
to
7b23658
Compare
7b23658
to
893994b
Compare
@BaptisteFoy was an intern at DD working on this, and he has temporarily left, but will be rejoining Remote Config full-time on Nov 15th. Will wait for him until then. Baptiste: if you see this, no rush, but we are trying to wrap this up by Nov 30th. I'm sure we'll have enough time. Thanks in advance! |
f569829
to
c478700
Compare
c478700
to
412626a
Compare
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.
Great work, thanks very much, @BaptisteFoy! Approving after Zoom discussion. Would be great if you could add the 2-3 clarifying comments we discussed earlier.
@BaptisteFoy can you pls fix DCO? |
367fe61
cfe757e
to
367fe61
Compare
Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
…top metas Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
Adds verification of delegated targets when they go from the local store to the localMeta structure. The verification is done by selecting one target file per delegated targets that verify at least one, then build the delegation path from the top targets to that specific delegated file. Building the path is already verifying every targets in the path, so the whole path is safe to add to the localMeta. Doing so for every delegated targets lets us verify every delegated targets that is used at least once. Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
367fe61
to
45234ee
Compare
…mework#384) * upgrade(localMeta): Verify delegated targets Adds verification of delegated targets when they go from the local store to the localMeta structure. The verification is done by selecting one target file per delegated targets that verify at least one, then build the delegation path from the top targets to that specific delegated file. Building the path is already verifying every targets in the path, so the whole path is safe to add to the localMeta. Doing so for every delegated targets lets us verify every delegated targets that is used at least once. Signed-off-by: Baptiste Foy <baptiste.foy@datadoghq.com>
Following ed6788e, delegated targets are not added in
localMeta
anymore. This PR adds them back inlocalMeta
.Types of changes:
Description of the changes being introduced by the pull request:
The regression introduced in the aforementioned commit means that the delegated targets have to be read from the remote store all the time, even outside of the update process. In case of a remote failure or a mismatch between local and remote store, the query process breaks down on every call.
In our case, as the remote store contains only the last version of a delegated targets, if it fails to be validated (due to a missing target file for example), we enter this state.
Please verify and check that the pull request fulfills the following requirements: