Skip to content

Keyring password prompt on Linux blocks automation, ignores all flags #1209

@tassa-yoniso-manasi-karoto

Description

Describe the bug

Image

When launching a browser with go-rod on Linux, the "Unlock Login Keyring" password prompt appears and blocks the program. This happens despite using all known flags intended to prevent it, including --password-store=basic, --use-mock-keychain, and a clean UserDataDir. The flags appear to have no effect.
I don't use stealth pkg.

To Reproduce

func main() {
	userDataDir, _ := os.MkdirTemp("", "rod-user-data-*")
	defer os.RemoveAll(userDataDir)

	l := launcher.New().
		UserDataDir(userDataDir).
		Set("password-store", "basic").
		Set("use-mock-keychain").
		Headless(true)

	log.Println("Attempting to launch browser...")

	// Execution blocks here due to the OS password prompt.
	controlURL := l.MustLaunch()

	browser := rod.New().ControlURL(controlURL).MustConnect()
	defer browser.MustClose()

	log.Println("This log message is never reached without manual intervention.")
}

This program hangs at l.MustLaunch() until the popup is manually dismissed.

Expected Behavior

The browser should launch without any OS-level password prompts. The automation script should run uninterrupted.

System Environments

  • Rod Version: v0.116.2
  • Go Version: 1.23.11
  • OS: Void Linux
  • Desktop Environment: Xfce

Possible cause

"--password-store=basic works, as long as you don't use ignoreDefaultArgs: ["--enable-automation"]" Stackoverflow

maybe go-rod uses some stealth by default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions