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
[web] show pskc on the "status" web page #2249
base: main
Are you sure you want to change the base?
Conversation
Displaying PSKC on a web page is more convenient for users to obtain value as a credential for the commissioner to join the network.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2249 +/- ##
===========================================
- Coverage 55.77% 39.81% -15.97%
===========================================
Files 87 88 +1
Lines 6890 9746 +2856
Branches 0 718 +718
===========================================
+ Hits 3843 3880 +37
- Misses 3047 5668 +2621
- Partials 0 198 +198 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Did you verify that this can actually work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -383,6 +383,9 @@ std::string WpanService::HandleStatusRequest() | |||
VerifyOrExit((rval = client.Execute("partitionid")) != nullptr, ret = kWpanStatus_GetPropertyFailed); | |||
networkInfo["Network:PartitionID"] = rval; | |||
|
|||
VerifyOrExit((rval = client.Execute("pskc")) != nullptr, ret = kWpanStatus_GetPropertyFailed); | |||
networkInfo["Network:PSKc"] = rval; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not encourage directly displaying a static credential that can be used to administer the network.
Displaying PSKC on a web page is more convenient for users to obtain value as a credential for the commissioner to join the network.