Skip to content

run binary as user nobody#2

Draft
coip wants to merge 1 commit into
Striveworks:mainfrom
coip:polp
Draft

run binary as user nobody#2
coip wants to merge 1 commit into
Striveworks:mainfrom
coip:polp

Conversation

@coip

@coip coip commented Feb 8, 2022

Copy link
Copy Markdown

as an option to further apply PoLP

caveat emptor of course... unsure if

  • stampede currently depends on root permissions, given the operations to perform
  • & the host env this executes on may likely already be in a fairly locked-down state

cheers!

@coip

coip commented Feb 8, 2022

Copy link
Copy Markdown
Author

@coip coip marked this pull request as draft February 8, 2022 22:11
@coip

coip commented Feb 8, 2022

Copy link
Copy Markdown
Author

this most-likely wont be a clean merge actually.

quick pass, a few of the potential snags in pkg/node.go:

if _, err := os.Stat(stateFile); err == nil {

cmd = exec.Command("kubeadm", "init", "--apiserver-advertise-address", viper.GetString("advertise-address"))

cmd = exec.Command("kubeadm", "init")

func addNodeMicroK8s(response MessageResponse) {

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.

1 participant