Skip to content

Update packages to address vulnerabilities #2648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 14, 2025
Merged

Update packages to address vulnerabilities #2648

merged 3 commits into from
Jul 14, 2025

Conversation

loreto
Copy link
Contributor

@loreto loreto commented Jul 14, 2025

Summary

Update packages in devbox repo to address any vulnerabilities:

  • Updated drupal and other devbox examples
  • Update to typeid/v2
  • Update to latest dependencies on opensource/pkg (and by extension update the transitive extract/v3 dependency to extract/v4)

How was it tested?

Ran all tests but ... tests do seem to be hanging and timing out. Hoping someone has run into this issue to help debug and make sure the tests do pass.

Community Contribution License

All community contributions in this pull request are licensed to the project
maintainers under the terms of the
Apache 2 License.

By creating this pull request, I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 License as stated in
the
Community Contribution License.

@loreto loreto requested a review from Copilot July 14, 2025 14:34
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates various dependencies and example configurations to address security vulnerabilities and ensure compatibility with newer library versions.

  • Bump core and devbox dependencies (typeid, pkg, envsec, extract, Drupal core, Docusaurus).
  • Refactor identity provider to use typeid/v2 and add a parseAPIToken helper.
  • Refresh Drupal example files with updated URLs, settings, and documentation comments.

Reviewed Changes

Copilot reviewed 9 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/devbox/providers/identity/identity.go Switch to typeid/v2 and add parseAPIToken helper for API tokens
go.mod Update go.jetify.com modules and bump indirect dependencies
examples/stacks/drupal/web/sites/example.sites.php Update multi-site documentation link
examples/stacks/drupal/web/sites/development.services.yml Add clarifying comments for development service overrides
examples/stacks/drupal/web/sites/default/default.settings.php Refine database example names, update documentation URLs, add state caching setting
examples/stacks/drupal/web/sites/default/default.services.yml Introduce security.enable_super_user and name_suffix parameters
examples/stacks/drupal/composer.json Bump Drupal core package versions
examples/stacks/drupal/.gitattributes Include PHPStan baseline in gitattributes
docs/app/package.json Upgrade Docusaurus dependencies
Comments suppressed due to low confidence (4)

internal/devbox/providers/identity/identity.go:37

  • [nitpick] Doc comments are typically only required for exported functions. Consider removing or repurposing this comment since parseAPIToken is unexported.
// parseAPIToken parses an API token string following the same pattern as other Parse functions

internal/devbox/providers/identity/identity.go:45

  • [nitpick] For consistency and clarity, capitalize 'API' in the error message (e.g., "invalid API token ID: %s").
		return zero, fmt.Errorf("invalid api_token ID: %s", s)

examples/stacks/drupal/web/sites/default/default.settings.php:358

  • The original comment included 'statistics' alongside logging and access management. Verify that dropping 'statistics' was intentional to keep documentation accurate.
 * to Drupal's logging and access management systems. In the most simple

go.mod:278

  • The indirect requirement of the v1 typeid module alongside typeid/v2 may lead to confusion. If v1 is no longer used, consider removing this indirect dependency.
	go.jetify.com/typeid v1.3.1-0.20250708200829-05dce5112f3d // indirect

@loreto loreto requested a review from savil July 14, 2025 16:25
@savil
Copy link
Collaborator

savil commented Jul 14, 2025

🤔 CICD tests did pass

@loreto loreto merged commit a235f7d into main Jul 14, 2025
33 checks passed
@loreto loreto deleted the daniel/vuln branch July 14, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants