question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cml-runner self-hosted issues

See original GitHub issue
  • ~/.cml/cml-*/ is not named according to --name
  • ~/.cml/cml-*/ is not cleaned up on exit (should be cleaned esp. if no --name)
  • don’t pass sensitive env vars (#802)
  • cache runner setup script in ~/.cml/ (#615)
  • feature request: local secrets (cml runner --env flag similar to docker run --env)
  • feature request: user ID (cml runner --user flag similar to docker run --user)
  • feature request: auto-mount sockets for docker-in-docker support (#799)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
DavidGOrtegacommented, Nov 4, 2021

There is not a lot of work to do here. As we discussed the GH runner has the “ability” to propagate its ENV vars. Here GH runner inherits the CML wrapper vars. What we should do to fix this and not allow the GH runner to behave this way is simply pass an empty ENV vars in the exec. This way the ENV vars that will always access the runner will be the CI vars and workflow.

1reaction
casperdclcommented, Nov 4, 2021

just realised this is also a problem on all runners (not just manual self-hosted)

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: iterative/setup-cml@v1
    - uses: actions/checkout@v2
    - run: |
        cml runner --labels=cml-runner --cloud=aws --cloud-type=t2.micro
      env:
        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
        REPO_TOKEN: ${{ secrets.CML_CI_TOKEN }}
  train:
    runs-on: [self-hosted, cml-runner]
    steps:
    - run: env # why does this list AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY ??

should really either

  • whitelist-only vanilla CI vars (GITHUB_ENV etc) or
  • at least blacklist CML config vars (AWS_*ACCESS_KEY etc)
Read more comments on GitHub >

github_iconTop Results From Across the Web

runner | CML
Command Reference: runner. cml runner launch [options]. Starts a runner (either via any supported cloud compute provider or locally on-premise).
Read more >
Self-hosted workers fail immediately, get marked "offline" in ...
One more thing: if I deploy the worker as reusable it will be marked as offline in the list of workers after the...
Read more >
CML self-hosted runners on demand with GPUs - Iterative.ai
With CML docker images launching your own self-hosted runner is very easy. These images have CML and DVC preinstalled (among other perks), plus...
Read more >
Pipeline gets stuck in a job when a self-hosted runner ... - GitLab
Summary Im launching a self-hosted runner using CML, that its picking a job of the pipeline shown below. If I disconnect...
Read more >
Self-Hosted GitHub Runners Are Backdoors - Praetorian
Our Red Team identified that certain self-hosted runners had Docker installed, and the user running the GitHub runner process was a member of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found