Check authorization in Basics Station discovery #6734
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
References https://github.com/TheThingsIndustries/lorawan-stack-support/issues/1007
References https://github.com/TheThingsIndustries/lorawan-stack/pull/3974
Changes
Testing
Unit tests and local testing. This is currently live on
staging1
.Testing steps:
Regressions
All of the implementations derived form the Semtech reference implementation provide the credentials during discovery. Tektelic also provides the credentials during discovery. So does Kerlink.
I've ran the above test sequence for all of the vendors.
Kerlink unfortunately doesn't re-trigger CUPS if discovery fails, but that's unrelated to this fix. They run CUPS periodically every hour, so should someone need to migrate, it should more manageable. For reference, the reference implementation runs CUPS every 24 hours if discovery never fails.
Notes for Reviewers
We cannot unfortunately return a 'good' HTTP status code, as the gateway identifiers are not available before the WebSocket upgrade occurs. We have to return the error via WebSockets.
No need to review.
Checklist
README.md
for the chosen target branch.CHANGELOG.md
.CONTRIBUTING.md
, there are no fixup commits left.