Repository navigation
agent-team: steward deactivation via the /admin twin before v3 #750 - #77
Merged
Merged
Conversation
…ntActive)
enforcer-v3 #750 makes core routes own-only for every role, so a tenant
admin's PUT /accounts/{steward}/active would no longer reach another
account. Use PUT /admin/accounts/{id}/active (live since v3 #749), which
works before and after #750.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
enforcer-v3 #750 (phase 2) makes core routes act only on the caller's own data for every role.
demos/graph-live/agent-team/run.mjsdeactivates and re-activates the steward account with the tenant admin key viaPUT /api/v1/enforcer/accounts/{id}/active; after #750 that would no longer reach the steward.What
PUT /api/v1/enforcer/admin/accounts/{id}/active(adminSetAccountActive, the #749 twin, live in prod). Same handler and body.Works both before and after #750.
Edge IP gate
The script targets
GRAPH_BASE_URL(defaulthttps://api.instruxi.dev). The/adminedge IP gate in enforcer-digital-ocean matches only hostapi.megprimepay.com(and instruxi-prod sets noadmin_allowlist_ips), so these calls pass from any IP on the default host.Verify
node --checkonly; the scenario was not run (it writes to a live tenant).🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.