Commit Graph

610 Commits

Author SHA1 Message Date
Loïc Hoguin 66ac1bf5e9
Bump observer_cli to 1.6.1
More responsive when the system is overloaded with file calls.
2021-03-01 21:55:27 +03:00
Michael Klishin 8fe3df9343
Upgrade Lager to 3.9.0 for OTP 24 compatibility
`lager_util:expand_path/1` use changes are
due to erlang-lager/lager#540
2021-02-26 00:52:15 +03:00
Michael Klishin f73e851f9c
Bump observer_cli to 1.6.0 2021-02-24 12:53:55 +03:00
Michael Klishin a5098b28a7
Bump Lager to 3.8.2 for OTP 24 compatibility 2021-02-24 12:53:30 +03:00
Michael Klishin 66badb9492
LDAP plugin: handle undefined app env values, pass Dialyzer 2021-02-11 21:26:27 +03:00
Michael Klishin cd683de436
Correct a duplicate snippet name 2021-02-11 19:46:06 +03:00
Michael Klishin 8ea212a6b6
New configuration settings for TLS
* [Client] hostname verification matching: wildcard or none
 * SNI hostname or none

Closes #2805
2021-02-11 00:12:24 +03:00
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 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 31a6448f0a Update rabbitmq-components.mk 2020-11-03 14:27:34 +01:00
Michael Klishin bc1f698dd6 Update rabbitmq-components.mk 2020-10-21 12:55:30 +03:00
Luke Bakken ac0df164ee Update rabbitmq-components.mk 2020-08-04 08:41:46 -07:00
Jean-Sébastien Pédron 91d053fd97 Update rabbitmq-components.mk 2020-07-30 12:06:51 +02:00
Luke Bakken 2881b75afb Update rabbitmq-components.mk 2020-07-29 10:02:01 -07:00
dcorbacho bc683ca0a6 Update erlang.mk 2020-07-21 14:31:50 +01:00
Jean-Sébastien Pédron 367fae631c Update rabbitmq-components.mk 2020-07-21 12:07:56 +02:00
Michael Klishin eb885b6cea Update rabbitmq-components.mk 2020-07-21 03:42:42 +03:00
dcorbacho f32267511d Revert drop of Exhibit B on MPL 2.0 2020-07-20 16:56:59 +01:00
dcorbacho ef50beca9f Update LICENSE 2020-07-20 10:41:12 +01:00
Michael Klishin 589705e935 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:06 +03:00
dcorbacho 015e1152c2 Switch to Mozilla Public License 2.0 (MPL 2.0) 2020-07-10 20:19:35 +01:00
Jean-Sébastien Pédron e4490b9cd0 Update erlang.mk 2020-06-23 17:13:20 +02:00
Michael Klishin 343d276395 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 7fbf4d5824 Merge pull request #121 from rabbitmq/setup-slapd
Setup slapd(8)
2020-03-26 16:16:17 +01:00
Jean-Sébastien Pédron 5e403e56ee Travis CI: Update config from rabbitmq-common 2020-03-26 16:07:18 +01:00
Jean-Sébastien Pédron 0a71c3cf7b system_SUITE: Setup slapd(8) at the beginning of the testsuite
... instead of relying on an external script to configure it.

This way, if OpenLDAP server is installed, `make ct-system` should work.
`TESTING.md` is updated with this new information.

