Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2025

Bumps the go group with 13 updates:

Package From To
github.com/c-bata/go-prompt 0.2.5 0.2.6
github.com/apache/camel-k/v2 2.5.0 2.7.0
github.com/forPelevin/gomoji 1.3.0 1.3.1
github.com/gookit/color 1.5.4 1.6.0
github.com/jedib0t/go-pretty/v6 6.6.5 6.6.8
github.com/magiconair/properties 1.8.9 1.8.10
github.com/spf13/viper 1.19.0 1.20.1
github.com/stretchr/testify 1.10.0 1.11.1
github.com/urfave/cli 1.22.16 1.22.17
github.com/vbauerster/mpb/v8 8.9.1 8.10.2
golang.org/x/sync 0.12.0 0.15.0
golang.org/x/term 0.30.0 0.32.0
golang.org/x/text 0.23.0 0.26.0

Updates github.com/c-bata/go-prompt from 0.2.5 to 0.2.6

Commits

Updates github.com/apache/camel-k/v2 from 2.5.0 to 2.7.0

Release notes

Sourced from github.com/apache/camel-k/v2's releases.

v2.7.0

Installation procedure

Install the operator looking at the official Camel K operator 2.7.0 installation procedure.

What's Changed

... (truncated)

Changelog

Sourced from github.com/apache/camel-k/v2's changelog.

= Releasing Apache Camel K

This procedure describes all the steps required to release a new version of Apache Camel K. It is not intended to be final, but rather a working document that needs to be updated when new requirements are found or the technical process changes.

NOTE: starting Camel K version 2, the release process of Kamelets catalog and Camel K Runtime is independent.

== Docker Hub staging setting

This project staging is hosted on https://hub.docker.com/orgs/camelk/repositories[CamelK Docker Hub organization]. Make sure one of the organization administrator grant your personal user the right privileges to push an image to this org.

[[releasing-software]] == Software required to release

In order to release Camel K you may need certain software installed in the machine from where you're performing the release action. Most of the actions are scripted and may assume the presence of tools (in some case with specific version). Here a best effort list (may not be fully accurate):

  • git CLI
  • mvn CLI
  • Docker and DockerX tooling
  • https://www.qemu.org/[QEMU] - required to emulate ARM64 build
  • cyclonedx-gomod CLI - required to generate SBOM

[[arm64-verify]] === Verify if your machine can build an ARM64 container image

As suggested above, you may need to install some software to be able to build an ARM64 based image. You can verify that with:

docker buildx ls | grep arm

NOTE: if you don't list any available builder, if you're on Ubuntu, you can install quickly QEMU via sudo apt-get install -y qemu qemu-user-static and retry to list the ARM64 based builders afterward.

[[releasing-camel-k]] == Release Camel K

As the process will do Git operations, it is advisable that you clone the Camel K repository to some new location (ie /Desktop/) in order to avoid to conflict with any other development in progress. If you’re starting a major or a minor release version, you need to create the respective release-a.b.x branch. It’s highly advisable not to release directly from main branch.

git clone https://github.com/apache/camel-k.git
cd camel-k

If you release a patch version, otherwise see next chapter

git checkout release-2.0.x

NOTE: don't use /tmp/ directories as the release process may last a few days and files generated before the voting, will be used once the release is finalized. If you use any temporary directory, make sure to store the files generated by the release procedure or later recover them from Apache dist folders.

=== Create release branch

... (truncated)

Commits
  • c61820d chore(release): preparing for tag v2.7.0
  • 52595be chore(release): Helm chart for 2.7.0
  • 033c3a2 chore: starting release branch for release-2.7.x
  • c598645 chore(runtime): default ck runtime 3.15.3
  • 0b46667 fix(ctrl): use caSecrets parameters for kamelet download
  • e5b8eea feat(trait): use sensible timeout for Quarkus native builder
  • b5ffc2f chore(deps): bump github.com/stoewer/go-strcase from 1.3.0 to 1.3.1
  • 64dc4fc fix(trait): cron replace only related components
  • f53e6a7 fix(install): remove unneded rbacs
  • 43a6cae fix(e2e): cron test time reduction
  • Additional commits viewable in compare view

Updates github.com/forPelevin/gomoji from 1.3.0 to 1.3.1

Release notes

Sourced from github.com/forPelevin/gomoji's releases.

v1.3.1

What's Changed

Full Changelog: forPelevin/gomoji@v1.3.0...v1.3.1

Commits

Updates github.com/gookit/color from 1.5.4 to 1.6.0

Release notes

Sourced from github.com/gookit/color's releases.

v1.6.0

Change Log

Fixed

Feature

Update

Other

... (truncated)

Commits
  • 0b1dc4c ✅ demo: update the examples deps and some codes
  • fa47891 ⬆️ dep: upgrade gookit/assert to v0.1.1, update some tests
  • d95f213 ✨ feat: add new convert func: HSVToRGB, RGBToHSV
  • 173325a 👔 up: update detect env, use internal Level* instead of the terminfo....
  • c5db0d0 👔 up: remove deprecated var isLikeInCmd, update some tests
  • f46f52e 🔥 chore: remove any.go, merge printer.go to quickstart.go
  • cc45966 🎨 chore: update some go file code style
  • e532935 Optimize RenderCode performance with fast paths for string arguments (#110)
  • f14a7b8 📝 chore: update some code style and some tests
  • 6de7584 Fix race condition in Theme.Tips method when called concurrently (#109)
  • Additional commits viewable in compare view

Updates github.com/jedib0t/go-pretty/v6 from 6.6.5 to 6.6.8

Release notes

Sourced from github.com/jedib0t/go-pretty/v6's releases.

v6.6.8

What's Changed

New Contributors

Full Changelog: jedib0t/go-pretty@v6.6.7...v6.6.8

v6.6.7

What's Changed

Full Changelog: jedib0t/go-pretty@v6.6.6...v6.6.7

v6.6.6

What's Changed

New Contributors

Full Changelog: jedib0t/go-pretty@v6.6.5...v6.6.6

Commits

Updates github.com/magiconair/properties from 1.8.9 to 1.8.10

Release notes

Sourced from github.com/magiconair/properties's releases.

v1.8.10

What's Changed

Full Changelog: magiconair/properties@v1.8.9...v1.8.10

Commits
  • 281f515 Merge pull request #81 from magiconair/issue-80
  • 6b7aa68 test with go1.24
  • 06f3133 escape leading whitespace on value in Write()
  • 3dfc3b5 Merge pull request #77 from magiconair/get32bit
  • b148584 Add 32bit numeric getters which do not panic
  • See full diff in compare view

Updates github.com/spf13/viper from 1.19.0 to 1.20.1

Release notes

Sourced from github.com/spf13/viper's releases.

v1.20.1

What's Changed

Bug Fixes 🐛

Full Changelog: spf13/viper@v1.20.0...v1.20.1

v1.20.0

[!WARNING] This release includes a few minor breaking changes. Read the upgrade guide for details.

What's Changed

Exciting New Features 🎉

Enhancements 🚀

Bug Fixes 🐛

Breaking Changes 🛠

Dependency Updates ⬆️

... (truncated)

Commits
  • 9568cfc fix: config type check when loading any config
  • fd05140 fix(config): get config type from v.configType or config file ext
  • c038295 docs: add update instructions for 1.20
  • 9c07e0f build: disable unused linters
  • 48112d6 ci: add Go 1.24 to the test matrix
  • 66e3e28 build(deps): bump github.com/spf13/pflag from 1.0.5 to 1.0.6
  • 17b96ac New Logo
  • 8b223a4 build(deps): bump github.com/spf13/cast from 1.7.0 to 1.7.1
  • 91fd363 chore: update afero
  • e75c48f Fix issues reported by testifylint
  • Additional commits viewable in compare view

Updates github.com/stretchr/testify from 1.10.0 to 1.11.1

Release notes

Sourced from github.com/stretchr/testify's releases.

v1.11.1

This release fixes #1785 introduced in v1.11.0 where expected argument values implementing the stringer interface (String() string) with a method which mutates their value, when passed to mock.Mock.On (m.On("Method", <expected>).Return()) or actual argument values passed to mock.Mock.Called may no longer match one another where they previously did match. The behaviour prior to v1.11.0 where the stringer is always called is restored. Future testify releases may not call the stringer method at all in this case.

What's Changed

Full Changelog: stretchr/testify@v1.11.0...v1.11.1

v1.11.0

What's Changed

Functional Changes

v1.11.0 Includes a number of performance improvements.

Fixes

Documentation, Build & CI

... (truncated)

Commits
  • 2a57335 Merge pull request #1788 from brackendawson/1785-backport-1.11
  • af8c912 Backport #1786 to release/1.11
  • b7801fb Merge pull request #1778 from stretchr/dependabot/github_actions/actions/chec...
  • 69831f3 build(deps): bump actions/checkout from 4 to 5
  • a53be35 Improve captureTestingT helper
  • aafb604 mock: improve formatting of error message
  • 7218e03 improve error msg
  • 929a212 Merge pull request #1758 from stretchr/dolmen/suite-faster-method-filtering
  • bc7459e suite: faster filtering of methods (-testify.m)
  • 7d37b5c suite: refactor methodFilter
  • Additional commits viewable in compare view

Updates github.com/urfave/cli from 1.22.16 to 1.22.17

Release notes

Sourced from github.com/urfave/cli's releases.

v1.22.17

What's Changed

Full Changelog: urfave/cli@v1.22.16...v1.22.17

Commits
  • 992e53d Merge pull request #2158 from urfave/v1-deps-up
  • b37456c Update dependencies in v1 series
  • 394fbd8 Merge pull request #2156 from urfave/v1-not-dependabot
  • 2a5bdc7 Dependabot does not work like this
  • 77bb234 Merge pull request #2153 from urfave/v1-dependabot-maybe
  • 5d6ed14 Is this file needed on each release branch?
  • See full diff in compare view

Updates github.com/vbauerster/mpb/v8 from 8.9.1 to 8.10.2

Release notes

Sourced from github.com/vbauerster/mpb/v8's releases.

v8.10.2

Full Changelog: vbauerster/mpb@v8.10.1...v8.10.2

v8.10.1

Full Changelog: vbauerster/mpb@v8.10.0...v8.10.1

v8.10.0

BarOption added:

  • BarFillerOnAbort
  • BarFillerClearOnAbort

Thanks to @​mustafabayar

v8.9.3

No release notes provided.

v8.9.2

If your code relied on mpb.DoneError type, please rename to mpb.ErrDone. Related commit: 3b489183981764cfe7a8f177f7d5e1e853d7cdbc.

Commits
  • d30b560 v8.10.2
  • 7efde3c make [][]io.Reader with capacity
  • 0675e6b prefer builtin min (needs Go 1.21)
  • db1c068 no need to capture loop var since Go 1.22

Bumps the go group with 13 updates:

| Package | From | To |
| --- | --- | --- |
| [github.com/c-bata/go-prompt](https://github.com/c-bata/go-prompt) | `0.2.5` | `0.2.6` |
| [github.com/apache/camel-k/v2](https://github.com/apache/camel-k) | `2.5.0` | `2.7.0` |
| [github.com/forPelevin/gomoji](https://github.com/forPelevin/gomoji) | `1.3.0` | `1.3.1` |
| [github.com/gookit/color](https://github.com/gookit/color) | `1.5.4` | `1.6.0` |
| [github.com/jedib0t/go-pretty/v6](https://github.com/jedib0t/go-pretty) | `6.6.5` | `6.6.8` |
| [github.com/magiconair/properties](https://github.com/magiconair/properties) | `1.8.9` | `1.8.10` |
| [github.com/spf13/viper](https://github.com/spf13/viper) | `1.19.0` | `1.20.1` |
| [github.com/stretchr/testify](https://github.com/stretchr/testify) | `1.10.0` | `1.11.1` |
| [github.com/urfave/cli](https://github.com/urfave/cli) | `1.22.16` | `1.22.17` |
| [github.com/vbauerster/mpb/v8](https://github.com/vbauerster/mpb) | `8.9.1` | `8.10.2` |
| [golang.org/x/sync](https://github.com/golang/sync) | `0.12.0` | `0.15.0` |
| [golang.org/x/term](https://github.com/golang/term) | `0.30.0` | `0.32.0` |
| [golang.org/x/text](https://github.com/golang/text) | `0.23.0` | `0.26.0` |


Updates `github.com/c-bata/go-prompt` from 0.2.5 to 0.2.6
- [Changelog](https://github.com/c-bata/go-prompt/blob/master/CHANGELOG.md)
- [Commits](c-bata/go-prompt@v0.2.5...v0.2.6)

Updates `github.com/apache/camel-k/v2` from 2.5.0 to 2.7.0
- [Release notes](https://github.com/apache/camel-k/releases)
- [Changelog](https://github.com/apache/camel-k/blob/main/release.adoc)
- [Commits](apache/camel-k@v2.5.0...v2.7.0)

Updates `github.com/forPelevin/gomoji` from 1.3.0 to 1.3.1
- [Release notes](https://github.com/forPelevin/gomoji/releases)
- [Commits](forPelevin/gomoji@v1.3.0...v1.3.1)

Updates `github.com/gookit/color` from 1.5.4 to 1.6.0
- [Release notes](https://github.com/gookit/color/releases)
- [Commits](gookit/color@v1.5.4...v1.6.0)

Updates `github.com/jedib0t/go-pretty/v6` from 6.6.5 to 6.6.8
- [Release notes](https://github.com/jedib0t/go-pretty/releases)
- [Commits](jedib0t/go-pretty@v6.6.5...v6.6.8)

Updates `github.com/magiconair/properties` from 1.8.9 to 1.8.10
- [Release notes](https://github.com/magiconair/properties/releases)
- [Commits](magiconair/properties@v1.8.9...v1.8.10)

Updates `github.com/spf13/viper` from 1.19.0 to 1.20.1
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](spf13/viper@v1.19.0...v1.20.1)

Updates `github.com/stretchr/testify` from 1.10.0 to 1.11.1
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.10.0...v1.11.1)

Updates `github.com/urfave/cli` from 1.22.16 to 1.22.17
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](urfave/cli@v1.22.16...v1.22.17)

Updates `github.com/vbauerster/mpb/v8` from 8.9.1 to 8.10.2
- [Release notes](https://github.com/vbauerster/mpb/releases)
- [Commits](vbauerster/mpb@v8.9.1...v8.10.2)

Updates `golang.org/x/sync` from 0.12.0 to 0.15.0
- [Commits](golang/sync@v0.12.0...v0.15.0)

Updates `golang.org/x/term` from 0.30.0 to 0.32.0
- [Commits](golang/term@v0.30.0...v0.32.0)

Updates `golang.org/x/text` from 0.23.0 to 0.26.0
- [Release notes](https://github.com/golang/text/releases)
- [Commits](golang/text@v0.23.0...v0.26.0)

---
updated-dependencies:
- dependency-name: github.com/c-bata/go-prompt
  dependency-version: 0.2.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/apache/camel-k/v2
  dependency-version: 2.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/forPelevin/gomoji
  dependency-version: 1.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/gookit/color
  dependency-version: 1.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/jedib0t/go-pretty/v6
  dependency-version: 6.6.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/magiconair/properties
  dependency-version: 1.8.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/spf13/viper
  dependency-version: 1.20.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: github.com/urfave/cli
  dependency-version: 1.22.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go
- dependency-name: github.com/vbauerster/mpb/v8
  dependency-version: 8.10.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: golang.org/x/sync
  dependency-version: 0.15.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: golang.org/x/term
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
- dependency-name: golang.org/x/text
  dependency-version: 0.26.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update go code labels Sep 11, 2025
@github-actions
Copy link
Contributor

🚨 Frogbot scanned this pull request and found the below:

📗 Scan Summary

  • Frogbot scanned for vulnerabilities and found 5 issues
Scan Category Status Security Issues
Software Composition Analysis ✅ Done
1 Issues Found 1 Medium
Contextual Analysis ✅ Done -
Static Application Security Testing (SAST) ✅ Done
4 Issues Found 4 Low
Secrets ✅ Done -
Infrastructure as Code (IaC) ✅ Done Not Found

📦 Vulnerable Dependencies

Severity ID Contextual Analysis Direct Dependencies Impacted Dependency Fixed Versions
medium
Medium
- - github.com/apache/camel-k/v2:v2.7.0
github.com/go-viper/mapstructure/v2:v2.3.0
github.com/go-viper/mapstructure/v2 v2.3.0 [2.4.0]

🔖 Details

Vulnerability Details

Direct Dependencies: github.com/apache/camel-k/v2:v2.7.0, github.com/go-viper/mapstructure/v2:v2.3.0
Impacted Dependency: github.com/go-viper/mapstructure/v2:v2.3.0
Fixed Versions: [2.4.0]
CVSS V3: 5.3

go-viper's mapstructure May Leak Sensitive Information in Logs When Processing Malformed Data


@github-actions
Copy link
Contributor

{
		ResolverPrefix + Url: "http://some.url.com",
		DeployerPrefix + Url: "http://some.other.url.com",
	}

at common/build/buildinfoproperties_test.go (line 146)

🎯 Static Application Security Testing (SAST) Vulnerability

Severity Finding
low
Low
Detected usage of communication methods lacking encryption.
Full description

Vulnerability Details

Rule ID: go-insecure-protocol

Overview

Using insecure protocols—such as HTTP, FTP, or LDAP—can expose sensitive
data during transmission, making it vulnerable to eavesdropping and man-in-the-middle
attacks. Secure protocols like HTTPS and FTPS should be used to ensure data
encryption during communication.

Vulnerable example

In this example, the application uses insecure protocols to communicate,
taking the protocol type from hardcoded strings.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this vulnerable example, the ConnectToFrogService method uses hardcoded
insecure protocols (HTTP and FTP) to connect, making communications susceptible
to attacks.

Remediation

To mitigate the use of insecure protocols, replace them with secure alternatives
such as HTTPS or FTPS.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this remediated example, the ConnectToFrogService method utilizes
secure protocols (HTTPS and FTPS) to ensure that communications are encrypted,
thereby protecting sensitive data.



@github-actions
Copy link
Contributor

{"repo", "http://url/art", "http://url/art/api/npm/repo"}

at artifactory/commands/utils/npmcmdutils_test.go (line 17)

🎯 Static Application Security Testing (SAST) Vulnerability

Severity Finding
low
Low
Detected usage of communication methods lacking encryption.
Full description

Vulnerability Details

Rule ID: go-insecure-protocol

Overview

Using insecure protocols—such as HTTP, FTP, or LDAP—can expose sensitive
data during transmission, making it vulnerable to eavesdropping and man-in-the-middle
attacks. Secure protocols like HTTPS and FTPS should be used to ensure data
encryption during communication.

Vulnerable example

In this example, the application uses insecure protocols to communicate,
taking the protocol type from hardcoded strings.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this vulnerable example, the ConnectToFrogService method uses hardcoded
insecure protocols (HTTP and FTP) to connect, making communications susceptible
to attacks.

Remediation

To mitigate the use of insecure protocols, replace them with secure alternatives
such as HTTPS or FTPS.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this remediated example, the ConnectToFrogService method utilizes
secure protocols (HTTPS and FTPS) to ensure that communications are encrypted,
thereby protecting sensitive data.



@github-actions
Copy link
Contributor

{"repo", "http://url/art/", "http://url/art/api/npm/repo"}

at artifactory/commands/utils/npmcmdutils_test.go (line 18)

🎯 Static Application Security Testing (SAST) Vulnerability

Severity Finding
low
Low
Detected usage of communication methods lacking encryption.
Full description

Vulnerability Details

Rule ID: go-insecure-protocol

Overview

Using insecure protocols—such as HTTP, FTP, or LDAP—can expose sensitive
data during transmission, making it vulnerable to eavesdropping and man-in-the-middle
attacks. Secure protocols like HTTPS and FTPS should be used to ensure data
encryption during communication.

Vulnerable example

In this example, the application uses insecure protocols to communicate,
taking the protocol type from hardcoded strings.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this vulnerable example, the ConnectToFrogService method uses hardcoded
insecure protocols (HTTP and FTP) to connect, making communications susceptible
to attacks.

Remediation

To mitigate the use of insecure protocols, replace them with secure alternatives
such as HTTPS or FTPS.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this remediated example, the ConnectToFrogService method utilizes
secure protocols (HTTPS and FTPS) to ensure that communications are encrypted,
thereby protecting sensitive data.



@github-actions
Copy link
Contributor

{"", "http://url/art", "http://url/art/api/npm/"}

at artifactory/commands/utils/npmcmdutils_test.go (line 20)

🎯 Static Application Security Testing (SAST) Vulnerability

Severity Finding
low
Low
Detected usage of communication methods lacking encryption.
Full description

Vulnerability Details

Rule ID: go-insecure-protocol

Overview

Using insecure protocols—such as HTTP, FTP, or LDAP—can expose sensitive
data during transmission, making it vulnerable to eavesdropping and man-in-the-middle
attacks. Secure protocols like HTTPS and FTPS should be used to ensure data
encryption during communication.

Vulnerable example

In this example, the application uses insecure protocols to communicate,
taking the protocol type from hardcoded strings.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this vulnerable example, the ConnectToFrogService method uses hardcoded
insecure protocols (HTTP and FTP) to connect, making communications susceptible
to attacks.

Remediation

To mitigate the use of insecure protocols, replace them with secure alternatives
such as HTTPS or FTPS.

package main

import (
    "fmt"
)

type SwampService struct {
    InsecureHttpProtocol string
    InsecureFtpProtocol  string
}

func NewSwampService() *SwampService {
    return &SwampService{
        InsecureHttpProtocol: "http://", // Insecure protocol
        InsecureFtpProtocol:  "ftp://",  // Insecure protocol
    }
}

func (s *SwampService) ConnectToFrogService(server string) {
    url := s.InsecureHttpProtocol + server + "/frogEndpoint"
    s.connect(url)

    url = s.InsecureFtpProtocol + server + "/frogFile"
    s.connect(url)
}

func (s *SwampService) connect(url string) {
    fmt.Printf("Connecting to %s\n", url)
    // Logic to connect to the service
}

func main() {
    service := NewSwampService()
    service.ConnectToFrogService("example.com")
}

In this remediated example, the ConnectToFrogService method utilizes
secure protocols (HTTPS and FTPS) to ensure that communications are encrypted,
thereby protecting sensitive data.



@ehl-jf ehl-jf added the ignore for release Automatically generated release notes label Sep 11, 2025
@ehl-jf ehl-jf merged commit 4e885f0 into master Sep 11, 2025
7 of 8 checks passed
@ehl-jf ehl-jf deleted the dependabot/go_modules/go-9fefdd111e branch September 11, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update go code ignore for release Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants