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

Change the token data input type to password in the add/edit PAT popup #1007

Merged
merged 3 commits into from
Nov 29, 2023

Conversation

vinokurig
Copy link
Contributor

What does this PR do?

Hide the token input in the PAT popup with a password input type:
screenshot-eclipse-che apps rosa gx976-76x7c-y6f kjuu p3 openshiftapps com-2023 11 28-10_20_13

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-5335

Is it tested? How?

Go to the User Preferences -> Personal Access Tokens tab and add a new token or edit existed.
See: the token input is hidden.

Release Notes

Docs PR

@che-bot
Copy link
Contributor

che-bot commented Nov 28, 2023

Click here to review and test in web IDE: Contribute

Copy link
Member

@ibuziuk ibuziuk left a comment

Choose a reason for hiding this comment

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

👍 do we have other inputs on UD that should use the password mask e.g. SSH etc.
cc: @olexii4 @akurinnoy

@olexii4
Copy link
Contributor

olexii4 commented Nov 28, 2023

@vinokurig Tests should be fixed too.

@openshift-ci openshift-ci bot removed the lgtm label Nov 29, 2023
Copy link

openshift-ci bot commented Nov 29, 2023

@vinokurig: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v11-dashboard-happy-path 165b55d link true /test v11-dashboard-happy-path

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.

@vinokurig
Copy link
Contributor Author

vinokurig commented Nov 29, 2023

@olexii4

Tests should be fixed too.

done
@ibuziuk

do we have other inputs on UD that should use the password mask e.g. SSH etc.

I could not find other sensitive inputs, SSH uses file path input.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (26cde8b) 86.50% compared to head (4592562) 86.40%.
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1007      +/-   ##
==========================================
- Coverage   86.50%   86.40%   -0.10%     
==========================================
  Files         383      385       +2     
  Lines       39396    39369      -27     
  Branches     2580     2584       +4     
==========================================
- Hits        34078    34016      -62     
- Misses       5292     5328      +36     
+ Partials       26       25       -1     
Flag Coverage Δ
unittests 86.40% <100.00%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1007

kubectl patch command
kubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1007", name: che-dashboard}]}}]"

Copy link

openshift-ci bot commented Nov 29, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, ibuziuk, olexii4, vinokurig

The full list of commands accepted by this bot can be found 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

@ibuziuk ibuziuk merged commit fef0d00 into main Nov 29, 2023
11 of 12 checks passed
@ibuziuk ibuziuk deleted the CRW-5335 branch November 29, 2023 13:28
@devstudio-release
Copy link

Build 3.11 :: dashboard_3.x/410: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: dashboard_3.x/410: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5431 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.11 :: sync-to-downstream_3.x/5432: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/5306 triggered; /job/DS_CI/job/dsc_3.x triggered;

@devstudio-release
Copy link

Build 3.11 :: operator-bundle_3.x/2339: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/5432 triggered

@devstudio-release
Copy link

Build 3.11 :: copyIIBsToQuay/2224: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: update-digests_3.x/5064: SUCCESS

Detected new images: rebuild operator-bundle
* dashboard; /DS_CI/operator-bundle_3.x/2339 triggered

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1605: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.11 :: dsc_3.x/1605: SUCCESS

3.11.0-CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants