Commit Graph

446 Commits

Author SHA1 Message Date
Arnaud Cogoluègnes b921ac11a8
Merge pull request #2712 from rabbitmq/rabbitmq-stream-prometheus
Add stream prometheus plugin
2021-01-27 16:46:37 +01:00
Michael Klishin 52479099ec
Bump (c) year 2021-01-22 09:00:14 +03:00
Arnaud Cogoluègnes bf72683eb2
Add stream prometheus plugin 2021-01-11 16:49:56 +01:00
Arnaud Cogoluègnes 54554b88d0
Merge pull request #2650 from rabbitmq/rabbitmq-stream-management
Introduce stream management plugin
2021-01-06 09:24:59 +01:00
Michael Klishin 3542f65fcc
Ditto
(cherry picked from commit a0a6e1e259eadaee304ca0dd60ad86870ad3206a)
2021-01-05 17:57:30 +03:00
Michael Klishin 379d117590
Squash a warning
(cherry picked from commit 4e77c1f0da0860975aceb3f72910dd8964f16d25)
2021-01-05 17:57:30 +03:00
Michael Klishin 5a9671eac8
Spring Boot controller: improve logging
(cherry picked from commit b826fa2546f467209d20382902f5ae498c8c5653)
2021-01-05 17:57:30 +03:00
Michael Klishin bad086d592
Bump Spring Boot parent
(cherry picked from commit 5b7efb621bac311ef6ccdefc20c50a62e1be422c)
2021-01-05 17:57:30 +03:00
Arnaud Cogoluègnes 23d7e8114c
Introduce stream management plugin 2020-11-19 14:48:25 +01:00
Jean-Sébastien Pédron 47686ee1f0
Remove unused .github directories
They were valid until the switch to the "monorepository" when everything
was merged into a single Git repository.
2020-11-17 13:33:16 +01:00
Arnaud Cogoluègnes cbe5a42bea Update rabbitmq-components.mk 2020-11-03 14:27:34 +01:00
Michael Klishin fe22b1ad02 Update rabbitmq-components.mk 2020-10-21 12:55:30 +03:00
Luke Bakken 019db68ddf Update rabbitmq-components.mk 2020-08-04 08:41:46 -07:00
Jean-Sébastien Pédron 793960a9b0 Update rabbitmq-components.mk 2020-07-30 12:06:50 +02:00
Luke Bakken 41a4439557 Update rabbitmq-components.mk 2020-07-29 10:02:01 -07:00
dcorbacho 2d086d5c6f Update erlang.mk 2020-07-21 14:31:48 +01:00
Jean-Sébastien Pédron 8de724b4b5 Update rabbitmq-components.mk 2020-07-21 12:07:56 +02:00
Michael Klishin 513aa57bbf Update rabbitmq-components.mk 2020-07-21 03:42:41 +03:00
dcorbacho f8b3bfe8ae Revert drop of Exhibit B on MPL 2.0 2020-07-20 16:56:47 +01:00
dcorbacho 8ef38a36ef Update LICENSE 2020-07-20 10:40:57 +01:00
Michael Klishin b6a3b34be6 Update MPL2 license file, drop Exhibit B
and add a VMware copyright notice.

We did not mean to make this code Incompatible with Secondary Licenses
as defined in [1].

1. https://www.mozilla.org/en-US/MPL/2.0/FAQ/
2020-07-17 14:53:05 +03:00
dcorbacho 52eb308ea4 Switch to Mozilla Public License 2.0 (MPL 2.0) 2020-07-10 20:14:09 +01:00
Luke Bakken 2914f86a6d Handle `undefined` case for AuthzData
Fixes #100
2020-06-30 06:33:51 -07:00
Jean-Sébastien Pédron 679c3dd9b1 Update erlang.mk 2020-06-23 17:13:14 +02:00
Michael Klishin 3a34b15a10 Bump Recon to 2.5.1
for Erlang 23 compatibility of 'rabbitmq-diagnostics observer'

References zhongwencool/observer_cli#68.
2020-06-09 08:22:13 +03:00
Jean-Sébastien Pédron 8299fb28c0 Update copyright (year 2020) 2020-03-10 16:02:32 +01:00
Gerhard Lazu d628a6dfcf Update rabbitmq-components.mk 2020-03-06 09:19:13 +00:00
Gerhard Lazu 41609a604d Update erlang.mk 2020-03-06 09:17:15 +00:00
Jean-Sébastien Pédron a5b819719a Travis CI: Update config from rabbitmq-common 2020-03-04 14:24:26 +01:00
Jean-Sébastien Pédron 03d739bbea Travis CI: Update config from rabbitmq-common 2020-03-04 11:17:13 +01:00
Jean-Sébastien Pédron 9900030ac9 Travis CI: Update config from rabbitmq-common 2020-03-03 14:53:36 +01:00
Michael Klishin d280e96139 Add some essential debug logging of requests issued
Per rabbitmq-users feedback.
2020-02-29 19:42:01 +03:00
Michael Klishin 388ad7270a Django example: white list localhost 2020-02-29 19:40:50 +03:00
Gerhard Lazu 52c85554b2 Update rabbitmq-components.mk 2020-02-11 15:31:41 +00:00
Michael Klishin c7176c9123 (c) bump 2019-12-29 05:50:24 +03:00
Jean-Sébastien Pédron bc9c1bde44 Git: Ignore copied CLI 2019-12-12 13:23:11 +01:00
Jean-Sébastien Pédron 624cc77daf Update rabbitmq-components.mk 2019-12-12 13:14:51 +01:00
kjnilsson a05f8bf7f7 Update rabbitmq-components.mk 2019-09-13 10:24:13 +01:00
kjnilsson c194e97d92 Update rabbitmq-components.mk 2019-09-04 10:30:51 +01:00
Jean-Sébastien Pédron 51bb4c8a24 Update erlang.mk 2019-08-29 20:44:46 +02:00
Michael Klishin 4366607126 Update rabbitmq-components.mk 2019-08-11 01:47:47 +10:00
Jean-Sébastien Pédron d5add9d171 Update erlang.mk 2019-08-02 09:53:27 +02:00
Michael Klishin bd47c06b4d Update rabbitmq-components.mk 2019-08-01 17:13:08 +03:00
Luke Bakken fecb9e4c86 Add GitHub templates
And LICENSE file.

Related to rabbitmq/rabbitmq-auth-backend-oauth2#33
2019-07-18 14:35:22 -07:00
Arnaud Cogoluègnes 7b1c4bed68 Update rabbitmq-components.mk 2019-07-09 16:05:49 +02:00
Michael Klishin a484ede8f8 Adapt to rabbit_authz_backend interface changes
from rabbitmq/rabbitmq-auth-backend-oauth2#28.
2019-07-03 09:54:14 +02:00
Jean-Sébastien Pédron 915d050983 Update rabbitmq-components.mk 2019-06-28 16:05:24 +02:00
Jean-Sébastien Pédron 7ba5c6c6c7 Update erlang.mk 2019-06-28 16:01:39 +02:00
Michael Klishin 1ebd2c1142 examples/README edits 2019-06-26 20:56:21 +02:00
Michael Klishin 4fe092b7cb Wording 2019-06-26 20:49:33 +02:00
Zdzislaw Krajewski 926fc1c503 Add docker files, update readme 2019-06-26 18:43:25 +02:00
Zdzislaw Krajewski 61a3d64903 Disable csfr check, update allowed hostname in settings, setup looging 2019-06-26 18:09:05 +02:00
Arnaud Cogoluègnes 8afaae411a Add Maven wrapper to Spring Boot example 2019-06-14 11:00:24 +02:00
Arnaud Cogoluègnes 90ea9f76cd Add debug interceptor to Spring Boot example
To log HTTP parameters.
2019-06-14 10:48:03 +02:00
Arnaud Cogoluègnes ff2ed6e831 Propagate protocol-specific context to HTTP backend
Information like MQTT client ID is now propagated to the backend for
all authentication and authorization functions.

References rabbitmq/rabbitmq-server#1767
2019-06-03 14:35:53 +02:00
Arnaud Cogoluègnes e0f65364c7 Add topic URL in example readme 2019-06-03 14:26:29 +02:00
Gerhard Lazu b386f03135 Update rabbitmq-components.mk 2019-06-03 02:23:31 +01:00
Michael Klishin f7b12f8fe8 Update error message in the assertion 2019-05-24 06:52:08 +01:00
Michael Klishin 9b332d1868 Error message wording 2019-05-23 10:35:21 +01:00
Szympon Mentel bc88164b0a Correctly recognise when access is denied for user
So far, the "deny" resopnse from an HTTP authentication server was parsed
as a string while an atom was expected. As a result, if the server denied
a user it simply happend to work as the plugin would return an error
because of the type mismatch and the user would not be accepted anyway.
2019-05-22 15:17:17 +02:00
Szympon Mentel 63f496b75d Add tests for user authentication
In the tests a mock of an HTTP authenticaiton server is started.
2019-05-22 15:16:45 +02:00
Jean-Sébastien Pédron 4ad3b386b3 Update rabbitmq-components.mk 2019-05-17 15:17:13 +02:00
Michael Klishin 7da2a913db Update rabbitmq-components.mk 2019-05-17 08:36:21 +03:00
Michael Klishin e885cf9ec4 Update rabbitmq-components.mk 2019-05-16 23:22:42 +03:00
Michael Klishin ebc92c1402 Update rabbitmq-components.mk 2019-05-14 11:50:38 +03:00
Michael Klishin c8cbb0fd12 Update rabbitmq-components.mk 2019-05-13 16:40:24 +03:00
Gerhard Lazu b17a10f63b Update rabbitmq-components.mk 2019-05-01 13:18:07 +01:00
Luke Bakken edc9cbf4ea Update rabbitmq-components.mk 2019-04-30 16:20:53 -07:00
Jean-Sébastien Pédron 2b522864f8 Update rabbitmq-components.mk 2019-04-30 14:47:25 +02:00
soumen1102 a08696e42b Updated Readme.md to include HTTP Method in conf
The rabbitmq.conf section in new format is missing the inclusion of HTTP METHOD due to which it default to a Get call and does not work for controller methods defined for HttpPost . This what most of the examples in the repo outline as well for the AuthBackend.
2019-04-24 16:51:39 +05:30
Gerhard Lazu 7d5aaeee29 Update rabbitmq-components.mk 2019-04-22 21:54:58 +01:00
Luke Bakken 4e96813930 Take peeraddr as binary() into account 2019-03-25 15:10:45 -07:00
Luke Bakken 68c70c006a Ensure tuple IP is formatted correctly 2019-03-22 16:07:14 -07:00
Luke Bakken c76a927b5c Remove unused code 2019-03-22 10:32:56 -07:00
Luke Bakken 0fa8c8bc41 Modify check_vhost_access/3 to use map of data
Part of rabbitmq/rabbitmq-auth-backend-cache#20
2019-03-22 07:24:19 -07:00
Michael Klishin c605647faf Travis: use Erlang 21.3, Elixir 1.8.1 2019-03-20 10:33:12 +03:00
Spring Operator 05d0e87fb7 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 2 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 4 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences
2019-03-19 20:08:13 -05:00
Michael Klishin 6c39002dc8 Update rabbitmq-components.mk 2019-03-15 05:32:45 +03:00
Michael Klishin bff39e9a89 Update rabbitmq-components.mk 2019-03-15 05:05:36 +03:00
Spring Operator d5aedc93c1 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/xsd/maven-4.0.0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-11 21:51:04 -05:00
Michael Klishin 0f6c93d806 README updates 2019-02-27 21:42:48 +03:00
Michael Klishin d47c658220 Post space-separated tags, add tests 2019-02-27 21:10:25 +03:00
Michael Klishin 7ae6bbbabe Bump Spring Boot dependency 2019-02-27 21:10:25 +03:00
romerod 30e8a3f31c Pass tags to http backends 2019-02-27 21:10:25 +03:00
Michael Klishin 7fb530291c Update README.md 2019-02-27 17:38:44 +03:00
Michael Klishin 04b2d50591 Update rabbitmq-components.mk 2019-02-12 23:23:46 +03:00
Michael Klishin 3c7157d011 .travis.yml: use 21.2 as 21.2.2 builds are no available 2019-01-14 01:20:17 +03:00
Michael Klishin d1e9bc2cb8 .travis.yml: sync Erlang and Elixir versions, require Erlang/OTP 21.2 2019-01-13 05:49:56 +03:00
Luke Bakken c94ad8265a Update rabbitmq-components.mk 2019-01-09 12:54:53 -08:00
Luke Bakken b41112b210 Update rabbitmq-components.mk 2019-01-08 11:58:23 -08:00
Michael Klishin e1fa5f83df Update rabbitmq-components.mk 2018-12-06 18:28:38 +03:00
Michael Klishin 716a122be4 Update rabbitmq-components.mk 2018-12-06 03:15:04 +03:00
Jean-Sébastien Pédron 4a9dc500de Update rabbitmq-components.mk 2018-11-30 14:56:44 +01:00
Jean-Sébastien Pédron 79639af126 Update rabbitmq-components.mk 2018-11-22 09:19:29 +01:00
Andrey Somov 42a0959883 Refactor: remove AuthController.check() since it is used only once 2018-11-05 11:47:26 +01:00
Arnaud Cogoluègnes 7e6f7d3879 Upgrade Spring Boot example to Spring Boot 2.1.0 2018-11-05 11:13:23 +01:00
Arnaud Cogoluègnes 730ea81303 Polish Spring Boot Kotlin example
Add readme, use guest/guest for sample user, lower log level, return
tags to be able to use the backend for the management UI, enforce topic
permission with routing key start with "a" rule.
2018-11-05 10:44:20 +01:00
Andrey Somov a186ec7f4b Add test for deny 2018-11-02 13:23:32 +01:00
Andrey Somov 0dfb891284 Improve CSRF configuration 2018-11-02 10:11:49 +01:00
Andrey Somov a29e914dff Minor log change 2018-11-01 23:29:33 +01:00
Andrey Somov 1277f1752b Use Kotlin 1.3.0 2018-11-01 23:28:30 +01:00
Andrey Somov 16c83d4ccf Simplify AuthController 2018-11-01 23:19:46 +01:00
Andrey Somov 7361732cf4 Rename Kotlin project to use underscores as other examples 2018-11-01 23:10:26 +01:00
Andrey Somov d4f2db91b0 Implement and test all POST methods 2018-11-01 23:01:26 +01:00
Andrey Somov 07727cd3a0 Implement POST method 2018-11-01 22:38:57 +01:00
Andrey Somov e369afe076 Add controller and its test 2018-11-01 22:38:51 +01:00
Andrey Somov 72b5c7c34f Rename classes to be shorter 2018-11-01 22:37:47 +01:00
Andrey Somov 5abc015ba5 Rename package to be shorter 2018-11-01 22:36:51 +01:00
Andrey Somov c08f2202c8 Add Kotlin project created by SPRING INITIALIZR 2018-11-01 22:31:19 +01:00
kjnilsson bb385dd898 Update rabbitmq-components.mk 2018-10-29 12:43:13 +00:00
Jean-Sébastien Pédron 0bfeabd494 Update rabbitmq-components.mk 2018-09-19 10:38:10 +02:00
Jean-Sébastien Pédron afc423aae3 Update rabbitmq-components.mk 2018-09-11 14:22:23 +02:00
Jean-Sébastien Pédron 8240d92632 Update rabbitmq-components.mk 2018-08-09 17:44:09 +02:00
Jean-Sébastien Pédron f8be55cad8 Update rabbitmq-components.mk 2018-08-09 12:16:56 +02:00
Michael Klishin 81a41fc1ba More README edits 2018-07-30 00:51:34 +03:00
Michael Klishin 3901b4e28e Wording and README edits 2018-07-30 00:45:33 +03:00
Xneg 20f5896e88 * Updated Readme. 2018-07-29 15:13:24 +03:00
xneg 5375c17267 * Added standard logging.
* Changed user checked response for correct tags placement.
2018-07-26 12:42:56 +03:00
xneg 4041017394 ASP .NET Core 2.1 example 2018-07-24 11:37:42 +03:00
xneg 1ab5a71b3a Added a missing type declaration. 2018-07-11 19:37:49 +03:00
Michael Klishin 8d6ee4051d Accept authentication context in user_login_authorization/2
Part of rabbitmq/rabbitmq-server#1633.

