fix(console): keep preview deployment profiles read-only (#385)
This commit is contained in:
1 parent
9936a1be1a
commit
ab2bc23c7f
10 files changed
+132
-44
No files matched your search
@@ -1107,8 +1107,9 @@ const k=Object.hasOwn(d,"console")?"console":Object.hasOwn(d,"federation")?"fede
|
||||
}
|
||||
|
||||
# Row 189 (mos-0972): --no-send drops --send from RUN_CONSOLE, so the unit and the pointer both lose
|
||||
# it; without the flag the pointer's --send goes on unchanged. Rollback and pm-on never take it, so
|
||||
# they carry the pointer as it is. Sets SEND_PLAN (the plan's send: line) and SEND_STEP.
|
||||
# it. A legacy pointer's implicit preview --send also drops before the plan reaches the installer,
|
||||
# because header preview is read-only (#385). Verified --sso send is still carried. Sets SEND_PLAN
|
||||
# (the plan's send: line) and SEND_STEP.
|
||||
# Row 273 (mos-1246 F39): under forward auth any same-uid process can send as the signed-in user
|
||||
# through the Console's port, so --send turns send on only when the run's Console flags hold --sso,
|
||||
# given or carried. --no-sso drops the pointer's --send, and so does a rollback to a Console without
|
||||
@@ -1165,7 +1166,13 @@ send_for_target() {
|
||||
SEND_STEP="--no-send was given and the pointer holds no --send, so there is nothing to drop"
|
||||
fi
|
||||
elif [ "$had" = 1 ]; then
|
||||
SEND_PLAN="send: carried"
|
||||
if has_flag --sso "${RUN_CONSOLE[@]}"; then
|
||||
SEND_PLAN="send: carried"
|
||||
else
|
||||
RUN_CONSOLE=("${without_send[@]}")
|
||||
SEND_PLAN="send: dropped; header preview is read-only (#385)"
|
||||
SEND_STEP="drop --send; header preview is read-only (#385)"
|
||||
fi
|
||||
else
|
||||
SEND_PLAN="send: off"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user