-
Notifications
You must be signed in to change notification settings - Fork 0
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
MIDRC-848 Add /storage/credentials
endpoints
#11
Conversation
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
ca179b2
to
c7f1bfc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Excellent work! I’ve left a few comments. Could you also note the change from /ga4gh-tes/
to /ga4gh/tes
in the PR comments?"
f"Too many existing keys: only {config['MAX_IAM_KEYS_PER_USER']} are allowed per user. Delete an existing key before creating a new one", | ||
) | ||
|
||
key_id, key_secret = aws_utils.create_iam_user_and_key(user_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The AWS account role we need to assume this application with, must have a iam:CreateAccessKey
. Doesn't this have to be mentioned in the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this comment becomes irrelevant, since all of that is taken care automatically in the cloud auto repo.
tests/test_storage.py
Outdated
|
||
|
||
@pytest.mark.asyncio | ||
async def test_torage_info(client, access_token_patcher): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo! test_storage_info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will approve once this is fixed then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good!
Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/MIDRC-848
New Features
/storage/credentials
endpoints to create, list and delete user credentials