Comments (17)
@accatyyc Actually, this is the right answer for validating SSH keys (I tried it, will implement soon). It really forces the specified keys to be tried instead of falling back to user's local keys, which might be correct (but the selected keys might not, thus failing to correctly evaluate the validity of the keys).
Thanks for pointing me in the right direction!
from buildasaur.
Work started.
from buildasaur.
Oh, nice :) Very few upvotes on that answer so I think I ignored it. Make sure to be clear about the Git version dependency!
from buildasaur.
Yeah good point, this feature seems to be in git 2.3+, but I hope that's a reasonable requirement (I'll add it to the docs).
from buildasaur.
Yeah. You could also add a warning in the UI if running git --version
returns something less than 2.3.
from buildasaur.
I'm seeing a problem where keys vaildate (According to UI) but the resulting bot fails with:
Bot Issue: error. Build Service Error.
Issue: Failed to authenticate SSH session: Invalid public key, too short (-1).
Integration Number: 1.
Integration URL: https://DMTestBot.local/xcode/bots/B2E8D9D/integrations
Description: Failed to authenticate SSH session: Invalid public key, too short (-1).
from buildasaur.
Yeah that's possible, at the moment we only validate the GitHub token's rights, but not the SSH keys (yet, working on it right now). I don't think it has to do anything with using workspace/project, because I use workspaces as well. Hopefully I should have the validation done today or tomorrow. In the meantime, please try to make sure your SSH keys are really valid for the tested repository.
from buildasaur.
Ok, here's a bit more info. The server has its own ssh keys and github user. I've checked out the repo locally (using ssh) and had no problems. In buildasaur UI I choose ~/.ssh/id_rsa.pub and id_rsa
I make a new pull req and trigger buildasaur with the lttm comment. The bot will fail almost instantly with the error above. If I edit that bot in xcode IDE on my local, I can manually enter the same ssh keys (with the user and passphrase) and manually trigger the bot which will then successfully checkout the source and run.
from buildasaur.
Can you please try to delete the Bot (from Xcode) and try running Buildasaur again? It's very strange that it's being very specific about the problem with the key, that it's "too short". Also, where are you copying this error from? An email you get from Xcode Server or somewhere in the UI?
from buildasaur.
I've tried with multiple pull reqs (and tried deleting bot from Xcode). The error shows up on the main page of the integration in the Xcode UI (build service error). The integration has no logs in the logs tab, and clicking Download all Logs... results in an error. On recent integrations I'm getting a different error:
Bot Issue: error. Build Service Error.
Issue: Failed to authenticate SSH session: Callback returned error (-1).
Integration Number: 1.
Integration URL: https://DMTestBot.local/xcode/bots/F4FC902/integrations
Description: Failed to authenticate SSH session: Callback returned error (-1).
Worth mentioning the error in pr comments is:
Result of integration 1
? build errors: checkout-error
from buildasaur.
Interesting, when you try to create a bot from Xcode directly (not through Buildasaur), does that work fine? Also, do you have a passphrase for your SSH keys (#27)?
from buildasaur.
Ah, thats totally it (passphrase)
from buildasaur.
Sorry about that, I'm working on these two issues (SSH key validation and passphrase support) as my top priority.
from buildasaur.
no problem. I'm just setting up stuff now, so it's not too painful to regen keys without passphrase. I'll let you know if that doesn't work for some reason
from buildasaur.
Yeah do that!
from buildasaur.
SSH key validation merged, thanks @accatyyc and @mikewoodworth for your help!
from buildasaur.
👍
from buildasaur.
Related Issues (20)
- An error always appears when editing a template HOT 17
- Add Quit option to Buildasaur menu HOT 1
- Add predefined triggers HOT 1
- Trying to sync again... HOT 4
- I'm looking for a new owner for Buildasaur HOT 10
- Environment Variables? HOT 2
- Custom post-integration actions HOT 3
- Setup questions? HOT 3
- Buildasaur hangs on Build Template View when using with Xcode 8 HOT 12
- Migrate Buildasaur and deps to Swift 3
- Pattern matching for Bot branches HOT 2
- Buildasaur bots failing to find derived data
- Last Sync Failed with error (BuildaUtils.JSONError error 0) HOT 2
- Continuously happening authorization error after a while of running HOT 3
- Downloading iOS 9.3 Simulator does not proceed ahead from Xcode 8.1 HOT 1
- "Error Disallowed checkout type, the project must be checked out over one of the supported schemes: SSH" - but project *is* checked out over SSH
- XcodeServerSDK.XcodeServer.PlaceholderError error 0 HOT 1
- Unable to start app after upgrading to MacOS High Sierra HOT 6
- Announcing Xcode-GitHub, a New Buildasaur-like macOS App
- Is this going to be updated to support xcode 10 or later? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildasaur.