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

enforce write only access to folder http endpoint #1109

Merged
merged 11 commits into from
Aug 12, 2024
Merged

Conversation

jlewitt1
Copy link
Collaborator

@jlewitt1 jlewitt1 commented Aug 5, 2024

No description provided.

Copy link
Collaborator Author

jlewitt1 commented Aug 5, 2024

# Conflicts:
#	runhouse/servers/http/http_utils.py
@jlewitt1 jlewitt1 marked this pull request as ready for review August 6, 2024 21:46
# Conflicts:
#	runhouse/servers/http/http_server.py
#	runhouse/servers/http/http_utils.py
@@ -75,6 +75,7 @@ def clear_cache(self, token: str = None):
async def averify_cluster_access(
cluster_uri: str,
token: str,
write_only_access: bool = False,
Copy link
Contributor

@rohinb2 rohinb2 Aug 9, 2024

Choose a reason for hiding this comment

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

instead of a bool here, can just do access_level_required and pass ResourceAccess.WRITE

then below, can do return if access_level_required
cluster_access_level == access_level_required

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea good call

# Conflicts:
#	runhouse/servers/http/http_server.py
#	runhouse/servers/http/http_utils.py
# Conflicts:
#	runhouse/servers/http/http_server.py
#	runhouse/servers/http/http_utils.py
Copy link
Collaborator Author

jlewitt1 commented Aug 12, 2024

Merge activity

  • Aug 12, 4:15 PM EDT: @jlewitt1 started a stack merge that includes this pull request via Graphite.
  • Aug 12, 4:21 PM EDT: Graphite couldn't merge this PR because it had conflicts with the trunk branch.

@jlewitt1 jlewitt1 changed the base branch from folder-http-endpoint to graphite-base/1109 August 12, 2024 20:16
@jlewitt1 jlewitt1 changed the base branch from graphite-base/1109 to main August 12, 2024 20:19
@jlewitt1 jlewitt1 merged commit ec2a418 into main Aug 12, 2024
11 of 13 checks passed
@jlewitt1 jlewitt1 deleted the folder-endpoint-access branch August 12, 2024 20: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.

2 participants