Skip to content

Redact registry credentials in lockfile#5803

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/redact
Aug 6, 2024
Merged

Redact registry credentials in lockfile#5803
charliermarsh merged 1 commit into
mainfrom
charlie/redact

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Aug 5, 2024

Copy link
Copy Markdown
Member

Summary

Okay, I tested this against...

  • Our public "private" proxy
  • Fury
  • AWS CodeArtifact
  • Azure Artifacts

It took a long time.

All of them work as expected with this approach: we omit the credentials from the lockfile, then wire them back up when the index URL is provided during subsequent operations.

Closes #5119.

@charliermarsh charliermarsh added enhancement New feature or improvement to existing functionality preview Experimental behavior labels Aug 5, 2024
@charliermarsh charliermarsh requested a review from zanieb August 5, 2024 23:29
Comment thread crates/uv/tests/lock.rs
});

// Installing from the lockfile should fail without credentials.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--index-url").arg("https://pypi-proxy.fly.dev/basic-auth/simple").current_dir(&context.temp_dir), @r###"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you don't provide an index-url?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uv lock should redact username and password from source

2 participants