Skip to content

Conversation

niloc132
Copy link
Member

Deployed manually for testing at https://plugins.gwtproject.org/eclipse/gwt-eclipse-plugin/nightly/ - note that in the future this repo will likely not be signed, and only releases will be signed in this way.

The signing cert here is the same cert as is used by plugins.gwtproject.org itself - we can probably improve the experience here somewhat, but it does seem to be a step up from no signing at all.

Fixes #446

@niloc132 niloc132 added this to the 4.0.1 milestone Feb 15, 2023
protoism
protoism previously approved these changes Feb 15, 2023
Copy link
Contributor

@protoism protoism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done.
A couple of clarifications needed

<id>sign-jars</id>
<activation>
<file>
<exists>${env.SIGN_KEYSTORE}</exists>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, jars are signed only if SIGN_KEYSTORE is an environment variable.
And for CI, this means using github secrets.
Correct?

Copy link
Member Author

@niloc132 niloc132 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do CI for releases yes, we will need a certificate and its password in github secrets. I'm personally not prepared to do that with the official plugins.gwtproject.org cert (I make mistakes with code/build wiring, and several CI providers have had breaches), but perhaps we could make a self-signed cert instead for that purpose, just for nightlies?

If you like that idea, I'll add it to this PR after setting up a cert and putting it in the org.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I think that a self signed is good enough.

@niloc132
Copy link
Member Author

Confirmed that PRs won't sign (without branch name check) https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/4214214640/jobs/7314529326

Confirmed that branches (without branch name check) will sign https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/4214248488/jobs/7314591205

Confirmed PR check works with branch name check https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/4214214640/jobs/7314529326

Confirmed that non-matching branches work with branch name check https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/4214331119/jobs/7314726087

Going to verify artifacts tomorrow, then this should be ready to land, subject to reviewer approval.

@niloc132
Copy link
Member Author

Looks like this is working, please try downloading the repo zip at https://github.com/gwt-plugins/gwt-eclipse-plugin/actions/runs/4217845131 to take a look at how eclipse handles the self-signed cert I have configured for this project. Presently intending to only use that for non-release builds, but we could also use them for releases too. For releases, I had intended to use the same cert that is used for hosting plugins.gwtproject.org, until we have enough demand to buy a CA-signed code signing cert.

@protoism
Copy link
Contributor

I tried, it's working!
Here a snapshot

image


## Repository
Download the repo in a zip file.
The Eclipse repositories for this plugin.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good you updated documentation

these are signed with a self-signed certificate.

## Development
* Nightly update site: https://plugins.gwtproject.org/eclipse/gwt-eclipse-plugin/nightly
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any plan for uploading nightly artifacts as part of the build?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that I think we've got the build right, nightly artifacts are next, I'll be trying to implement a webhook for this.

@niloc132 niloc132 merged commit b20f75a into gwt-plugins:main Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin must be signed

2 participants