-
Notifications
You must be signed in to change notification settings - Fork 7
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
Signed install #41
Signed install #41
Conversation
@@ -49,9 +49,20 @@ def verify | |||
return false | |||
end | |||
|
|||
if encoding_data['alg'] == 'RS256' |
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 think that condition is not enough. We also need to check descriptor. Not sure if we can do that
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.
You mean to know if we are using signed installs or not? I think we can add flag to the configuration that would solve that, WDYT?
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.
Yeah. I think adding flag is the only option
Looks good to me. You've asked on slack about possible things to break/test, rough list:
|
b35d043
to
f42601c
Compare
didn't understand 😞 what should I disable -> enable?
Added log. The error message looks like this |
Good question. I believe (but my memory might fail me) that at some point in the past there was more buttons in "Manage your apps" page in Jira: not only "uninstall" "install" "subscribe" etc, but also "disable" "enable". If you check Atlassian documentation there are even some mentions about app disabling/enabling: https://support.atlassian.com/jira-cloud-administration/docs/integrate-apps/ Might be it is copy-paste from Jira Server/DataCenter (where you can disable arbitrary apps, heck, you can disable it's modules one by one), might be that Atlassian has removed Enabling/Disabling function from Jira Cloud... Perhaps "subscribe / unsubscribe" is current name of "enable / disable". What I suggest:
Ok for you? |
f42601c
to
2151bfe
Compare
Tested on staging. Everything works fine for me |
Awesome. |
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.
Happy to see more contributors to this gem!
based on https://community.developer.atlassian.com/t/action-required-atlassian-connect-installation-lifecycle-security-improvements/49046