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

Credential contents api call #1249

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Credential contents api call #1249

merged 2 commits into from
Jul 12, 2024

Conversation

ale8k
Copy link
Contributor

@ale8k ale8k commented Jun 26, 2024

Description

The what and why - include a summary of the change, describe what it does, and include relevant motivation and context.

Fixes JIRA/GitHub issue number

Engineering checklist

Check only items that apply

  • Documentation updated
  • Covered by unit tests
  • Covered by integration tests

Test instructions

Notes for code reviewers

@ale8k ale8k requested a review from a team as a code owner June 26, 2024 12:31
@ale8k ale8k changed the base branch from v3 to v3-slim-jimm June 26, 2024 12:32
res, err := s.API.CredentialContents(ctx, args)
c.Assert(err, gc.Equals, nil)
c.Assert(res.Results, gc.HasLen, 1)
}
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add a test that looks up for a specific cloud credential?

// If no specific credential name/cloud was passed in, all credentials for this user
// are returned.
// Only credential owner can see its contents as well as what models use it.
// Controller admin has no special superpowers here and is treated the same as all other users.
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't a controller admin be able to see all cloud creds on the controller?

// If no specific credential name/cloud was passed in, all credentials for this user
// are returned.
// Only credential owner can see its contents as well as what models use it.
// Controller admin has no special superpowers here and is treated the same as all other users.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep this comment in one place or duplicate it?

@ale8k ale8k merged commit cb8e097 into canonical:v3-slim-jimm Jul 12, 2024
4 checks passed
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.

3 participants