Skip to content
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

hardware survey module #1362

Closed
0pcom opened this issue Sep 17, 2022 · 1 comment
Closed

hardware survey module #1362

0pcom opened this issue Sep 17, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@0pcom
Copy link
Collaborator

0pcom commented Sep 17, 2022

  • the survey module will retrieve system hardware resources (to the extent available at different user levels) with the ghw library
  • a UUID will be generated to uniquely identify the running visor (either using the UUID library as its already used in the codebase or via a self-written random string generator)

Minimal struct to be encoded in survey results:

// The survey struct includes the minimal amount of information needed in the survey. As of now
// it is unclear whether we need further system info so it is dropped.
type Survey struct{
    UUID uuid.UUID
    PubKey cipher.PubKey
    Disks ghw.BlockInfo
    Product ghw.Product
    Memory ghw.Memory
}
  • survey results will be written to ./local/system.json once upon startup and be exposed via the new dmsghttp server upon request by a whitelisted survey server (see authorization mechanism for inter-service communication via whitelisted PubKeys; for simplicity, it can be same public key as setup node or can be separate key)
@0pcom 0pcom added the enhancement New feature or request label Sep 25, 2022
@0pcom
Copy link
Collaborator Author

0pcom commented Sep 26, 2022

#1369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants