Comments (6)
Cool, I'll include it in the next batch of changes
from jhack.
Fantastic! Thanks for figuring out a fix :)
And yeah, I think juju ssh needs to proxy through lxc and it uses the ssh-read interface to get access to your keys
from jhack.
I guess you also needed to add ssh-read
to your apps.jhack.plugs spec in snapcraft.yaml?
apps:
jhack:
command: bin/jhack
plugs:
- network
- network-bind
- dot-local-share-juju
- dot-config-jhack
- ssh-read
from jhack.
I guess you also needed to add
ssh-read
to your apps.jhack.plugs spec in snapcraft.yaml?apps: jhack: command: bin/jhack plugs: - network - network-bind - dot-local-share-juju - dot-config-jhack - ssh-read
Nope, I did not. I did exactly as in the commit. Why it worked anyway and what the implications are I don't know..
from jhack.
ok, found something: there seems to be a ssh-keys
interface: https://snapcraft.io/docs/ssh-keys-interface
which is what the juju snap itself uses. So it should be enough to add ssh-keys
to the app definition:
apps:
jhack:
command: bin/jhack
plugs:
- network
- network-bind
- dot-local-share-juju
- dot-config-jhack
- ssh-read
and the command should work even without adding the personal-files plug as you did. Could you try and verify?
That'd spare me asking a new manual-review plug
from jhack.
- ssh-keys
works super! Good find!
from jhack.
Related Issues (20)
- disable wrapping in tail --output HOT 1
- Add a retry path flag to jhack lobotomy
- Feature request: jhack etail HOT 3
- jhack crashes on huge bundle deplyment: jhack/helpers.py:519 in _get_units HOT 1
- [feature request] imatrix export/import HOT 1
- jhack fire failed on MAAS in non-destructive mode (the same error for `version`) HOT 2
- 'jhack tail' is slow to stop after tailing for some time (20 charms, 100+ events, 20 mins) HOT 6
- Typo in no-YOLO mode configuration `|>` HOT 4
- jhack should allow you to nuke controllers HOT 1
- Clean up syntax warnings HOT 1
- `sync` fails on Juju 3.5.3 HOT 3
- `jhack tail --output=some-file.txt` should ignore the terminal width HOT 2
- App target for sync fails for subordinates HOT 4
- `show-relation` fails on cross model relations with alias HOT 2
- `show-relation` fails on surbordinate applications HOT 7
- Add jhack action to force juju leader switch
- `jhack tail app/0` doesn't work with `--file`
- jhack 4.3.3 is broken with Import Error HOT 4
- The `jhack vinfo my-app` should be updated to `jhack charm-info my-app` in documentation. HOT 3
- [docs] Add description for difference in color and icons 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 jhack.