Giter Site home page Giter Site logo

Comments (8)

BClark09 avatar BClark09 commented on June 10, 2024

@theoweiss, Sorry to bother you while you are busy. Could you upload the signingKeyRingFile to cloudbees as a secret file?

from openhab-linuxpkg.

theoweiss avatar theoweiss commented on June 10, 2024

Hi @BClark09,

I've installed the gpg key file on bintray.
You should be able to use it like this:

def ARTIFACTORY_GPG_KEY     = project.hasProperty('artifactoryGpgKey') ? project.property('artifactoryGpgKey') : System.env.ARTIFACTORY_API_GPG_KEY
def ARTIFACTORY_GPG_KEY_ID     = project.hasProperty('artifactoryGpgKeyId') ? project.property('artifactoryGpgKeyId') : System.env.ARTIFACTORY_API_GPG_KEY_ID
ARTIFACTORY_GPG_KEY_ID    = ARTIFACTORY_GPG_KEY_ID ?: "A224060A"

signingKeyId = ${ARTIFACTORY_GPG_KEY_ID}
signingKeyPassphrase = ${ARTIFACTORY_GPG}
signingKeyRingFile = new File(${ARTIFACTORY_GPG_KEY})

Regards,
Theo

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

Thanks @theoweiss! Tested on my local machine with a test key and all works well. Hoping the same for cloudbees!

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

Hi @theoweiss, unfortunately, whilst we have the right files. It seems that the underlining tool for building RPM files in ospackage fails at signing with long RSA headers.

https://openhab.ci.cloudbees.com/job/openhab-linuxpkg/85/console
craigwblake/redline#62

It'd be wise to GPG sign keys, but where should we go from here? Find another way? Or add another key?

Kind Regards,
Ben

from openhab-linuxpkg.

theoweiss avatar theoweiss commented on June 10, 2024

Get redline fixed ;-)
craigwblake/redline#62 (comment)

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

No reply at all from that branch, I've decided to try and push a workaround myself:

https://github.com/craigwblake/redline/compare/master...BClark09:signature-size?expand=1
https://github.com/nebula-plugins/gradle-ospackage-plugin/compare/master...BClark09:add-signature-size?expand=1

If testing this works, I can send the PRs in order and then adjust our gradle script accordingly, for a RSA Key of 4096 we just need to set:

signatureSize = 543

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

That went better than I thought it would. Sent a pull request to redline.

from openhab-linuxpkg.

BClark09 avatar BClark09 commented on June 10, 2024

I've managed to locally compile both plugins and have a working 4096-bit RSA key signature on linuxpkg-testing.

I'll add these binaries to use in our project if I don't get any response in the above PRs

from openhab-linuxpkg.

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.