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

S3 Amazonaws allow to create a user to bind to the bucket #42

Open
sp90 opened this issue Nov 5, 2024 · 2 comments
Open

S3 Amazonaws allow to create a user to bind to the bucket #42

sp90 opened this issue Nov 5, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sp90
Copy link
Contributor

sp90 commented Nov 5, 2024

Only if the hostname ends with .amazonaws.com:
After the Test method is called on the backend, the FE should check via the IAM webmodule if the user has permissions to create a new user. If so, the FE should suggest creating a new user that only has access to the given bucket and replace the credentials with the newly generated credentials. Methods for this are in the webmodule.

@sp90 sp90 self-assigned this Nov 11, 2024
@sp90 sp90 added the enhancement New feature or request label Nov 11, 2024
@sp90
Copy link
Contributor Author

sp90 commented Nov 15, 2024

@kenkendk could you add some words on specifically where in the flow we want this to happen?

  1. Test connection
  2. Test con error (or when does it happen and if on error which error??)
  3. if has create user feature in webmodule
  4. dialog if they want that
  5. if yes do it and replace credentials on auth-password and auth-username

@kenkendk
Copy link
Member

The "test connection" should call the regular "test" method.

If successfull, and the hostname ends with .amazonaws.com it should check if the user can create a new user (operation is CanCreateUser)

If the result is a success, then offer to create a non-privileged used.
If the result is a failure, ignore it.

To create the non-privileged user, call with operation CreateIAMUser.
After the operation succeeds, the result will contain accessid and secretkey.
After changing the credentials, call the "test" method again.

There is another operation in the webmodule called GetPolicyDoc.
If we decide to add this, it should only be possible if the hostname ends with .amazonaws.com.
The result of the operation is a JSON document that can be uploaded manually to AWS S3 with the correct permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants