astarte-platform / astarte_vmq_plugin

Astarte VerneMQ plugin publishes incoming messages on an AMQP exchange with some additional metadata, so they can be processed by other components.
http://astarte-platform.org/
Apache License 2.0
16 stars 10 forks source link

Do not authorize non-devices blindly in auth_on_publish and auth_on_subscribe #41

Closed Annopaolo closed 3 years ago

Annopaolo commented 3 years ago

Fix #1 . Now the Plugin returns :next instead of :okin auth_on_publish and auth_on_subscribe when the username doesn't contain a /(and so it is not considered a device).

codecov[bot] commented 3 years ago

Codecov Report

Merging #41 (daae321) into release-1.0 (0bc2f39) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release-1.0      #41   +/-   ##
============================================
  Coverage        73.03%   73.03%           
============================================
  Files                9        9           
  Lines              178      178           
============================================
  Hits               130      130           
  Misses              48       48           
Impacted Files Coverage Δ
lib/astarte_vmq_plugin.ex 92.98% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0bc2f39...fcf17b3. Read the comment docs.