Commit Graph

93 Commits

Author SHA1 Message Date
Luke Bakken 7889ad3425 Finish converting check_vhost_access/3 to new API 2019-03-22 13:10:27 -07:00
Luke Bakken a4767a772a Modify check_vhost_access/3 to use map of data
Part of rabbitmq/rabbitmq-auth-backend-cache#20
2019-03-22 07:21:59 -07:00
Spring Operator 882876297b 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://erlang.org/doc/apps/erts/erl_ext_dist.html (200) with 1 occurrences could not be migrated:
   ([https](https://erlang.org/doc/apps/erts/erl_ext_dist.html) result ConnectTimeoutException).
* http://erlang.org/doc/man/erlang.html (200) with 1 occurrences could not be migrated:
   ([https](https://erlang.org/doc/man/erlang.html) result ConnectTimeoutException).
* 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).
* http://host (UnknownHostException) with 1 occurrences migrated to:
  https://host ([https](https://host) result UnknownHostException).
* http://host:port/foo (UnknownHostException) with 2 occurrences migrated to:
  https://host:port/foo ([https](https://host:port/foo) result UnknownHostException).
* http://www.cs.indiana.edu/~burger/fp/index.html (301) with 1 occurrences migrated to:
  https://cs.indiana.edu/~burger/fp/index.html ([https](https://www.cs.indiana.edu/~burger/fp/index.html) result 404).

## 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://en.wikipedia.org/wiki/X86-64 with 1 occurrences migrated to:
  https://en.wikipedia.org/wiki/X86-64 ([https](https://en.wikipedia.org/wiki/X86-64) result 200).
* http://erlware.org/ with 1 occurrences migrated to:
  https://erlware.org/ ([https](https://erlware.org/) 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://lukego.livejournal.com/6753.html with 1 occurrences migrated to:
  https://lukego.livejournal.com/6753.html ([https](https://lukego.livejournal.com/6753.html) result 200).
* http://ninenines.eu with 6 occurrences migrated to:
  https://ninenines.eu ([https](https://ninenines.eu) result 200).
* http://semver.org/ with 1 occurrences migrated to:
  https://semver.org/ ([https](https://semver.org/) result 200).
* http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html with 1 occurrences migrated to:
  https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html ([https](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) 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.erlang.org/ with 2 occurrences migrated to:
  https://www.erlang.org/ ([https](https://www.erlang.org/) result 200).
* http://www.mail-archive.com/asn1@asn1.org/msg00460.html with 1 occurrences migrated to:
  https://www.mail-archive.com/asn1@asn1.org/msg00460.html ([https](https://www.mail-archive.com/asn1@asn1.org/msg00460.html) result 200).
* http://www.rabbitmq.com/ with 2 occurrences migrated to:
  https://www.rabbitmq.com/ ([https](https://www.rabbitmq.com/) result 200).
* http://www.rabbitmq.com/amqp-0-9-1-errata.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/amqp-0-9-1-errata.html ([https](https://www.rabbitmq.com/amqp-0-9-1-errata.html) result 200).
* http://www.rabbitmq.com/memory.html with 1 occurrences migrated to:
  https://www.rabbitmq.com/memory.html ([https](https://www.rabbitmq.com/memory.html) result 200).
* http://www.rebar3.org with 1 occurrences migrated to:
  https://www.rebar3.org ([https](https://www.rebar3.org) result 200).
* http://code.google.com/p/clink/issues/detail?id=141 with 1 occurrences migrated to:
  https://code.google.com/p/clink/issues/detail?id=141 ([https](https://code.google.com/p/clink/issues/detail?id=141) result 301).
* 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://msdn.microsoft.com/en-us/library/aa366778 with 1 occurrences migrated to:
  https://msdn.microsoft.com/en-us/library/aa366778 ([https](https://msdn.microsoft.com/en-us/library/aa366778) result 301).
* http://msdn.microsoft.com/en-us/library/bb540814 with 1 occurrences migrated to:
  https://msdn.microsoft.com/en-us/library/bb540814 ([https](https://msdn.microsoft.com/en-us/library/bb540814) result 301).
* http://rabbitmq.com/documentation.html with 1 occurrences migrated to:
  https://rabbitmq.com/documentation.html ([https](https://rabbitmq.com/documentation.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.erlang.org/doc/system_principles/versions.html with 1 occurrences migrated to:
  https://www.erlang.org/doc/system_principles/versions.html ([https](https://www.erlang.org/doc/system_principles/versions.html) result 301).
* http://www.mozilla.org/MPL/ with 66 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:13:48 -05:00
Michael Klishin 9f6d2b449f Require Erlang 21.3 2019-03-20 10:24:51 +03:00
Daniil Fedotov 1dfb335217 Bump erlang version requirement.
RabbitMQ depends on `ra`, which uses persistent_term, only available in 21.2
2019-02-12 10:26:38 -05:00
Jean-Sébastien Pédron 01ef2d29dd Make #amqqueue{} a private record
See the corresponding commit in rabbitmq-server for all the
explanations.

Now, all accesses to the #amqqueue{} record are made through the
`amqqueue` module (available in rabbitmq-server). The new type name is
`amqqueue:amqqueue()`.

The `amqqueue.hrl` header also provides some macros to help with pattern
matching and guard expressions.

To help with this, code and modules were moved from rabbitmq-common to
rabbitmq-server.

[#159298729]
2019-02-01 10:45:29 +01:00
Michael Klishin 0e8d48fc70 Bump (c) year in startup banner
References rabbitmq/rabbitmq-server#1830.
2019-01-14 01:33:03 +03:00
Michael Klishin e29005d617 Wording 2019-01-02 02:58:10 +03:00
Daniil Fedotov e7cce3b95d Reduce max message size to 512MB. 2018-12-27 19:24:57 +04:00
Loïc Hoguin bf9e786749 Remove a macro related to the removed truncate module 2018-12-11 17:04:30 +01:00
kjnilsson 0918ca4a22 remove created_at from amqqueue record 2018-10-19 16:33:38 +01:00
Diana Corbacho d21b745d08 New connection churn metrics table
Rate metrics for monitoring of high connection churn scenarios
[#160943831]
2018-10-17 12:30:13 +01:00
Jean-Sébastien Pédron 8e0d0a0a2e include/rabbit.hrl: Bump Erlang requirement to 21.0
With the quorum queue code, RabbitMQ probably still works with Erlang
20.x, but it is not thoroughly tested. Thus, bump the requirement to
Erlang 21.0.
2018-10-11 12:36:40 +02:00
Diana Corbacho 5ee1757551 Revert "Add quorum_leader to amqqueue record"
This reverts commit 7eff8a551426c03725f30db8516150c1c2c127b2.
2018-09-21 08:51:16 +01:00
Diana Corbacho 4cac30b209 Add quorum_leader to amqqueue record
[#154472407]
2018-09-21 08:51:16 +01:00
Diana Corbacho 3a5e9b99a1 Add quorum_nodes to amqqueue record
[#154472231]
2018-09-21 08:51:16 +01:00
Diana Corbacho 978d7747c0 Add created_at field to amqqueue record
[#155458625]
2018-09-21 08:51:16 +01:00
Daniil Fedotov f6d18f8247 Revert Revert "Extend amqqueue record to include queue type" 2018-09-21 08:51:16 +01:00
Michael Klishin 2894a9489a Introduce MAX_SUPPORTED_PRIORITY
Part of rabbitmq/rabbitmq-server#1590.

[#157380396]
2018-05-10 21:54:03 -05:00
Karl Nilsson 2977180988 Revert "Extend amqqueue record to include queue type" 2018-01-23 15:26:07 +00:00
Diana Corbacho 558285f849 Extend amqqueue record to include queue type
Defaults to 'classic'

[#154472130]
2018-01-22 14:11:37 +00:00
Michael Klishin 1bffc2d4a3 Bump (c) year 2018-01-15 14:33:35 +03:00
Loïc Hoguin 29da36157a Add a macro to identify processes in Looking Glass 2017-12-12 12:35:41 +01:00
Jean-Sébastien Pédron 123b30e508 include/rabbit.hrl: Bump Erlang requirement to 19.3 (ERTS 8.3)
[#152067396]
2017-10-23 12:47:27 +02:00
Michael Klishin 6938bcc4e7 Require Erlang/OTP 19.2 (erts 8.2)
Part of #1305.
[#149563549]
2017-07-26 17:53:07 +03:00
Michael Klishin 355b8b8327 Merge branch 'stable' 2017-07-11 03:42:16 +03:00
Gerhard Lazu 57a6476942 Move state record back into vm_memory_monitor, it's only used here
rabbitmq/rabbitmq-server#1285

[#148470947]
2017-07-10 18:30:46 +01:00
Gerhard Lazu 8874e551cc Default memory high watermark to 1.0 when using a higher value
Prior to this change, setting the vm_memory_high_watermark to a value
higher than 1 (inclusive), would default to 0.4. This is different from
the behaviour when setting an absolute value, namely defaulting to the
total memory available.

Extracted common memory-related macros & records so that they can be
shared by tests.

re rabbitmq/rabbitmq-server#1285

[finishes #148470947]
2017-07-10 15:10:01 +01:00
Jean-Sébastien Pédron 042aac29c6 rabbit_log: Move it from rabbitmq-server to rabbitmq-common
It obviously depends on a running broker, but some modules in
rabbitmq-common call it. This resolves a dependency of rabbitmq-common
on rabbitmq-server.

`master` branch only:
    Also move rabbit_log.hrl from rabbitmq-server to rabbitmq-common.

[#118490793]

(cherry picked from commit cf5271eec5)
2017-06-26 14:43:35 +02:00
Michael Klishin fbe900611e Merge branch 'stable' 2017-04-05 15:52:51 +03:00
Michael Klishin c7f972f23e (c) year 2017-04-05 15:52:35 +03:00
Diana Corbacho 4a0682dfd2 Add extra_dependencies on plugin record 2017-02-27 15:51:20 +00:00
Michael Klishin 23740d8a72 Adjust fallback credit disc bound value
4000 is not meaningfully different from 3000 but is closer
to the new IO_BATCH_SIZE value.

References rabbitmq/rabbitmq-server#1098.
2017-02-17 23:52:58 +03:00
Michael Klishin 5e2af6d415 Adjust fallback credit disc bound value
4000 is not meaningfully different from 3000 but is closer
to the new IO_BATCH_SIZE value.

References rabbitmq/rabbitmq-server#1098.
2017-02-17 22:25:09 +03:00
Michael Klishin 30400efca2 Merge branch 'stable'
Conflicts:
	src/rabbit_core_metrics.erl
2017-02-15 00:05:10 +03:00
Diana Corbacho 6d6ed78765 Add gen_server2 buffer length to core stats 2017-02-14 14:38:45 +00:00
Arnaud Cogoluègnes 7fc1e4f6a5 Merge branch 'master' into rabbitmq-server-1085
Conflicts:
	src/rabbit_auth_backend_internal.erl
2017-01-23 09:40:59 +01:00
Michael Klishin 39276e967a Define UNKNOWN_USER
For when we can't know what user performed an action,
e.g. there's no user that created the built-in exchanges.
2017-01-20 20:22:15 +03:00
Arnaud Cogoluègnes 0ffacf017d Add topic authorisation for consumption
Part of rabbitmq/rabbitmq-server#1085
2017-01-19 14:55:23 +01:00
Diana Corbacho 02f258590f Notify user who performed the action in all system events 2017-01-16 14:39:26 +00:00
Diana Corbacho d0996c46e1 Include options map in queue and exchange records 2017-01-15 20:30:43 +00:00
Arnaud Cogoluègnes 27f7256064 Rename name to exchange in topic_permission_key
References rabbitmq/rabbitmq-server#505
2017-01-03 11:59:44 +01:00
Arnaud Cogoluègnes 434fcbad62 Add check_topic_access/4 to rabbit_authz_backend
References rabbitmq/rabbitmq-server#505
2016-12-29 08:53:22 +01:00
Arnaud Cogoluègnes 108526f767 Add channel process cache for topic authorization
References rabbitmq/rabbitmq-server#505
2016-12-21 16:22:33 +01:00
Arnaud Cogoluègnes 47979ef8f0 Add topic check in internal authorization backend
References rabbitmq/rabbitmq-server#505
2016-12-21 11:56:50 +01:00
Arnaud Cogoluègnes 9fb8dbb861 Introduce topic authorisation
WIP

References rabbitmq/rabbitmq-server#505
2016-12-20 18:11:22 +01:00
Michael Klishin d444553cc4 Merge branch 'stable'
Conflicts:
	src/rabbit_common.app.src
2016-12-06 00:44:31 +03:00
Michael Klishin 84618920ff Use rabbit_misc:get_env/3
`application:get_env/3` is not available in Erlang/OTP R16B03.
2016-12-05 21:06:47 +03:00
Daniil Fedotov 93f268d185 Get worker and supervisor shutdown timeouts from environment variables 2016-12-01 12:47:18 +00:00
Michael Klishin 0f683955ce Merge branch 'stable'
Conflicts:
	src/rabbit_reader.erl
2016-12-01 14:12:34 +03:00