wagoe upgrade authorization <step>: walk an app from
:wagoe/authorization :off to :enforce, one environment at a time.
This side reads and edits resources/conf/<env>/config.edn. What needs the database or the compiled routes runs in the app's JVM, through wagoe.user.shell.cli-entry.authorization-upgrade.
`wagoe upgrade authorization <step>`: walk an app from `:wagoe/authorization :off` to `:enforce`, one environment at a time. This side reads and edits resources/conf/<env>/config.edn. What needs the database or the compiled routes runs in the app's JVM, through wagoe.user.shell.cli-entry.authorization-upgrade.
Runs a JVM step, (fn [ctx step]) → exit code; rebound in tests.
Runs a JVM step, (fn [ctx step]) → exit code; rebound in tests.
(allow-entities text entities)text with entities added to :wagoe/admin's :allowlist.
`text` with `entities` added to `:wagoe/admin`'s `:allowlist`.
(config-facts text){:mode :require-role? :default-roles [[provider role]]} of a config.edn.
:mode is :off when :wagoe/authorization is absent.
{:mode :require-role? :default-roles [[provider role]]} of a config.edn.
`:mode` is :off when `:wagoe/authorization` is absent.(config-ns dir deps)The app's system config namespace: its :run alias's main namespace with
system-config for main, else the one src/<dir>/system_config.clj holds.
The app's system config namespace: its `:run` alias's main namespace with `system-config` for `main`, else the one src/<dir>/system_config.clj holds.
(drop-require-role text)text without :require-role in :wagoe/admin, which nothing reads.
`text` without `:require-role` in `:wagoe/admin`, which nothing reads.
(format-log-refusals entries)entries per permission and route, with the users refused.
`entries` per permission and route, with the users refused.
(log-refusals text)The entries of text's would-be refusal lines, {:user-id :route :method
:permission} as strings and keywords.
The entries of `text`'s would-be refusal lines, {:user-id :route :method
:permission} as strings and keywords.(run dir args)Runs the step args name in project dir; the exit code.
Runs the step `args` name in project `dir`; the exit code.
(set-mode text mode)text with :wagoe/authorization :mode set to mode under :active.
`text` with `:wagoe/authorization :mode` set to `mode` under `:active`.
(unlisted-admin-entities text dir)The entities :wagoe/admin :entities configures that its :allowlist
lacks, sorted. The admin declares admin.<entity> permissions for the
allowlist only, so under :enforce only a platform admin reaches these.
dir holds the config.edn, for its #includes. None when the allowlist is
not a literal set: what it holds cannot be read, nor allow-entities extend it.
The entities `:wagoe/admin :entities` configures that its `:allowlist` lacks, sorted. The admin declares `admin.<entity>` permissions for the allowlist only, so under :enforce only a platform admin reaches these. `dir` holds the config.edn, for its `#include`s. None when the allowlist is not a literal set: what it holds cannot be read, nor `allow-entities` extend it.
(version-note deps)Why the app's wagoe-user may be too old for these steps, or nil.
Why the app's wagoe-user may be too old for these steps, or nil.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |