Code Monkey home page Code Monkey logo

Comments (12)

valentijnscholten avatar valentijnscholten commented on August 21, 2024 2

Private keys are usually protected by a password which is asked for onle once on startup and then cached in memory :)

from jira-cli.

iinuwa avatar iinuwa commented on August 21, 2024 2

I don't know if Jira Server has this option, but Jira Cloud has an option to create an API token that is separate from your password. It still gives you access to all the API features that your user has access to, but it's scoped to Jira rather than all of the apps that your domain/organization credentials provide access to.

from jira-cli.

watsoncj avatar watsoncj commented on August 21, 2024

Consider something like keytar for cross-platform keychain access.

from jira-cli.

miguelmich avatar miguelmich commented on August 21, 2024

Great idea @watsoncj, I'll use it definitively!

from jira-cli.

decibyte avatar decibyte commented on August 21, 2024

This is definitely a show stopper for me. Let me know if there is anything I can do to help (that doesn't involve coding).

from jira-cli.

miguelmich avatar miguelmich commented on August 21, 2024

I'll be working on the implementation of this fix today hopefully there will be a new release with this hotfix today :)

from jira-cli.

miguelmich avatar miguelmich commented on August 21, 2024

@watsoncj I was working on this but then I realized that users from Linux will have to install an additional lib in order to use the CLI, I'll make a research to see if we can find a 100% node cross-platform solution.

PS: I don't know what do you guys think about this?

from jira-cli.

valentijnscholten avatar valentijnscholten commented on August 21, 2024

Alternative could to use OAuth, but that's more complicated and requires cooperation from the JIRA Admins. What about only having the password in memory. So don't store it, but ask it once on startup or on the first command executed?

from jira-cli.

miguelmich avatar miguelmich commented on August 21, 2024

@valentijnscholten I like that idea, I will explore more about it, what I'm thinking is since this config file is stored in the user home directory as well as the ssh keys are stored in, one would think this is a safe place, I mean, if an attacker manages to reach your home directory you're in more serious problems, but I agree that having the JIRA password stored without any obfuscation at least is concerning even for me (I don't even like seeing my passwords without the *** characters lol) on the other hand I also think that if you're not in your machine you wouldn't want to have that data stored locally, so your solution makes total sense to me.

I'll take a look at how to store recurring data in memory and if anyone else has any other better idea you're welcome to participate :)

from jira-cli.

xdhmoore avatar xdhmoore commented on August 21, 2024

If an attacker reaches your home directory, you have serious problems, but if your home directory contains an SSO password that gets them admin access to all of the production applications you manage, you have even more serious problems.

from jira-cli.

valentijnscholten avatar valentijnscholten commented on August 21, 2024

Api tokens were just introduced in jira server 8.14. But do not work with basic authentication. They need be sent as bearer token.

from jira-cli.

iinuwa avatar iinuwa commented on August 21, 2024

Oh, OK. My API token for Jira Cloud is working without modification to jira-cli. @valentijnscholten, are you saying that Jira Server API tokens are not working with jira-cli?

from jira-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.