Skip to content

Conversation

@jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Jan 16, 2026

omdb db disks info started failing due to a LookupPath check preventing the omdb OpContext from looking up arbitrary disks. Fix this by looking up the disk directly in the database in omdb, then splitting the existing disk_get into a version that accepts the Disk model directly.

Fixes #9624

`omdb db disks info` started failing due to a `LookupPath` check
preventing the omdb OpContext from looking up arbitrary disks. Fix this
by looking up the disk directly in the database in omdb, then splitting
the existing `disk_get` into a version that accepts the Disk model
directly.

Fixes oxidecomputer#9624
@jmpesp jmpesp added this to the 18 milestone Jan 16, 2026
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable to me!

Comment on lines 321 to 323
/// Prefer to use `disk_get` instead: this version of the function bypasses
/// the LookupPath induced permissions check and is (currently) only called
/// from omdb.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe worth explicitly saying that nothing in Nexus should use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

089d955 has some stronger language here

@jmpesp jmpesp enabled auto-merge (squash) January 21, 2026 16:56
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.

Allow omdb to work with different disk types

2 participants