It also means the following resources are now unused:
* The Docker and Vagrant files
* `setup.sh` and `seed.sh` in the `example` directory
2020-03-26 16:07:08 +01:00
Jean-Sébastien Pédron 3dbfddfca0 example/README.md: Record the source of those LDIF files 2020-03-26 15:54:23 +01:00
Jean-Sébastien Pédron 7eafadead3 rabbit_ldap_seed: Remove trailing whitespace 2020-03-26 14:52:36 +01:00
Michael Klishin ffefe91771 Explain 2020-03-24 16:08:11 +03:00
Luke Bakken d8ff8a548a Setting idle_timeout to 0 will request a connection for every operation
[171933299]
2020-03-23 14:32:59 -07:00
Luke Bakken ef14002fb6 Setting idle_timeout to 0 will request a connection for every operation
[171933299]
2020-03-23 10:29:26 -07:00
Jean-Sébastien Pédron 6c2d8a3c65 Update copyright (year 2020) 2020-03-10 16:05:14 +01:00
Jean-Sébastien Pédron 084605ab9d Update copyright (year 2020) 2020-03-10 16:02:56 +01:00
Gerhard Lazu 8f96fcb478 Update rabbitmq-components.mk 2020-03-06 09:19:13 +00:00
Gerhard Lazu 3299116be0 Update erlang.mk 2020-03-06 09:17:17 +00:00
Jean-Sébastien Pédron c3d58ccbbf Travis CI: Update config from rabbitmq-common 2020-03-04 14:31:20 +01:00
Jean-Sébastien Pédron 6f5aa0f8b6 Travis CI: Refresh config patch 2020-03-04 14:30:16 +01:00
Jean-Sébastien Pédron 234fe38096 Travis CI: Update config from rabbitmq-common 2020-03-04 11:17:13 +01:00
Jean-Sébastien Pédron 4a020deec5 Travis CI: Update config from rabbitmq-common 2020-03-03 14:53:37 +01:00
Jean-Sébastien Pédron 6fa1b6c21d Travis CI: Refresh config patch 2020-03-03 14:30:21 +01:00
Luke Bakken dcb92cfabf Remove unused variable
See b67ccfbd15
2020-02-28 15:08:36 -08:00
Luke Bakken c0f43acfba Remove spammy log message
Fixes #118
2020-02-27 14:40:05 -08:00
Gerhard Lazu 33e4b2e079 Update rabbitmq-components.mk 2020-02-11 15:31:41 +00:00
Michael Klishin d9890ad642 (c) bump 2019-12-29 05:50:24 +03:00
Jean-Sébastien Pédron c1e8307714 Git: Ignore copied CLI 2019-12-12 13:23:51 +01:00
Jean-Sébastien Pédron e4368878ec Update rabbitmq-components.mk 2019-12-12 13:14:52 +01:00
Jean-Sébastien Pédron 043fda72b8 system_SUITE: Bump timetrap from 1 to 2 minutes 2019-11-21 16:49:13 +01:00
Luke Bakken d9835870d2 Ensure results match expected rabbit_authz_backend behaviour
Fixes #116
2019-10-30 14:05:06 -07:00
Michael Klishin 554eeed9b2 Add a Dockerfile for running integration tests 2019-10-14 22:41:03 +03:00
Luke Bakken b843487019 Add warning messages when configuration values do not make sense 2019-10-14 09:58:58 -07:00
kjnilsson e59926bdbe Update rabbitmq-components.mk 2019-09-13 10:24:14 +01:00
kjnilsson b0a5340e00 Update rabbitmq-components.mk 2019-09-04 10:30:51 +01:00
Jean-Sébastien Pédron 809806784a Update erlang.mk 2019-08-29 20:44:48 +02:00
Michael Klishin c5096b0177 Update rabbitmq-components.mk 2019-08-11 01:47:47 +10:00
Jean-Sébastien Pédron 9d4786d5b8 Update erlang.mk 2019-08-02 09:53:29 +02:00
Michael Klishin 99212833d9 Update rabbitmq-components.mk 2019-08-01 17:13:08 +03:00
Luke Bakken 4ff2b8fb31 Update GitHub templates
Related to rabbitmq/rabbitmq-auth-backend-oauth2#34
2019-07-18 14:30:38 -07:00
Arnaud Cogoluègnes f5e3966e52 Update rabbitmq-components.mk 2019-07-09 16:05:49 +02:00
Michael Klishin 1d712739d5 Adapt to rabbit_authz_backend interface changes in rabbitmq/rabbitmq-auth-backend-oauth2#28. 2019-07-03 10:41:01 +02:00
Jean-Sébastien Pédron cb200c6327 Update rabbitmq-components.mk 2019-06-28 16:05:25 +02:00
Jean-Sébastien Pédron 420bca49ec Update erlang.mk 2019-06-28 16:01:41 +02:00
Arnaud Cogoluègnes db497a2baf Propagate protocol-specific context
Information like MQTT client ID is now propagated to the LDAP registry
for all authentication and authorization functions.

References rabbitmq/rabbitmq-server#1767
2019-06-03 15:54:37 +02:00
Gerhard Lazu 2c1aeb3866 Update rabbitmq-components.mk 2019-06-03 02:23:31 +01:00
Jean-Sébastien Pédron ffb311264b Update rabbitmq-components.mk 2019-05-17 15:17:13 +02:00
Michael Klishin 68a744b06f Update rabbitmq-components.mk 2019-05-17 08:36:23 +03:00
Michael Klishin 4dd8b09cee Update rabbitmq-components.mk 2019-05-16 23:22:43 +03:00
Michael Klishin 461cb5f6ed Update rabbitmq-components.mk 2019-05-14 11:50:39 +03:00
Michael Klishin 1b88a4aa63 Update rabbitmq-components.mk 2019-05-13 16:40:25 +03:00
Gerhard Lazu 088bb2bcba Update rabbitmq-components.mk 2019-05-01 13:18:07 +01:00
Luke Bakken 3a01f8e817 Update rabbitmq-components.mk 2019-04-30 16:20:53 -07:00
Jean-Sébastien Pédron 03f376c40d Update rabbitmq-components.mk 2019-04-30 14:47:25 +02:00
Gerhard Lazu 3384093b26 Update rabbitmq-components.mk 2019-04-22 21:54:59 +01:00
Luke Bakken 4953a835d9 Rename unused variable to reflect changes
Small part of rabbitmq/rabbitmq-auth-backend-cache#20
2019-03-22 11:08:15 -07:00
Spring Operator 2afc58cf87 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).

