Skip to content

PB-15775: Drop 14 fields, move the per-run record - #466

Merged
lalat-das merged 1 commit into
pb-15775-rcbfrom
PB-15775-rcb-field-audit
Oct 29, 2026
Merged

lalat-das merged 1 commit into
pb-15775-rcbfrom
PB-15775-rcb-field-audit

Conversation

@lalat-das

Copy link
Copy Markdown
Collaborator

A field review found fields a reader can derive, fields in the wrong object, and a tier check a caller can bypass.

Dropped, each reserved by number and by name:

  • AdminScopeInfo tier, granted_time and last_committed_time, and MaterializedResourceSet materialized_time. The service has only two write paths and both set Metadata create_time and last_update_time to the same instant, so the pair could never differ
  • DelegationRuleInfo delegate_tier. The check compared a value the caller sent, and was skipped when nothing was sent, so a caller could claim a low tier and pass. The server now reads each delegate's tier from the identity
  • DelegationRuleInfo include_future_children. The kind of the granted resource decides this, so a flag could only make it wrong
  • DerivedSchedule CR names and uid, and BindingInfo backup_schedule_uid. BindingInfo already reserved its own CR names as a digest of schedule_key
  • RecoveryPointInfo accessible. A caller is shown only the points of resources they can see, so filtering answers it
  • ProtectionIntent Classification, an enum with no field left

Moved to RecoveryPointInfo, which is the only per-run object:

  • hook_revision off BindingInfo, plus new origin and hook_outcome, because every run must record all three
  • The SLA Policy and its revision off BackupInfo, which one shared backup cannot hold for a whole schedule group

Added:

  • BindingInfo vsc_overrides, so a Binding Rule's vsc_override_template has somewhere to land
  • PlacementAssignmentInfo elevations, replacing a single string the next elevation overwrote
  • preview_token on the AdminScope create and update responses. The commit requires one and no call returned it
  • repeated delegate_ids, because one delegation names several users

Also removed every journey reference from the comments.

What this PR does / why we need it:

Which issue(s) this PR fixes (optional)
Closes #

Special notes for your reviewer:

A field review found fields a reader can derive, fields in the wrong
object, and a tier check a caller can bypass.

Dropped, each reserved by number and by name:

- AdminScopeInfo tier, granted_time and last_committed_time, and
  MaterializedResourceSet materialized_time. The service has only two
  write paths and both set Metadata create_time and last_update_time
  to the same instant, so the pair could never differ
- DelegationRuleInfo delegate_tier. The check compared a value the
  caller sent, and was skipped when nothing was sent, so a caller
  could claim a low tier and pass. The server now reads each
  delegate's tier from the identity
- DelegationRuleInfo include_future_children. The kind of the granted
  resource decides this, so a flag could only make it wrong
- DerivedSchedule CR names and uid, and BindingInfo
  backup_schedule_uid. BindingInfo already reserved its own CR names
  as a digest of schedule_key
- RecoveryPointInfo accessible. A caller is shown only the points of
  resources they can see, so filtering answers it
- ProtectionIntent Classification, an enum with no field left

Moved to RecoveryPointInfo, which is the only per-run object:

- hook_revision off BindingInfo, plus new origin and hook_outcome,
  because every run must record all three
- The SLA Policy and its revision off BackupInfo, which one shared
  backup cannot hold for a whole schedule group

Added:

- BindingInfo vsc_overrides, so a Binding Rule's vsc_override_template
  has somewhere to land
- PlacementAssignmentInfo elevations, replacing a single string the
  next elevation overwrote
- preview_token on the AdminScope create and update responses. The
  commit requires one and no call returned it
- repeated delegate_ids, because one delegation names several users

Also removed every journey reference from the comments.
@lalat-das
lalat-das merged commit 9d418cb into pb-15775-rcb Oct 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant