Commit Graph

623 Commits

Author SHA1 Message Date
Michael Davis eb18c5df9a
rabbit_ldap_seed: Add commented out verbose logging for LDAP operations
(cherry picked from commit 7f85948e6c)
(cherry picked from commit 1443517949)
2024-05-01 16:54:26 -04:00
Michael Davis 69923ad1f2
rabbit_ldap_seed: Remove 'memberOf' annotation for "peter" seed user
In openldap 2.5, `memberOf` seems to be a read-only annotation. Instead
the LDAPWiki recommends adding the user's name to the member attribute
on the relevant group objects:
<https://ldapwiki.com/wiki/Wiki.jsp?page=MemberOf>

We already do that when setting up the group objects, so this annotation
is safe to remove.

(cherry picked from commit 8c5cf257df)
(cherry picked from commit f8534450d9)
2024-05-01 16:54:25 -04:00
Michael Davis 94fbcb0c3f
rabbit_ldap_seed: Assert seed data deletions are benign
(cherry picked from commit 30ef8fbe19)
(cherry picked from commit f015ddb2a1)
2024-05-01 16:54:25 -04:00
Michael Davis 90aa8bd46b
ldap system_SUITE: Only reset seed data in end_per_group
(cherry picked from commit 02ed55d214)
(cherry picked from commit 5e5a86021b)
2024-05-01 16:54:25 -04:00
Michael Davis a96050bd7c
Setup olcBackend in global ldap example config
(cherry picked from commit 710ae55adf)
(cherry picked from commit ef4a4e0762)
2024-05-01 16:54:25 -04:00
Rin Kuryloski e8fc7bb4ba
Switch slapd backend from bdb to mdb
Slapd 2.5 removed bdb, so switching to mdb

Debian bookworm, to which the buildbuddy CI image was recently
updated, installs slapd 2.5

(cherry picked from commit dc2c3e03fb)
(cherry picked from commit 3625ac0eb3)
2024-05-01 16:54:25 -04:00
Michael Klishin 8b26fdc510
(c) year bump 2024-01-01 22:04:04 -05:00
Michael Klishin 7273e29621
Update (c) according to [1]
1. https://investors.broadcom.com/news-releases/news-release-details/broadcom-and-vmware-intend-close-transaction-november-22-2023
2023-11-21 23:26:04 -05:00
Marcial Rosales d4cbc0fe38 Support non-ascii attribute values
(cherry picked from commit b53ef89825)
2023-08-24 10:13:29 +00:00
Marcial Rosales 60f5e72caa Remove debug log statements
(cherry picked from commit a70539a1a1)
2023-08-15 08:48:51 +00:00
Marcial Rosales c3ee4e5a6d Fix #9043
(cherry picked from commit dbffccba9d)
2023-08-15 08:48:50 +00:00
Michael Klishin c81c43de30 Replace @rabbitmq.com addresses with rabbitmq-core@groups.vmware.com
Don't ask why we have to do it. Because reasons!

(cherry picked from commit 55442aa914)
2023-06-20 12:12:19 +00:00
Rin Kuryloski 2c5d152ce0 Add a workflow to compare the bazel/erlang.mk output
To catch any drift between the builds

(cherry picked from commit eb94a58bc9)
2023-05-15 15:27:03 +00:00
Rin Kuryloski d1e1084711 Replace globs in bazel with explicit lists of files
As this is preferred in rules_erlang 3.9.14

(cherry picked from commit a944439fba)
2023-04-25 18:03:08 +02:00
Rin Kuryloski b8def2403a Restore the original -include_lib statements from before #6466
since this broke erlang_ls

requires rules_erlang 3.9.13

(cherry picked from commit 854d01d9a5)
2023-04-20 15:37:35 +00:00
Rin Kuryloski 2aaf2176d4 Use gazelle generated bazel files
Bazel build files are now maintained primarily with `bazel run
gazelle`. This will analyze and merge changes into the build files as
necessitated by certain code changes (e.g. the introduction of new
modules).

In some cases there hints to gazelle in the build files, such as `#
gazelle:erlang...` or `# keep` comments. xref checks on plugins that
depend on the cli are a good example.

(cherry picked from commit 8de8f59d47)

# Conflicts:
#	deps/rabbit/BUILD.bazel
2023-04-19 05:34:15 +00:00
Rin Kuryloski 188851ec18 Ignore warnings when building plt files for dependencies
As we don't generally care if a dependency has warnings, only the
target

(cherry picked from commit 8a7eee6a86)
2023-04-17 10:23:13 +00:00
Luke Bakken ae70ecb7df
Add test for #7161 2023-02-02 14:16:37 -08:00
Luke Bakken 907a7bebce
Remove extra dollar sign
Not needed with bazel

Fixes #7161
2023-02-02 11:51:07 -08:00
Alexey Lebedeff 8164df8bb2 Fix all dialyzer warnings in auth backends 2023-01-19 16:01:30 +01:00
Rin Kuryloski 5ef8923462 Avoid the need to pass package name to rabbitmq_integration_suite 2023-01-18 15:25:27 +01:00
Rin Kuryloski a317b30807 Use improved assert_suites2 macro from rules_erlang 3.9.0 2023-01-18 15:07:06 +01:00
Michael Klishin ec4f1dba7d
(c) year bump: 2022 => 2023 2023-01-01 23:17:36 -05:00
Rin Kuryloski bef2756b5f Fixes for various dialyzer warnings 2022-12-02 09:14:08 +01:00
Simon Unge c267f4d82b See #4842. Fix broken test 2022-11-10 14:01:30 -08:00
Simon Unge 09d84e6bd5 See #4842. Obfuscate impl value 2022-11-09 15:14:51 -08:00
Luke Bakken 7fe159edef
Yolo-replace format strings
Replaces `~s` and `~p` with their unicode-friendly counterparts.

```
git ls-files *.erl | xargs sed -i.ORIG -e s/~s>/~ts/g -e s/~p>/~tp/g
```
2022-10-10 10:32:03 +04:00
Rin Kuryloski 165f946ffd Remove .travis.yml.patch files 2022-08-16 09:48:46 +02:00
Rin Kuryloski 575c5f9975 Remove all of the .travis.yml files
since we no longer use them
2022-08-16 09:46:31 +02:00
Philip Kuryloski 15a79466b1 Use the new xref2 macro from rules_erlang
That adopts the modern erlang.mk xref behaviour
2022-06-09 23:18:28 +02:00
Philip Kuryloski 327f075d57 Make rabbitmq-server work with rules_erlang 3
Also rework elixir dependency handling, so we no longer rely on mix to
fetch the rabbitmq_cli deps

Also:

- Specify ra version with a commit rather than a branch
- Fixup compilation options for erlang 23
- Add missing ra reference in MODULE.bazel
- Add missing flag in oci.yaml
- Reduce bazel rbe jobs to try to save memory
- Use bazel built erlang for erlang git master tests
- Use the same cache for all the workflows but windows
- Avoid using `mix local.hex --force` in elixir rules
  - Fetching seems blocked in CI, and this should reduce hex api usage in
    all builds, which is always nice
- Remove xref and dialyze tags since rules_erlang 3 includes them in
  the defaults
2022-06-08 14:04:53 +02:00
Loïc Hoguin dc70cbf281
Update Erlang.mk and switch to new xref code 2022-05-31 13:51:12 +02:00
Luke Bakken dba25f6462
Replace files with symlinks
This prevents duplicated and out-of-date instructions.
2022-04-15 06:04:29 -07:00
Philip Kuryloski 2dd9bde891 Bring over PROJECT_APP_EXTRA_KEYS values from make to bazel 2022-04-07 17:39:33 +02:00
Luke Bakken 8d8847e069
Take other eldap_search_result cases into account
Reported here
https://github.com/rabbitmq/rabbitmq-server/discussions/4281#discussioncomment-2508220

Fixes #4444

Follow-up to #4285
2022-04-05 07:09:23 -07:00
Michael Klishin c38a3d697d
Bump (c) year 2022-03-21 01:21:56 +04:00
Michael Klishin 730856e296
LDAP: match on eldap_search_result record for OTP 24.3 compat
In https://github.com/erlang/otp/pull/5538, the eldap_search_result
record structure has changed:
https://github.com/erlang/otp/pull/5538/files#diff-30e064e89b115da7e974f229ed5c92f28e489da679ef42f17e70b9e7cf874179R24

It does have a default but for code
compiled on, say, Erlang 23.0, which is the case for current RabbitMQ
releases, it would still be a breaking change resulting in
case expression matching failures (a case_clause).

Closes #4284.
2022-03-17 16:47:40 +04:00
Philip Kuryloski 226e00fcd2 Tighten up dialyzer usage
now that rules_erlang no longer cascades up dialyzer warnings from deps
2022-02-24 11:18:41 +01:00
Philip Kuryloski d8201726ae Ignore dialyzer warnings for most apps 2022-02-21 09:19:56 +01:00
Philip Kuryloski efcd881658 Use rules_erlang v2
bazel-erlang has been renamed rules_erlang. v2 is a substantial
refactor that brings Windows support. While this alone isn't enough to
run all rabbitmq-server suites on windows, one can at least now start
the broker (bazel run broker) and run the tests that do not start a
background broker process
2022-01-18 13:43:46 +01:00
Luke Bakken 160a74862a
Update link in comment
It is a useful comment, so update all the links to the correct place on the internet:
http://erlang.org/pipermail/erlang-questions/2010-April/050508.html
2021-11-04 15:45:17 -07:00
Philip Kuryloski 7d3d601d88 Bump test timeouts
A recent release of buildbuddy eliminated a timeout extension that
they had applied in the past. Now that they honor timeouts exactly,
we have had to adjust the timeout for many tests.
2021-07-23 13:36:09 +02:00
Philip Kuryloski 8f9de08de7 Also assert no missing suites for all other deps 2021-07-12 18:05:55 +02:00
Philip Kuryloski 3eac3cf8a8 Remove unused load statements from bazel files 2021-07-12 12:10:26 +02:00
Philip Kuryloski 8c7e7e0656 Revert "Default all `rabbitmq_integration_suite` to flaky in bazel"
This reverts commit 70cb8147b2.
2021-06-23 20:53:14 +02:00
Philip Kuryloski 70cb8147b2 Default all `rabbitmq_integration_suite` to flaky in bazel
Most tests that can start rabbitmq nodes have some chance of
flaking. Rather than chase individual flakes for now, this commit
changes the default (though it can still be overriden, as is the case
for config_scheme_SUITE in many places, since I have yet to see that
particular suite flake).
2021-06-21 16:10:38 +02:00
Philip Kuryloski 30f9a95b9f Add dialyze for remaning tier-1 plugins 2021-06-01 10:19:10 +02:00
Philip Kuryloski 98e71c45d8 Perform xref checks on many tier-1 plugins 2021-05-21 12:03:22 +02:00
Philip Kuryloski 29ddca78aa Fix additional Erlang 24 compiler warnings 2021-05-17 12:05:28 +02:00
Philip Kuryloski c13c2af614 Bazel file refactoring 2021-05-11 12:03:27 +02:00