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

The default devfile is resolved from private bitbucket repo after access token is revoked #19273

Closed
1 of 22 tasks
sleshchenko opened this issue Mar 11, 2021 · 0 comments · Fixed by #19518
Closed
1 of 22 tasks
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Milestone

Comments

@sleshchenko
Copy link
Member

sleshchenko commented Mar 11, 2021

Describe the bug

The default devfile is resolved from private bitbucket repo after access token is revoked.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Prereq: Che with bitbucket oauth configured.
  2. Open a factory which points to private bitbucket repo.
  3. Authentication in the bitbucket after redirect.
  4. Check that the right devfile is used for workspace creation.
    my case:
apiVersion: 1.0.0
metadata:
  generateName: wksp-
  1. Go to bitbucket and revoke access to the generated token.
  2. Retry accept the same factory.
    Check that workspace is created but instead of resolved devfile, the default generated is used, like:
apiVersion: 1.0.0
metadata:
  name: test-repo7hbgl
projects:
  - name: test-repo
    source:
      location: 'https://bitbucket-bitbucket.apps.cluster-460f.460f.sandbox1282.opentlc.com/scm/test/test-repo.git'
      type: git

Expected behavior

User is ask to re-authenticate since Che owned token is already revoked.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Screenshots

Screenshot_20210311_114036
Screenshot_20210311_114045
Screenshot_20210311_114055
Screenshot_20210311_114103

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Eclipse Che Logs

Additional context

Bitbucket epic - #18385

@sleshchenko sleshchenko added kind/bug Outline of a bug - must adhere to the bug report template. area/che-server labels Mar 11, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 11, 2021
@yhontyk yhontyk added severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Mar 12, 2021
@skabashnyuk skabashnyuk added this to the 7.29 milestone Mar 24, 2021
@skabashnyuk skabashnyuk modified the milestones: 7.29, 7.30 Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants