Add an option for simulation request to allow non-root auth

Open
#972 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start by tracing simulation requests to the require_auth call and the env.switch_to_recording_auth(true) setup. Add a request parameter that preserves the default behavior while allowing cases such as the “bundling” invocation to use false, then verify both default and opt-out behavior.

Written by the indexing model from the issue text.

Description

Currently the env is configured by default to return an error when a require_auth call is encountered that doesn't match the top-level invocation (env.switch_to_recording_auth(true) call). This is desired behavior for 90%+ (or maybe even 95%+) of the use cases. However, in the remaining few cases (e.g. for invocation 'bundling') the flag should be disabled, i.e. env.switch_to_recording_auth(false); should be called. From the user perspective, a request parameter should be added to enable this behavior (default should remain the same, so that most of the users don't need to worry about this).

Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.