From 2671fe71df096995ace7ac19426beca89f99bfd7 Mon Sep 17 00:00:00 2001 From: Fang Date: Mon, 18 May 2020 22:54:45 +0200 Subject: [PATCH] dbug: print warning about passcode access Also fixes typo, cleans up comment. --- pkg/arvo/app/dbug.hoon | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkg/arvo/app/dbug.hoon b/pkg/arvo/app/dbug.hoon index 70026c50f0..9e4db8fb63 100644 --- a/pkg/arvo/app/dbug.hoon +++ b/pkg/arvo/app/dbug.hoon @@ -44,11 +44,20 @@ ^- (quip card _this) ?: ?=(%noun mark) ?> (team:title [our src]:bowl) - [~ this(passcode !<((unit @t) vase))] + =/ code !<((unit @t) vase) + =/ msg=tape + ?~ code + "Removing passcode access for debug interface." + """ + Enabling passcode access for debug interface. Anyone with this code can + view your applications' state, the people you've talked to, etc. Only + share with people you trust. To disable, run :dbug ~ + """ + %- (slog leaf+msg ~) + [~ this(passcode code)] ?. ?=(%handle-http-request mark) (on-poke:def mark vase) =+ !<([eyre-id=@ta =inbound-request:eyre] vase) - :: !! :_ this %+ give-simple-payload:app:server eyre-id %+ authorize-http-request:do inbound-request @@ -390,7 +399,7 @@ 'heeds'^(set-array heeds from-duct) == :: - :: json for known peer is structures to closely match the peer-state type. + :: json for known peer is structured to closely match the peer-state type. :: where an index is specified, the array is generally sorted by those. :: :: { life: 123,