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

Survey collection whitelist #1557

Merged
merged 5 commits into from
May 16, 2023
Merged

Survey collection whitelist #1557

merged 5 commits into from
May 16, 2023

Conversation

0pcom
Copy link
Collaborator

@0pcom 0pcom commented May 15, 2023

This PR comprises minor changes which will enable whitelist-based authentication for the dmsghttp log server, specifically and only implemented for the system survey itself (node-info.json)

these changes reflect those in DMSG PR #219

  • Added SurveyWhitelist []cipher.PubKey array to config << This needs a corresponding change in the conf service to provide the keys we want to whitelist

The whitelisted keys for survey collection will also always include those keys in the hypervisor field as well as those in the dmsgpty whitelist, so that node operators can also collect the surveys from their visors once they have set either a remote hypervisor or added a key to the dmsgpty whitelist

Note: It is still necessary to add an api endpoint for the skywire-cli log survey & transport log collection to optionally use the visor's public key / existing dmsg client to download the surveys, among other minor changes.

Copy link
Contributor

@mrpalide mrpalide left a comment

Choose a reason for hiding this comment

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

Two small comments.

pkg/visor/logserver/api.go Outdated Show resolved Hide resolved
pkg/visor/visorconfig/v1.go Outdated Show resolved Hide resolved
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.

2 participants