Skip to content

Conversation

juev
Copy link
Contributor

@juev juev commented Aug 1, 2025

We need to parse all source code files for Flant licenses, and we must distinguish between CE and EE licenses.

Previously, we checked for licenses based on keywords. Now, this must be done through full-text analysis.

Example:

🐒 [license (#module)]
     Message:      license header does not match any known license
     Module:       ingress-nginx
     FilePath:     images/controller-1-9/nginx-chroot-wrapper.sh

file content:

#!/bin/bash

# Copyright 2022 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

cat /etc/resolv.conf > /chroot/etc/resolv.conf
unshare  -S 101 -R /chroot /usr/local/nginx/sbin/nginx "$@"

@juev juev requested a review from ldmonster August 1, 2025 08:56
@juev juev self-assigned this Aug 1, 2025
@juev juev marked this pull request as ready for review August 1, 2025 09:03
@juev juev marked this pull request as draft August 1, 2025 09:11
@juev juev marked this pull request as ready for review August 1, 2025 09:37
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.

1 participant