Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4 temporary header #346

Merged
merged 1 commit into from
Jul 22, 2024
Merged

v4 temporary header #346

merged 1 commit into from
Jul 22, 2024

Conversation

wildemat
Copy link
Contributor

@wildemat wildemat commented Jul 22, 2024

Ticket(s): FE-5644

Problem

New users will eventually be unable to use the basic shell commands as they will not have v4 access

Solution

Until all shell functions can be rewritten to use the v10 Fauna api, employ a temporary header that Core can use to continue to allow these v4 calls from the shell.

shell repl sessions and eval v4 commands will, however, not receive the temporary header and will work based on the user's access policy.

Result

Unblock launch of v4 access restriction until we have bandwidth to rewrite shell functions to v10.

Risk being that the header is publicly available and could be leveraged by any user regardless of their v4 access policy.

Testing

Updated some tests to expect the header on commands other than eval.

TODO: shell tests have been turned off for a while

@wildemat wildemat marked this pull request as ready for review July 22, 2024 13:28
Copy link
Contributor

@echo-bravo-yahoo echo-bravo-yahoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally w/ core and this branch, looks good to me!

image

@wildemat wildemat merged commit 2f41e9d into main Jul 22, 2024
2 checks passed
@wildemat wildemat deleted the v4-exempt-cmd branch July 22, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants