Repository navigation
Skip pause rule features this version does not know - #234
Merged
Merged
Conversation
A pause rule naming a feature added in a later version made the verifier reject the whole policy, so every other pause stopped reaching this version until its last accepted policy expired. Feature names this version does not know are now skipped, and a rule with no known name left is dropped after it has been validated. Names must still be well-formed, distinct and at most 128 per rule; everything else is rejected as before. The signature covers the whole payload. The policy is requested with schema=3, where the service returns the published policy. Versions that reject unknown names keep asking for schema=2 and get a policy without them.
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.
Closes #233.
Problem
FeatureControlVerifier.ReadRulechecked every feature name in a rule againstControlledFeatures.Alland rejected the whole envelope when one was unknown. A pause of a feature added in a later version therefore stopped every pause from reaching this version, which kept its last accepted policy until that expired and reportedpolicy-rejected.Change
/api/v1/feature-controls?schema=3. The service returns the published policy there and keeps serving?schema=2without names newer than 2.7.6 for the versions that reject them.Platforms
The change is in policy verification and the request route only. It runs before any game, store or graphics context is read, so Steam and Xbox behave the same.
Tests
FeatureControlTests:FeatureControlGate;?schema=3route.Not verified here: behavior in a running game against the live service. The verifier and client run only in the Windows test suite.