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

Add 'default' account when no name is provided #2388

Merged
merged 1 commit into from
Oct 14, 2021
Merged

Conversation

szh
Copy link
Contributor

@szh szh commented Oct 13, 2021

What does this PR do?

  • conjurctl account create without a name argument will create an account with the name "default".

What ticket does this PR close?

Resolves #2082
ONYX-13320

Checklists

Change log

  • The CHANGELOG has been updated

Test coverage

  • This PR includes new unit and integration tests to go with the code changes

Documentation

  • Docs were updated in this PR - updated command description in CLI

API Changes

  • The changes in this PR do not affect the Conjur API

@szh szh self-assigned this Oct 13, 2021
@szh szh force-pushed the 2082-default-account branch 2 times, most recently from dcb8463 to 6feaa66 Compare October 13, 2021 20:47
@szh szh force-pushed the 2082-default-account branch 3 times, most recently from 7d60a37 to e4486b9 Compare October 14, 2021 15:28
Resolves #2082.
Chose not to use `default_value` in `conjur-cli.rb` because the name can be provided by either a flag or argument,
and having a default value set by GLI would make it difficult to ascertain which to use.
@szh szh force-pushed the 2082-default-account branch from e4486b9 to 18eb0b6 Compare October 14, 2021 15:30
@cyberark cyberark deleted a comment from codeclimate bot Oct 14, 2021
@szh szh requested a review from john-odonnell October 14, 2021 15:39
@szh szh marked this pull request as ready for review October 14, 2021 15:39
@szh szh requested a review from a team as a code owner October 14, 2021 15:39
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Added
- Create default account when no account is specified in `conjurctl account create`.
Copy link

Choose a reason for hiding this comment

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

Lists should be surrounded by blank lines

@codeclimate
Copy link

codeclimate bot commented Oct 14, 2021

Code Climate has analyzed commit 18eb0b6 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Style 1

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 90.8% (0.0% change).

View more on Code Climate.

Copy link
Contributor

@john-odonnell john-odonnell left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@szh szh merged commit fa94502 into master Oct 14, 2021
@szh szh deleted the 2082-default-account branch October 14, 2021 18:00
@alexkalish
Copy link
Contributor

@szh or @john-odonnell: Do you know if this change affects Enterprise at all? Does it use this conjurctl command under the covers? Thanks!

@micahlee
Copy link
Contributor

@alexkalish, fly-by comment... the appliance does use the same underlying rake task that conjurctl uses, but it does not use conjurctl directly for creating the account.

@alexkalish
Copy link
Contributor

Thanks @micahlee. So, TL;DR: default is implemented in conjurctl, not underlying rake task, so only OSS has a default?

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.

Add default account when no account name is provided to conjurctl commands
4 participants