litmus icon indicating copy to clipboard operation
litmus copied to clipboard

feat: Added UID to workflows instead of username

Open vanshBhatia-A4k9 opened this issue 3 years ago • 4 comments

Proposed changes

workflows now show UID instead of username as a unique identifier

Types of changes

What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Documentation Update (if none of the other choices applies)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • [ ] I have read the CONTRIBUTING doc
  • [ ] I have signed the commit for DCO to be passed.
  • [ ] Lint and unit tests pass locally with my changes
  • [ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • [ ] I have added necessary documentation (if appropriate)

Dependency

  • Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

vanshBhatia-A4k9 avatar Jun 08 '22 13:06 vanshBhatia-A4k9

UIDs will probably solve the current issue but this also makes it less auditable unless we let the users/admins query accounts using uids. I don't remember having such UI currently but maybe I am wrong @vanshBhatia-A4k9

gdsoumya avatar Jun 13 '22 10:06 gdsoumya

Is it possible that it will be merged and released in 2.11? We can't use Litmus properly because of this issue. Ref: https://github.com/litmuschaos/litmus/issues/3634

brnck avatar Jun 30 '22 06:06 brnck

Hi @brnck Thanks for reaching out! After some discussion with the team, we have decided to fix the issue from the DEX server itself, also we'll add some additional checks in the auth server to prevent any special characters in the username. It should be available by 2.13 as it is a larger change and will take some time to test the same.

@gdsoumya we'll be adding the user metadata that contains the username as well in the schema, but we'll only pass the userID in the manifest.

amityt avatar Jun 30 '22 10:06 amityt

As @gdsoumya mentioned, changed to UUID will solve but breaks the auditing, which is very important. I would rather base64 the username to circumvent this issue.

bbarin avatar Jul 22 '22 12:07 bbarin

These changes have been added as part of 3.0

Saranya-jena avatar Nov 03 '23 06:11 Saranya-jena