TheThingsNetwork / lorawan-stack

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

Simplify generating API keys for gateways #6697

Open KrishnaIyer opened 10 months ago

KrishnaIyer commented 10 months 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 10 months ago

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