Skip to content

Clarify auth for Chainguard Repository#3090

Open
s-stumbo wants to merge 8 commits intomainfrom
repo-updates
Open

Clarify auth for Chainguard Repository#3090
s-stumbo wants to merge 8 commits intomainfrom
repo-updates

Conversation

@s-stumbo
Copy link
Copy Markdown
Contributor

@s-stumbo s-stumbo commented Mar 17, 2026

[ ] Check if this is a typo or other quick fix and ignore the rest :)

Type of change

Clarify existing content around direct access for JS

What should this PR do?

  • Clarify that you do need to auth for Chainguard Repository, but it can be an existing pull token

Why are we making this change?

What are the acceptance criteria?

  • Make sure content is clear and accurate

How should this PR be tested?

Follow the docs to test out setting up Chainguard repo for JS

Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
@s-stumbo s-stumbo requested a review from a team as a code owner March 17, 2026 15:47
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 17, 2026

Deploy Preview for ornate-narwhal-088216 ready!

Name Link
🔨 Latest commit 4af71a4
🔍 Latest deploy log https://app.netlify.com/projects/ornate-narwhal-088216/deploys/69c69863dce2330008c8148b
😎 Deploy Preview https://deploy-preview-3090--ornate-narwhal-088216.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
Copy link
Copy Markdown
Collaborator

@matthewhelmke matthewhelmke left a comment

Choose a reason for hiding this comment

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

I did not test the new code, but it passes a sanity check. It should work. If you trust the source and/or have tested it yourself, I think this LGTM.

sections](#minimal-example-project) on this page for per-tool authentication
setup.

The fastest way to get credentials and configure your project in one step is
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.

Why duplicate this here and not just refer to the minimal example?


The fastest way to get credentials and configure your project in one step is
with chainctl:
```bash
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.

Also keep in mind that this all is for direct access only .. which we still consider not as good as using a repo manager .. so it should not be as prominent

Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
@s-stumbo s-stumbo requested a review from mosabua March 20, 2026 20:22

```shell
```bash
eval $(chainctl auth pull-token --output env --repository=javascript --parent=<your-org>)
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.

I would not add that here. If you really think it should be in this section then I would add it as separate snippet earlier and maybe talk about adding it in the .env file or so and sourcing that. When I wrote this I relied on the fact that the linked section explains that .. maybe that should be improved instead of duplicating it here

Pointing your existing build tools or repository manager tools at the Chainguard Repository gives you:
* Access to both Chainguard-built packages and upstream npm packages (when fallback is enabled), so you don't need to maintain a parallel npm fallback configuration.
* Malware scanning and a cooldown period applied to all packages the repository serves, including those proxied from npm.
Chainguard Repository is a unified Chainguard-managed experience for pulling
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.

I think this whole page should be deleted and the relevant info should be moved in the Chainguard Libraries for JavaScript section and maybe the page about console browsing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I'll address this in a separate PR

Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
Signed-off-by: s-stumbo <sally.stumbo@chainguard.dev>
@s-stumbo s-stumbo requested a review from mosabua March 27, 2026 14:47
@s-stumbo s-stumbo changed the title Clarify .netrc content for JS library docs Clarify auth for Chainguard Repository Mar 27, 2026
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.

3 participants