# HTTP URLs that Could Not Be Fixed
These URLs were unable to be fixed. Please review them to see if they can be manually resolved.

* http://blog.listincomprehension.com/search/label/procket (200) with 1 occurrences could not be migrated:
   ([https](https://blog.listincomprehension.com/search/label/procket) result ClosedChannelException).
* http://dozzie.jarowit.net/trac/wiki/TOML (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/TOML) result SSLHandshakeException).
* http://dozzie.jarowit.net/trac/wiki/subproc (200) with 1 occurrences could not be migrated:
   ([https](https://dozzie.jarowit.net/trac/wiki/subproc) result SSLHandshakeException).
* http://e2project.org (200) with 1 occurrences could not be migrated:
   ([https](https://e2project.org) result AnnotatedConnectException).
* http://nitrogenproject.com/ (200) with 2 occurrences could not be migrated:
   ([https](https://nitrogenproject.com/) result ConnectTimeoutException).
* http://proper.softlab.ntua.gr (200) with 1 occurrences could not be migrated:
   ([https](https://proper.softlab.ntua.gr) result SSLHandshakeException).
* http://yaws.hyber.org (200) with 1 occurrences could not be migrated:
   ([https](https://yaws.hyber.org) result AnnotatedConnectException).
* http://choven.ca (503) with 1 occurrences could not be migrated:
   ([https](https://choven.ca) result ConnectTimeoutException).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://fixprotocol.org/ (301) with 1 occurrences migrated to:
  https://fixtrading.org ([https](https://fixprotocol.org/) result SSLHandshakeException).
* http://erldb.org (UnknownHostException) with 1 occurrences migrated to:
  https://erldb.org ([https](https://erldb.org) result UnknownHostException).

## 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://cloudi.org/ with 27 occurrences migrated to:
  https://cloudi.org/ ([https](https://cloudi.org/) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) result 200).
* http://github.com/rabbitmq/rabbitmq-auth-backend-cache with 1 occurrences migrated to:
  https://github.com/rabbitmq/rabbitmq-auth-backend-cache ([https](https://github.com/rabbitmq/rabbitmq-auth-backend-cache) result 200).
* http://inaka.github.io/cowboy-trails/ with 1 occurrences migrated to:
  https://inaka.github.io/cowboy-trails/ ([https](https://inaka.github.io/cowboy-trails/) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://www.actordb.com/ with 2 occurrences migrated to:
  https://www.actordb.com/ ([https](https://www.actordb.com/) result 200).
* http://www.cs.kent.ac.uk/projects/wrangler/Home.html with 1 occurrences migrated to:
  https://www.cs.kent.ac.uk/projects/wrangler/Home.html ([https](https://www.cs.kent.ac.uk/projects/wrangler/Home.html) result 200).
* http://www.rabbitmq.com/ldap.html with 4 occurrences migrated to:
  https://www.rabbitmq.com/ldap.html ([https](https://www.rabbitmq.com/ldap.html) result 200).
* http://www.rabbitmq.com/plugin-development.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/plugin-development.html ([https](https://www.rabbitmq.com/plugin-development.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
* http://inaka.github.com/apns4erl with 1 occurrences migrated to:
  https://inaka.github.com/apns4erl ([https](https://inaka.github.com/apns4erl) result 301).
* http://inaka.github.com/edis/ with 1 occurrences migrated to:
  https://inaka.github.com/edis/ ([https](https://inaka.github.com/edis/) result 301).
* http://lasp-lang.org/ with 1 occurrences migrated to:
  https://lasp-lang.org/ ([https](https://lasp-lang.org/) result 301).
* http://rabbitmq.com/access-control.html with 1 occurrences migrated to:
  https://rabbitmq.com/access-control.html ([https](https://rabbitmq.com/access-control.html) result 301).
* http://saleyn.github.com/erlexec with 1 occurrences migrated to:
  https://saleyn.github.com/erlexec ([https](https://saleyn.github.com/erlexec) result 301).
* http://www.mozilla.org/MPL/ with 7 occurrences migrated to:
  https://www.mozilla.org/MPL/ ([https](https://www.mozilla.org/MPL/) result 301).
* http://zhongwencool.github.io/observer_cli with 1 occurrences migrated to:
  https://zhongwencool.github.io/observer_cli ([https](https://zhongwencool.github.io/observer_cli) result 301).
2019-03-20 03:11:50 -05:00
Michael Klishin 1aee8fa2d1 Travis: use Erlang 21.3, Elixir 1.8.1 2019-03-20 10:33:12 +03:00
Michael Klishin 2299ff77a2 Update rabbitmq-components.mk 2019-03-15 05:32:46 +03:00
Michael Klishin 40a82dc8ea Update rabbitmq-components.mk 2019-03-15 05:05:37 +03:00
Michael Klishin 78ea5109b1 Update rabbitmq-components.mk 2019-02-12 23:23:47 +03:00
Michael Klishin 2dc4442a73 Drive by change: use a Bionic VM to run OpenLDAP for tests 2019-02-08 03:43:05 +03:00
Michael Klishin 52d7cba41d Drive by change: Lager adds a trailing new line 2019-02-08 03:42:16 +03:00
Yury.Alioshinov 866f50790f replace rabbit_log by rabbit_log_ldap 2019-02-08 01:48:10 +03:00
Michael Klishin ebe0e0271c .travis.yml: use 21.2 as 21.2.2 builds are no available 2019-01-14 01:20:17 +03:00
Michael Klishin a9625cac82 .travis.yml: sync Erlang and Elixir versions, require Erlang/OTP 21.2 2019-01-13 05:49:56 +03:00
Luke Bakken 4f8decdc24 Update rabbitmq-components.mk 2019-01-09 12:54:54 -08:00
Luke Bakken ac28c24f41 Update rabbitmq-components.mk 2019-01-08 11:58:23 -08:00
Michael Klishin 1c493191d9 Update rabbitmq-components.mk 2018-12-06 18:28:39 +03:00
Michael Klishin 2046b6e8cf Update rabbitmq-components.mk 2018-12-06 03:15:05 +03:00
Jean-Sébastien Pédron 0437bdfcec Update rabbitmq-components.mk 2018-11-30 14:56:45 +01:00
Jean-Sébastien Pédron 555f64f0f4 Update rabbitmq-components.mk 2018-11-22 09:19:30 +01:00
Luke Bakken dab0ccc006 Rather than crash return error if search results in referrals
Fixes #97

The case of a referral being returned has only been brought up once. For now, return an error. If this turns out to be a more common case, the referral URL should be parsed and chased.
2018-11-02 15:44:20 -07:00
Luke Bakken 51e1a16a93 Add failing test for rabbitmq/rabbitmq-auth-backend-ldap#100 2018-11-02 11:59:25 -07:00
Joel Forsberg f8fd4393e1 Fix LDAP evaluation resulting in list of strings.
The previous code tries to do weird things by exchanging the arguments being put in to re:run(). Bidirectional match might seem to work when the regular expression is just a couple of plaintexts, but is actually really wrong and also causes confusing log messages when your RE-expression end up in the string matching.

Secondly it seemed to handle multi-valued LDAP results by concatenating them into strings like "First_item;second_item" which makes for very interesting results when you try to match against R.Es like ^read$

This change guards against cases when the LDAP query evaluates to a list and fallbacks to regular do_match when the arguments aren't lists of strings.
2018-11-02 11:59:10 -07:00
Luke Bakken fbb9aa1dd8 Add user_bind_pattern to schema
See #102
2018-10-30 19:34:23 -07:00
Luke Bakken 85dcb36ce6 Add user_bind_pattern
This allows using a different pattern during the "simple bind" phase. If `user_bind_pattern` is defined, it is used, otherwise fall back to `user_dn_pattern`

Related to #98 and #99

(cherry picked from commit 7f32abde3b)
2018-10-31 02:43:38 +03:00
kjnilsson 3089f803b5 Update rabbitmq-components.mk 2018-10-29 12:43:14 +00:00
Luke Bakken 300004dfc6 Add unit test for ad_domain / ad_user 2018-10-26 12:55:20 -07:00
Luke Bakken d2452b6cc4 Tokenize NetBIOS logins on the backslash character
Fixes #98

This allows `Domain\User` to be used in templates via `${ad_domain}` and `{$ad_user}`

See the following discussion: https://groups.google.com/d/topic/rabbitmq-users/mK87YcRy4vQ/discussion
2018-10-26 12:41:16 -07:00