Reference

publish

A single subject, list of subjects, or a allow-deny map of subjects for publishing. Specifying a single subject or list of subjects denotes an allow and implcitly denies publishing to all other subjects.

  • Default value: n/a
  • Hot reloadable: Yes
  • Aliases: pub

Values

TypeDescriptionChoices
string-
[ string ]-
objectAn object with a set of explicit properties that can be set.-

Properties

NameDescriptionTypeDefault
allowList of subjects that are allowed to the client.string-
denyList of subjects that are denied to the client.string-

Examples

Allow publish to foo

foo

Allow publish on foo and bar.*

[foo, bar.*]

Allow publish to foo.* except foo.bar

{
  allow: "foo.*"
  deny: "foo.bar"
}
Previous
permissions