[#158805410]
2018-07-03 23:30:53 +03:00
Jean-Sébastien Pédron c0063e187a Update rabbitmq-components.mk 2018-06-07 11:31:30 +02:00
Michael Klishin 9926f5493d Add a second user to the Spring Boot example 2018-05-16 22:39:59 -03:00
Michael Klishin deacd34548 Manually apply #68 with reduced duplication
Closes #68.
2018-05-16 21:49:51 -03:00
Luke Bakken 3ec7af16b1 Ensure that BOM is not sent in UTF8-encoded response 2018-04-25 15:17:24 -07:00
Jean-Sébastien Pédron 0c113d9868 Update erlang.mk 2018-04-11 10:52:35 +02:00
Jean-Sébastien Pédron 0b1d17e01c Update rabbitmq-components.mk 2018-04-11 10:51:16 +02:00
Jean-Sébastien Pédron 008c750d48 Update rabbitmq-components.mk 2018-04-11 10:09:58 +02:00
Jean-Sébastien Pédron b01de071a4 Travis CI: Update config from rabbitmq-common 2018-04-10 12:56:05 +02:00
Michael Klishin a01b3d94e6 README updates 2018-03-31 23:51:21 +03:00
Anthony 8937b331ec Add auth backend PHP example 2018-03-31 11:10:23 +02:00
Michael Klishin eae9b6ef04 README edits, references #65 2018-03-19 14:40:38 +03:00
Jean-Sébastien Pédron d28c6793db Update erlang.mk 2018-03-02 19:03:48 +01:00
Jean-Sébastien Pédron 3e1913273d Update rabbitmq-components.mk 2018-01-30 15:23:28 +01:00
Luke Bakken 2a701cbbca Update rabbitmq-components.mk 2018-01-29 16:22:09 -08:00
Jean-Sébastien Pédron 3bd1fcc8a2 Update rabbitmq-components.mk 2018-01-23 17:21:20 +01:00
Jean-Sébastien Pédron ac7349571b Update rabbitmq-components.mk 2018-01-23 15:31:10 +01:00
Diana Corbacho 2d6c436628 Update rabbitmq-components.mk 2018-01-22 22:13:17 +00:00
Michael Klishin ba2f0b9ef8 Wording
(cherry picked from commit c8b1d32ed53a9802e665f98f4fd22a09c952d5ff)
2017-12-22 20:25:14 +04:00
Michael Klishin d033cf88de Use get_env/2 here to avoid a badmatch
It was a temporary drive by change that's made it through to the
commit.

Fixes #62.

[#153877066]

(cherry picked from commit 2274efd30bfc29f11f641b896f8efff595d7309b)
2017-12-22 20:25:07 +04:00
Michael Klishin 84c7093e88 Add HTTP method field to Cuttlefish schema
Fixes #61.

(cherry picked from commit 38f77443935f4dc873429830bc57489051fa656d)
2017-12-19 18:33:37 +03:00
Michael Klishin 63348a3f11 More 3.7.0 README updates
(cherry picked from commit 306263adc89a039e1a7f835f2fc80d8301bbff4d)
2017-12-19 15:21:55 +03:00
Michael Klishin 6b6c672ae5 Mention that this plugin is distributed with RabbitMQ as of 3.7.0 2017-12-19 14:09:51 +03:00
Jean-Sébastien Pédron 26bb0cf529 Travis CI: Update config from rabbitmq-common 2017-12-15 15:10:31 +01:00
Jean-Sébastien Pédron 3152e4cefc Update rabbitmq-components.mk 2017-12-01 11:06:13 +01:00
Jean-Sébastien Pédron 80e6d688ec Update rabbitmq-components.mk 2017-11-28 14:00:36 +01:00
Jean-Sébastien Pédron 198f9f8d59 Update rabbitmq-components.mk 2017-11-28 13:25:55 +01:00
Jean-Sébastien Pédron f35ced4e84 Travis CI: Update config from rabbitmq-common 2017-11-07 17:53:07 +01:00
Jean-Sébastien Pédron 215f58d67a Travis CI: Update config from rabbitmq-common 2017-11-07 16:47:51 +01:00
Jean-Sébastien Pédron 929db2dc92 Merge branch 'stable' 2017-10-13 15:04:47 +02:00