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

More magical fxns #55

Merged
merged 35 commits into from
Apr 8, 2024
Merged

More magical fxns #55

merged 35 commits into from
Apr 8, 2024

Conversation

sckott
Copy link
Member

@sckott sckott commented Apr 1, 2024

#53

Some notes:

six_admin_setup

It does 2 things right now:

  1. Set up a users group
  2. Set up an admin group

I tried to make it do a 3rd thing: Simulate a user and make sure that user can access all the resources that are given by the policies attached to the user group. I went through a few iterations of this but haven't sorted it out yet. Do you think this is important? If not, we can maybe come back to it later.

Other magical fxns

Any others we should add?

@sckott sckott requested a review from seankross April 1, 2024 20:53
… reproducible; export random string helper to use in egs
@sckott sckott added this to the v0.1 milestone Apr 2, 2024
@sckott
Copy link
Member Author

sckott commented Apr 2, 2024

@seankross removed the simulate user code - I put the code for it in another issue #57

@sckott sckott mentioned this pull request Apr 2, 2024
@seankross
Copy link
Collaborator

Hey @sckott of course in the testing of this new functionality I've been deleting and creating all kinds of things on our AWS account. Is there anything in particular that should or should not exist before I test six_admin_setup()?

@sckott
Copy link
Member Author

sckott commented Apr 4, 2024

Nah . In the test account go for deleting anything

@sckott
Copy link
Member Author

sckott commented Apr 4, 2024

And you can pass any string to admin or users to not overwrite the existing ones

- as part of addressing six_file_upload, reworked s3 connection acquisition for paws and s3fs
- rework tests to work with new s3 connection
- rename random_str to random_db_id_str
sckott added 13 commits April 5, 2024 10:12
…ng objects and the bucket; test data version 2
- fix whats magical
- fix checks at the top of the fxn to make it work for path length > 1
- improve error messages for those checks
- clarify that the fxn doesnt accept directories
…oad; remove s3fs fxn imports that are not used
- remove a few files in R/ with client objects for infidivual aws services
- new file constants.R for constants in setting up clients
- new file clients.R with factory to generate clients for paws, and redefine s3fs client
- new print s3 method for client objects instead of showing a massively long list
Copy link

github-actions bot commented Apr 8, 2024

@sckott sckott merged commit 0f90b3c into s3-iam Apr 8, 2024
2 checks passed
@sckott sckott deleted the more-magic branch April 8, 2024 17:32
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