TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
994 stars 309 forks source link

Simplify generating API keys for gateways #6697

Open KrishnaIyer opened 1 year ago

KrishnaIyer commented 1 year ago

Summary

Simplify generating API keys for gateways

Current Situation

We have the API Key screen today to create a gateway API key.

Screenshot 2023-11-09 at 14 11 35

Why do we need this? Who uses it, and when?

API Keys for gateways can only be one of two types

  1. Gateway connection (including LBS LNS): This API key requires only one right Right_RIGHT_GATEWAY_LINK, "link as Gateway to a Gateway Server for traffic exchange, i.e. write uplink and read downlink"
  2. CUPS: This requires three rights:
    • View Gateway Information
    • Retrieve Secrets Associated with the gateway
    • Edit basic gateway settings

Instead of users going to this page and selecting the rights, we should make this easier.

Proposed Implementation

In the overview page of a particular gateway, have a button to generate an API Key.

Contributing

Code of Conduct

KrishnaIyer commented 1 year ago

Phase 3 of https://github.com/TheThingsIndustries/product-management/issues/29

KrishnaIyer commented 1 month ago

@pierrephz: This is also a good one for you to work on the UX for.

@mjamescompton for the implementation.