-
Notifications
You must be signed in to change notification settings - Fork 153
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
NB-11852: Set ReleaseChannel In JumpCloud Password Manager command #586
Conversation
4c65079
to
f882502
Compare
…to setting the release channel fix: Removed linux and windows scripts related to setting the release channel
@gbitarjc I'm not sure I'm following the point of this script in the public support repository. Just testing the Windows and Mac scripts off the bat, neither seemed to work with production versions of the Password Manager installed. Windows seemed to fail outright even though there was an exit 0 status: |
- windows script error when running script - modify windows, linux and mac scripts to support only production
@jworkmanjc the purpose of these scripts is for admins to set the release channel for the password manager triggered through these scripts from the admin portal also addressed the issues that you faced while testing and updated the scripts to only support production and updated the how to test section of this PR accordingly |
After taking into consideration that the PWM tool is installed per user. the scripts were adjusted to cater for every user. There is no need from individual users to set the release channel, these scripts are for JumpCloud administrators that are wanting to set the release channel for their end users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested the Linux and MacOS commands yet. Windows I know is not working. I'll take additional time to validate the Linux and MacOS commands when the Windows command is re-worked to function as described in the Pull Request.
|
||
``` | ||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public depending on your desired release channel | ||
$RELEASE_CHANNEL = "public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that $RELEASE_CHANNEL
is one of 'public','dogfood','beta'
#!/bin/bash | ||
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 15 depending on your desired release channel | ||
RELEASE_CHANNEL="public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that $RELEASE_CHANNEL
is one of 'public','dogfood','beta'
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 4 depending on your desired release channel | ||
|
||
RELEASE_CHANNEL="public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't expect admins to do the right thing, it would probably be a good idea to add a check to ensure that $RELEASE_CHANNEL
is one of 'public','dogfood','beta'
``` | ||
#!/bin/bash | ||
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 15 depending on your desired release channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LINE 15?
``` | ||
#!/bin/bash | ||
|
||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public ON LINE 4 depending on your desired release channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LINE 4? I think we should just say change the variable value. If you copy and paste this today, it's LINE 5
#### Command | ||
|
||
``` | ||
# Set $RELEASE_CHANNEL to beta OR dogfood OR public depending on your desired release channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not noting the line here, and I think that's the correct way to tell customers what to do, since it's really easy to forget that we need to update that in the future.
|
||
#------- Do not modify below this line ------ | ||
|
||
$FILE_PATH = "$env:APPDATA\JumpCloud Password Manager\data\daemon\releaseChannel.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- windows script logged user - check if releaseChannel variable is one of beta, dogfood or public - addressed comment above releaseChannel variable to not include line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validated windows, mac, linux.
My only concern is that there will be some customer who states that the linux/mac commands work differently than the Windows command which relies on the user being logged in to set the release channel. Overall I doubt it'll come up often if at all but I'm calling it out as a potential issue that would need to be resolved later.
Otherwise these can all be invoked through JumpCloud commands. Thank you @gbitarjc for the many iterations I've requested of you. It'll go a long ways towards preventing support calls and other customer issues.
#!/bin/bash | ||
|
||
# Set releaseChannel to beta OR dogfood OR public depending on your desired release channel | ||
releaseChannel="dogfood" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change this to public so that every script is set to the public channel by default?
releaseChannel="dogfood" | |
releaseChannel="public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Windows, Linux and Mac. Appears to be working on my devices
…leaseChannel variable to public
@jworkmanjc, thank you for your help with this PR i really appreciated the help. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good thank you for all the changes :)
Issues
What does this solve?
Setting release channel for password manager application in user's data.
Supported Operating systems: Linux, Windows and MacOS.
Supported channels: public, beta and dogfood.
Is there anything particularly tricky?
Yes, the testing
How should this be tested?
For Windows
.ps1
script on your machinereleaseChannel.txt
under$HOME\AppData\Roaming\JumpCloud Password Manager\data\daemon\releaseChannel.txt
should readdogfood
For MacOs
.sh
script on your machinereleaseChannel.txt
under$HOME/Library/Application Support/JumpCloud Password Manager/data/daemon/releaseChannel.txt
should readdogfood
For Linux
.sh
script on your machinereleaseChannel.txt
under$HOME/.config/JumpCloud Password Manager/data/daemon/releaseChannel.txt
should readdogfood
Screenshots
N/A