Skip to content

Feature: Admin PKI fields #619

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

Merged
merged 5 commits into from
May 16, 2025

Conversation

philon-
Copy link
Contributor

@philon- philon- commented May 13, 2025

Description

The remaining two admin key fields have been added and at least one valid PKI field is required when setting managed mode.

Related Issues

#315 - Add ability to add all 3 PKI admin keys
#355 - Warn users from selecting managed node

Changes Made

  • Removed generate key button for admin key fields
  • Added two more fields
  • Moved toggles for managed mode and legacy admin mode below PKI fields.
  • Managed toggle now requires at least one valid admin key field.
  • Refactored so that onChange is not called twice which would result in states not being set as expected.

Testing Done

Limited testing with RAK device on 2.6.4.b89355f Beta, more testing needed.

Screenshots (if applicable)

Screenshot 2025-05-15 at 13 19 26

Checklist

  • Code follows project style guidelines
  • All CI checks pass
  • Dependent changes have been merged

Additional Notes

Copy link

vercel bot commented May 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-test ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2025 11:24am

@philon-
Copy link
Contributor Author

philon- commented May 15, 2025

Some refactoring was made to get rid of double onChange calls, and checks added before allowing managed mode.

Would appreciate some help with testing if possible.

@philon- philon- marked this pull request as ready for review May 15, 2025 11:30
@philon- philon- requested a review from danditomaso May 15, 2025 11:31
@danditomaso
Copy link
Collaborator

@philon- Sounds good, thanks for taking a second look at this. I'll throughly test it out this afternoon.

@danditomaso
Copy link
Collaborator

@philon- Nice work on this! I am testing it out now and every seems to work correctly regarding adding/updating/removing public keys. Well done. LGTM

@danditomaso danditomaso merged commit 1274584 into meshtastic:master May 16, 2025
4 checks passed
@philon- philon- deleted the feat/admin-PKI-fields branch May 17, 2025 14:04
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