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 TLS Option & Insecure Flag in Admin CLI #548

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Add TLS Option & Insecure Flag in Admin CLI #548

merged 2 commits into from
Jun 13, 2023

Conversation

krapie
Copy link
Member

@krapie krapie commented Jun 13, 2023

What this PR does / why we need it:

Add TLS option & insecure flag in admin CLI.

This is to set TLS connectivity between hosted server (api.yorkie.dev) and admin CLI.
Also, --insecure global flag is added to disable the TLS connection of the client when needed.

Which issue(s) this PR fixes:

Fixes https://github.com/yorkie-team/devops/issues/43

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


Checklist:

  • Added relevant tests or not required
  • Didn't break anything

@krapie krapie added the enhancement 🌟 New feature or request label Jun 13, 2023
@krapie krapie requested a review from hackerwins June 13, 2023 06:00
@krapie krapie self-assigned this Jun 13, 2023
@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #548 (e2e8f7c) into main (0ce364b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #548   +/-   ##
=======================================
  Coverage   50.53%   50.53%           
=======================================
  Files          67       67           
  Lines        6678     6678           
=======================================
  Hits         3375     3375           
  Misses       2876     2876           
  Partials      427      427           

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution. Overall, it looks good.

After this PR, referring to ArgoCD CLI might be helpful for Yorkie CLI. For instance, it would be beneficial to change the Login command to receive the address as an argument instead of a flag, similar to how it is done in the ArgoCD CLI, and store it in the config.

#544

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@hackerwins hackerwins merged commit 17b5954 into main Jun 13, 2023
@hackerwins hackerwins deleted the cli-secure branch June 13, 2023 10:58
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

Successfully merging this pull request may close these issues.

2 participants