Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy cryptnono #2171

Merged
merged 1 commit into from
May 20, 2022
Merged

Deploy cryptnono #2171

merged 1 commit into from
May 20, 2022

Conversation

yuvipanda
Copy link
Contributor

cryptnono (https://github.com/yuvipanda/cryptnono/) is a
helm chart that uses bpftrace
to detect monero mining and kill all processes that mine monero
instantly. It is based off this blog
post

and installs a daemonset.

This is in addition to our minesweeper program, and focused
specifically on monero.

Ref jupyterhub/team-compass#514

cryptnono (https://github.com/yuvipanda/cryptnono/) is a
helm chart that uses [bpftrace](https://github.com/iovisor/bpftrace)
to detect monero mining and kill all processes that mine monero
instantly. It is based off [this blog
post](https://blog.px.dev/detect-monero-miners/)
and installs a daemonset.

This is in addition to our minesweeper program, and focused
specifically on monero.

Ref jupyterhub/team-compass#514
@yuvipanda
Copy link
Contributor Author

/cc @minrk

@yuvipanda yuvipanda requested a review from minrk May 18, 2022 20:19
@minrk
Copy link
Member

minrk commented May 20, 2022

/test-this-pr

@sgibson91
Copy link
Member

This Pull Request is now being tested 🎉 See the test progress in GitHub Actions.

@sgibson91
Copy link
Member

Job status: success
Branch 'test-this-pr/2171' has been deleted

@minrk
Copy link
Member

minrk commented May 20, 2022

It didn't crash on staging, so merging!

@minrk minrk merged commit 2e38275 into jupyterhub:master May 20, 2022
@minrk
Copy link
Member

minrk commented May 20, 2022

Works on GKE, but fails on azure and ovh:

azure:

+ echo 'WARNING: Cannot find distro-specific headers for "Ubuntu". Fetching generic headers.'
+ install_generic_linux_headers
WARNING: Cannot find distro-specific headers for "Ubuntu". Fetching generic headers.
+ BUILD_DIR=/linux-generic-5.4.0-1074-azure
+ SOURCES_DIR=/usr/src/linux-generic-5.4.0-1074-azure
+ [[ ! -e /usr/src/linux-generic-5.4.0-1074-azure/.installed ]]
+ echo 'Installing kernel headers for generic kernel'
+ fetch_generic_linux_sources
Installing kernel headers for generic kernel
++ awk '-vFS=[-+]' '{ print $1 }'
++ echo 5.4.0-1074-azure
+ kernel_version=5.4.0
++ awk -vFS=. '{ print $1 }'
++ echo 5.4.0-1074-azure
+ major_version=5
+ [[ 5.4.0 == *.0 ]]
++ rev
++ sed s/0.//
++ rev
++ echo 5.4.0
Fetching upstream kernel sources for 5.4.
+ kernel_version=5.4
+ echo 'Fetching upstream kernel sources for 5.4.'
+ mkdir -p /linux-generic-5.4.0-1074-azure
+ curl -sL https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.4.tar.gz
+ tar --strip-components=1 -xzf - -C /linux-generic-5.4.0-1074-azure
tar: invalid magic
tar: short read

ovh:

+ echo 'WARNING: Cannot find distro-specific headers for "Ubuntu". Fetching generic headers.'
+ install_generic_linux_headers
+ BUILD_DIR=/linux-generic-4.15.0-166-generic
+ SOURCES_DIR=/usr/src/linux-generic-4.15.0-166-generic
+ [[ ! -e /usr/src/linux-generic-4.15.0-166-generic/.installed ]]
+ echo 'Installing kernel headers for generic kernel'
+ fetch_generic_linux_sources
WARNING: Cannot find distro-specific headers for "Ubuntu". Fetching generic headers.
Installing kernel headers for generic kernel
++ echo 4.15.0-166-generic
++ awk '-vFS=[-+]' '{ print $1 }'
+ kernel_version=4.15.0
++ echo 4.15.0-166-generic
++ awk -vFS=. '{ print $1 }'
+ major_version=4
+ [[ 4.15.0 == *.0 ]]
++ echo 4.15.0
++ rev
++ sed s/0.//
++ rev
+ kernel_version=4.15
Fetching upstream kernel sources for 4.15.
+ echo 'Fetching upstream kernel sources for 4.15.'
+ mkdir -p /linux-generic-4.15.0-166-generic
+ curl -sL https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.15.tar.gz
+ tar --strip-components=1 -xzf - -C /linux-generic-4.15.0-166-generic
tar: invalid magic
tar: short read

@minrk minrk mentioned this pull request May 20, 2022
yuvipanda added a commit to yuvipanda/kubectl-trace that referenced this pull request May 21, 2022
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
@yuvipanda
Copy link
Contributor Author

yuvipanda commented May 21, 2022

@minrk \o/ ty ty. I've opened iovisor/kubectl-trace#184 and iovisor/kubectl-trace#185 to try get the fetch-headers stuff fixed.

yuvipanda added a commit to yuvipanda/kubectl-trace that referenced this pull request May 22, 2022
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
yuvipanda added a commit to yuvipanda/kubectl-trace that referenced this pull request May 22, 2022
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
yuvipanda added a commit to yuvipanda/kubectl-trace that referenced this pull request May 22, 2022
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
fntlnz pushed a commit to iovisor/kubectl-trace that referenced this pull request Jul 27, 2022
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
yuvipanda added a commit to yuvipanda/kubectl-trace that referenced this pull request Oct 26, 2023
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
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.

3 participants