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

OCM-4966 | feat: Add keyring support for configuration #1825

Merged
merged 1 commit into from Mar 25, 2024

Conversation

tylercreller
Copy link
Member

@tylercreller tylercreller commented Mar 6, 2024

OCM-4966

  • Added keyring support for configuration storage via OCM_KEYRING
    • Added README docs
    • Added keyring support for config saves, loads, removal
    • Removes configuration from keyring on logout
  • Added basic login tests
  • Added keyring tests for config

Other

  • Fixed support for client-id / client-secret login
  • Added support for preferred_username claim, required for organizational service accounts

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 6, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Mar 6, 2024

@tylercreller: This pull request references OCM-4966 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

  • Added keyring support for configuration storage via RH_KEYRING
    • Added README docs
    • Added support for config saves, loads, removal
    • Removes configuration from keyring on logout
    • Added ocm config get keyrings to view available keyrings on the host OS
  • Added basic login tests
  • Added keyring tests for config

Other

  • Fixed support for client-id / client-secret login
  • Added support for preferred_username claim, required for organizational service accounts

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@tylercreller tylercreller changed the title OCM-4966: Add keyring support for configuration OCM-6029 | feat: Add keyring support for configuration Mar 6, 2024
@openshift-ci-robot openshift-ci-robot removed the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 6, 2024
@openshift-ci-robot
Copy link

@tylercreller: No Jira issue is referenced in the title of this pull request.
To reference a jira issue, add 'XYZ-NNN:' to the title of this pull request and request another refresh with /jira refresh.

In response to this:

  • Added keyring support for configuration storage via RH_KEYRING
    • Added README docs
    • Added support for config saves, loads, removal
    • Removes configuration from keyring on logout
    • Added ocm config get keyrings to view available keyrings on the host OS
  • Added basic login tests
  • Added keyring tests for config

Other

  • Fixed support for client-id / client-secret login
  • Added support for preferred_username claim, required for organizational service accounts

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@tylercreller tylercreller changed the title OCM-6029 | feat: Add keyring support for configuration OCM-4966 | feat: Add keyring support for configuration Mar 6, 2024
@tylercreller
Copy link
Member Author

/jira refresh

@openshift-ci-robot
Copy link

@tylercreller: No Jira issue is referenced in the title of this pull request.
To reference a jira issue, add 'XYZ-NNN:' to the title of this pull request and request another refresh with /jira refresh.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@tylercreller
Copy link
Member Author

/jira refresh

@openshift-ci-robot
Copy link

@tylercreller: No Jira issue is referenced in the title of this pull request.
To reference a jira issue, add 'XYZ-NNN:' to the title of this pull request and request another refresh with /jira refresh.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@tylercreller tylercreller force-pushed the OCM-4966-2 branch 3 times, most recently from 34893b2 to e4b9170 Compare March 6, 2024 17:00
Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 57.83133% with 35 lines in your changes are missing coverage. Please review.

Project coverage is 21.19%. Comparing base (cd5638f) to head (02ccd5c).
Report is 6 commits behind head on master.

Files Patch % Lines
cmd/login/cmd.go 30.00% 27 Missing and 1 partial ⚠️
pkg/config/config.go 80.55% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1825      +/-   ##
==========================================
+ Coverage   21.04%   21.19%   +0.15%     
==========================================
  Files         104      113       +9     
  Lines       17688    18831    +1143     
==========================================
+ Hits         3722     3992     +270     
- Misses      13688    14530     +842     
- Partials      278      309      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

cmd/config/get/get.go Outdated Show resolved Hide resolved
cmd/config/get/get.go Outdated Show resolved Hide resolved
cmd/login/cmd.go Outdated Show resolved Hide resolved
cmd/login/cmd.go Outdated Show resolved Hide resolved
@tylercreller tylercreller force-pushed the OCM-4966-2 branch 2 times, most recently from 3e65df4 to d947c15 Compare March 6, 2024 18:29
pkg/config/config.go Outdated Show resolved Hide resolved
cmd/login/cmd.go Outdated Show resolved Hide resolved
@tylercreller tylercreller force-pushed the OCM-4966-2 branch 2 times, most recently from d1bc501 to 87b67ea Compare March 8, 2024 17:22
README.md Outdated Show resolved Hide resolved
cmd/config/get/get.go Outdated Show resolved Hide resolved
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 13, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 18, 2024
@tylercreller tylercreller force-pushed the OCM-4966-2 branch 3 times, most recently from 1d6b420 to 8e18705 Compare March 20, 2024 20:59
@ciaranRoche
Copy link
Member

/retest

@ciaranRoche
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 25, 2024
Copy link
Contributor

openshift-ci bot commented Mar 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ciaranRoche, tylercreller

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 25, 2024
Copy link
Contributor

openshift-ci bot commented Mar 25, 2024

@tylercreller: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 503ed68 into openshift:master Mar 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants