Server

Bans and appeals

Warnings, kicks, scoped temporary and permanent bans, shadow bans, ban waves and appeals in valkyr-server, with the API calls and webhooks for each.

valkyr recommends, you decide. The trust ledger produces actions; the moderation layer in valkyr-server turns them, or your moderators' decisions, into records players can see and appeal.

The pipeline

  1. Verdict. The engine reaches an action from your policy. It goes to the action feed (GET /v1/actions) and to verdict and action webhooks.
  2. Review. Uncertain cases (review) go to moderators or to the community jury.
  3. Enforce. A warning, a kick or a ban record is created, by the policy ([bans] auto) or by a moderator.
  4. Appeal. The player files one statement; a moderator or a jury decides.

Every step writes the audit log and fires a webhook.

Records

RecordEndpointWebhook
WarningPOST /v1/warningswarning
KickPOST /v1/kickskick
BanPOST /v1/bans, GET /v1/bans, GET and DELETE /v1/bans/{ban_id}ban.created, ban.activated, ban.updated, ban.revoked, ban.expired
AppealPOST /v1/bans/{ban_id}/appeals, GET /v1/appeals, POST /v1/appeals/{appeal_id}/decisionappeal.filed, appeal.decided
Ban waveGET /v1/waves, POST /v1/waves/runwave.executed
StandingGET /v1/players/{player}/standing

Moderation endpoints need a key with the moderator role. Every ban carries the evidence that led to it: rule ids, summaries and the trust explanation at the time.

Scopes

A ban applies in its scope only:

  • global applies everywhere;
  • game:<id>, server:<id> and league:<id> apply when the game server asks for that scope.

A game server checks a player's standing with the scopes it belongs to, for example ?scope=game:arena,server:eu-1,league:spring. One valkyr-server can moderate a whole network this way, with server bans, game bans and league bans side by side.

Automatic bans

[bans] auto sets the strongest ban the policy may create without a human:

ValueEffect
offPolicy decisions never create bans. They still reach webhooks and the action queue.
shadowAt most a shadow ban: the player keeps playing, matched with other suspects.
temporaryAt most a temporary ban (the default). The length is auto_duration_secs, or restrict_minutes from the policy.
permanentPermanent bans allowed without a human. Not recommended.

Ban waves

Banning the moment a cheat is detected tells its author which change was caught. Waves delay the effect:

wave_modeEffect
offEvery ban takes effect at once.
intervalQueued bans take effect together every wave_interval_secs, plus a random jitter of up to wave_jitter_secs.
delayEach queued ban takes effect wave_delay_secs (plus jitter) after it was created.

Queued bans are only visible to moderators until they activate.

Appeals

A banned player may file one appeal with a statement of up to max_statement_chars characters. With appeal_jury = true, every appeal also opens a jury case. The decision (upheld or overturned) fires appeal.decided; an overturned ban is revoked and the player's evidence stays in the audit log.

OptionTypeDefaultDescription
bans.autoAutoBan"temporary"Strongest ban the trust policy may create automatically. A policy ban decision is downgraded to this level.
bans.auto_shadowboolfalseAlso shadow ban players the policy puts in the shadow queue.
bans.auto_scopeString"global"Scope of automatic bans.
bans.auto_duration_secsu640Length of automatic temporary bans. 0 uses the engine policy's restrict_minutes.
bans.wave_modeWaveMode"off"Ban wave mode. Automatic bans always go through the wave when it is on; manual bans only with "wave": true.
bans.wave_interval_secsu6421600Interval mode: time between waves.
bans.wave_jitter_secsu643600Random extra delay added to each wave or delayed ban.
bans.wave_delay_secsu6486400Delay mode: time between a ban being queued and taking effect.
bans.appeal_juryboolfalseOpen a review jury case for every appeal (needs jurors).
bans.max_statement_charsusize4000Longest accepted appeal statement in characters.

Generated from crates/valkyr-server/src/config.rs (BansSection) at build time.

Edit this page on GitHub