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

[web] show pskc on the "status" web page #2249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ZhangLe2016
Copy link

Displaying PSKC on a web page is more convenient for users to obtain value as a credential for the commissioner to join 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.
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 39.81%. Comparing base (2b41187) to head (cec451b).
Report is 632 commits behind head on main.

Files Patch % Lines
src/web/web-service/wpan_service.cpp 0.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@wgtdkp wgtdkp left a 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?

@ZhangLe2016 ZhangLe2016 requested a review from wgtdkp April 15, 2024 08:22
@ZhangLe2016
Copy link
Author

LGTM.

Did you verify that this can actually work?
Screenshot from 2024-04-15 16-42-02

Copy link
Member

@wgtdkp wgtdkp left a comment

Choose a reason for hiding this comment

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

👍

@ZhangLe2016 ZhangLe2016 requested review from jwhui and removed request for bukepo April 26, 2024 05:11
@@ -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;
Copy link
Member

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.

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.

None yet

3 participants