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

MIDRC-848 Add /storage/credentials endpoints #11

Merged
merged 10 commits into from
Nov 13, 2024
Merged

Conversation

paulineribeyre
Copy link
Collaborator

Link to JIRA ticket if there is one: https://ctds-planx.atlassian.net/browse/MIDRC-848

New Features

  • Add /storage/credentials endpoints to create, list and delete user credentials

Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@paulineribeyre paulineribeyre requested a review from nss10 November 11, 2024 22:24
Copy link
Contributor

@nss10 nss10 left a 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?"

gen3workflow/aws_utils.py Show resolved Hide resolved
gen3workflow/aws_utils.py Show resolved Hide resolved
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)
Copy link
Contributor

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?

Copy link
Contributor

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.

gen3workflow/routes/storage.py Show resolved Hide resolved


@pytest.mark.asyncio
async def test_torage_info(client, access_token_patcher):
Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@paulineribeyre paulineribeyre requested a review from nss10 November 13, 2024 15:30
Copy link
Contributor

@nss10 nss10 left a comment

Choose a reason for hiding this comment

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

Looks Good!

@paulineribeyre paulineribeyre merged commit 9db2f0a into master Nov 13, 2024
8 checks passed
@paulineribeyre paulineribeyre deleted the feat/storage branch November 13, 2024 16:27
nss10 pushed a commit that referenced this pull request Nov 13, 2024
nss10 pushed a commit that referenced this pull request Nov 14, 2024
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