1Password / shell-plugins

Seamless authentication for every tool in your terminal.
https://developer.1password.com/docs/cli/shell-plugins/
MIT License
518 stars 170 forks source link

New plugin: Railway #151

Open arunsathiya opened 1 year ago

arunsathiya commented 1 year ago

Platform or tool

Railway

Relevant links

Goal or desired behavior

Authenticate to the Railway platform.

Contribution

Additional information

No response

arunsathiya commented 1 year ago

I have done a bit of research over the last week:

I am currently talking to Railway staff on Discord to get more info.

arunsathiya commented 1 year ago

Quick update from the Discord conversation:

Time to wait.

arunsathiya commented 1 year ago

Another progress note: Their CLI is now written in rust, and seems to have merged to the main repo as of two days ago. I am yet to take their new CLI for a spin. Hopefully there's a flag to path custom config path, and/or support for environment variables.

aryanprince commented 4 weeks ago

@arunsathiya Looks like the latest version of Railway's CLI only supports a per-project token for their CLI's auth according to the official CLI auth docs. They do have other methods of auth but the one that uses a token is only per-project level.

From what I'm seeing on their docs, I'm not sure if they support having an 'account-level' token (to manage all Railway projects for instance).

Edit: Apparently there exists an un-documented RAILWAY_API_TOKEN variable for account-level access for the Railway CLI. This works great, and I opened a PR (#481) to create a new plugin for the Railway CLI.

aryanprince commented 4 weeks ago

Update: Apparently there exists an un-documented RAILWAY_API_TOKEN variable for account-level access for the Railway CLI as mentioned here. This works great, and I opened a PR (#481) to create a new 1Password CLI Shell Plugin for the Railway CLI.