eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

Home Page:https://eth-brownie.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make Brownie to run in a less privileged environment - Executes only with ROOT today

karmops opened this issue · comments

Overview

Run an application that uses brownie in k8s using a security context

securityContext:
  allowPrivilegeEscalation: false
  runAsUser: 10001
  runAsGroup: 10001
  capabilities:
    drop: ["ALL"]

Specification

securityContext:
  allowPrivilegeEscalation: false
  runAsUser: 10001
  runAsGroup: 10001
  capabilities:
    drop: ["ALL"]

Result

image

Brownie only executes with the root user
image

seems cache.db and topics.json are created during the Brownie initialization.