Skip to content

uv index feature will leak credentials to uv.lock #8296

Description

@inoa-jboliveira

Hi,

Maybe I am doing things wrong, but is there a way to use the new index feature without it sending credentials to uv lock?

E.g.: With something like this

[[tool.uv.index]]
name = "ixname"
url = "https://user:password@mynexusrepo.example.com/repository/hosted/simple/"

[tool.uv.sources]
mypackage = { index = "ixname" }

I will get the user and password on the index name on uv.toml

{ name = "mypackage", specifier = "==5.4.1", index = "https://user:password@mynexusrepo.example.com/repository/hosted/simple/" },

Notice this won't happen to the URL portion, which remains the same after using the new syntax

{ url = "https://mynexusrepo.example.com/repository/hosted/packages/mypackage/5.4.1/...", hash = "sha256:..." }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions