Compare commits
11 Commits
83144f737c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 170f9c9313 | |||
| 2a8b4b42bc | |||
| 9dbdfbd42b | |||
|
08ffdff1ee
|
|||
|
1820102e44
|
|||
| a579a16eea | |||
| f6f3ac26d0 | |||
| 0de2613a2a | |||
| 86ba1b3f56 | |||
| f7c064cba9 | |||
| 2a3ee82e8a |
@@ -1,4 +1,4 @@
|
||||
name: Build and Push Docker Image
|
||||
name: Patch
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@@ -21,8 +21,11 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.yoshino-s.xyz
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
username: ${{ gitea.repository_owner }}
|
||||
password: ${{ secrets.PACKAGES_PASSWORD }}
|
||||
- name: Replace tag
|
||||
run: |
|
||||
sed -i "s/latest/${{ gitea.event.inputs.tag }}/g" Dockerfile
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
263
.gitignore
vendored
263
.gitignore
vendored
@@ -1,176 +1,145 @@
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/python
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=python
|
||||
# Created by https://www.toptal.com/developers/gitignore/api/node
|
||||
# Edit at https://www.toptal.com/developers/gitignore?templates=node
|
||||
|
||||
### Python ###
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
build/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
var/
|
||||
wheels/
|
||||
share/python-wheels/
|
||||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
MANIFEST
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.nox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*.cover
|
||||
*.py,cover
|
||||
.hypothesis/
|
||||
.pytest_cache/
|
||||
cover/
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
### Node ###
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
local_settings.py
|
||||
db.sqlite3
|
||||
db.sqlite3-journal
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
lerna-debug.log*
|
||||
.pnpm-debug.log*
|
||||
|
||||
# Flask stuff:
|
||||
instance/
|
||||
.webassets-cache
|
||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# Scrapy stuff:
|
||||
.scrapy
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# PyBuilder
|
||||
.pybuilder/
|
||||
target/
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
*.lcov
|
||||
|
||||
# Jupyter Notebook
|
||||
.ipynb_checkpoints
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# pyenv
|
||||
# For a library or package, you might want to ignore these files since the code is
|
||||
# intended to run in multiple environments; otherwise, check them in:
|
||||
# .python-version
|
||||
# Bower dependency directory (https://bower.io/)
|
||||
bower_components
|
||||
|
||||
# pipenv
|
||||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||
# install all needed dependencies.
|
||||
#Pipfile.lock
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# poetry
|
||||
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
||||
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
||||
# commonly ignored for libraries.
|
||||
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
||||
#poetry.lock
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# pdm
|
||||
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
||||
#pdm.lock
|
||||
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
||||
# in version control.
|
||||
# https://pdm.fming.dev/#use-with-ide
|
||||
.pdm.toml
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
||||
__pypackages__/
|
||||
# Snowpack dependency directory (https://snowpack.dev/)
|
||||
web_modules/
|
||||
|
||||
# Celery stuff
|
||||
celerybeat-schedule
|
||||
celerybeat.pid
|
||||
# TypeScript cache
|
||||
*.tsbuildinfo
|
||||
|
||||
# SageMath parsed files
|
||||
*.sage.py
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Environments
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional stylelint cache
|
||||
.stylelintcache
|
||||
|
||||
# Microbundle cache
|
||||
.rpt2_cache/
|
||||
.rts2_cache_cjs/
|
||||
.rts2_cache_es/
|
||||
.rts2_cache_umd/
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
ENV/
|
||||
env.bak/
|
||||
venv.bak/
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
.env.local
|
||||
|
||||
# Spyder project settings
|
||||
.spyderproject
|
||||
.spyproject
|
||||
# parcel-bundler cache (https://parceljs.org/)
|
||||
.cache
|
||||
.parcel-cache
|
||||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
# Next.js build output
|
||||
.next
|
||||
out
|
||||
|
||||
# mkdocs documentation
|
||||
/site
|
||||
# Nuxt.js build / generate output
|
||||
.nuxt
|
||||
dist
|
||||
|
||||
# mypy
|
||||
.mypy_cache/
|
||||
.dmypy.json
|
||||
dmypy.json
|
||||
# Gatsby files
|
||||
.cache/
|
||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
||||
# public
|
||||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
# vuepress build output
|
||||
.vuepress/dist
|
||||
|
||||
# pytype static type analyzer
|
||||
.pytype/
|
||||
# vuepress v2.x temp and cache directory
|
||||
.temp
|
||||
|
||||
# Cython debug symbols
|
||||
cython_debug/
|
||||
# Docusaurus cache and generated files
|
||||
.docusaurus
|
||||
|
||||
# PyCharm
|
||||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
# Serverless directories
|
||||
.serverless/
|
||||
|
||||
### Python Patch ###
|
||||
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
||||
poetry.toml
|
||||
# FuseBox cache
|
||||
.fusebox/
|
||||
|
||||
# ruff
|
||||
.ruff_cache/
|
||||
# DynamoDB Local files
|
||||
.dynamodb/
|
||||
|
||||
# LSP config files
|
||||
pyrightconfig.json
|
||||
# TernJS port file
|
||||
.tern-port
|
||||
|
||||
# Stores VSCode versions used for testing VSCode extensions
|
||||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
|
||||
### Node Patch ###
|
||||
# Serverless Webpack directories
|
||||
.webpack/
|
||||
|
||||
# Optional stylelint cache
|
||||
|
||||
# SvelteKit build / generate output
|
||||
.svelte-kit
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/node
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/python
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
# You can override the included template(s) by including variable overrides
|
||||
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
|
||||
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
|
||||
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
|
||||
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
|
||||
# Note that environment variables can be set in several places
|
||||
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
|
||||
stages:
|
||||
- release
|
||||
- test
|
||||
variables:
|
||||
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE"
|
||||
CI_APPLICATION_TAG: nightly
|
||||
release-image:
|
||||
image: docker:24.0.6
|
||||
stage: release
|
||||
rules:
|
||||
- if: "$CI_APPLICATION_TAG"
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- |-
|
||||
export IMAGE_TAG=$CI_APPLICATION_REPOSITORY:$CI_APPLICATION_TAG
|
||||
echo $IMAGE_TAG
|
||||
sed "s/latest/$CI_APPLICATION_TAG/g" Dockerfile > Dockerfile.tmp
|
||||
docker build . --pull -f Dockerfile.tmp -t $IMAGE_TAG
|
||||
docker push $IMAGE_TAG
|
||||
container_scanning:
|
||||
needs:
|
||||
- release-image
|
||||
include:
|
||||
- template: Jobs/Container-Scanning.gitlab-ci.yml
|
||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||
99
inject.js
99
inject.js
@@ -1,61 +1,48 @@
|
||||
|
||||
license_sdk_1.LicenseManager.prototype.licenseCert = {
|
||||
consumerId: "n8n",
|
||||
version: 1,
|
||||
tenantId: 1,
|
||||
renewalToken: "123",
|
||||
deviceLock: false,
|
||||
deviceFingerprint: "888",
|
||||
createdAt: new Date(),
|
||||
issuedAt: new Date(),
|
||||
expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
terminatesAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
entitlements: [
|
||||
{
|
||||
id: "1",
|
||||
productId: "123",
|
||||
productMetadata: {
|
||||
terms: {
|
||||
isMainPlan: true,
|
||||
consumerId: "n8n",
|
||||
version: 1,
|
||||
tenantId: 1,
|
||||
renewalToken: "123",
|
||||
deviceLock: false,
|
||||
deviceFingerprint: "888",
|
||||
createdAt: new Date(),
|
||||
issuedAt: new Date(),
|
||||
expiresAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
terminatesAt: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
entitlements: [
|
||||
{
|
||||
id: "1",
|
||||
productId: "123",
|
||||
productMetadata: {
|
||||
terms: {
|
||||
isMainPlan: true,
|
||||
},
|
||||
},
|
||||
validFrom: new Date(),
|
||||
validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
features: {
|
||||
planName: "Enterprise",
|
||||
...Object.
|
||||
fromEntries(
|
||||
Object.values(constants_1.LICENSE_FEATURES).
|
||||
filter((f) => !(['feat:apiDisabled', 'feat:showNonProdBanner'].includes(f))).
|
||||
map((f) => [f, true]),
|
||||
),
|
||||
...Object.fromEntries(
|
||||
Object.values(constants_1.LICENSE_QUOTAS).
|
||||
map((f) => [f, -1]),
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
validFrom: new Date(),
|
||||
validTo: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365),
|
||||
features: {
|
||||
planName: "Enterprise",
|
||||
"feat:sharing": true,
|
||||
"feat:ldap": true,
|
||||
"feat:saml": true,
|
||||
"feat:logStreaming": true,
|
||||
"feat:advancedExecutionFilters": true,
|
||||
"feat:variables": true,
|
||||
"feat:debugInEditor": true,
|
||||
"feat:workflowHistory": true,
|
||||
"feat:showNonProdBanner": false,
|
||||
"feat:externalSecrets": true,
|
||||
"feat:apiDisabled": false,
|
||||
"feat:sourceControl": true,
|
||||
"feat:binaryDataS3": true,
|
||||
"feat:multipleMainInstances": true,
|
||||
"feat:workerView": true,
|
||||
"feat:advancedPermissions": true,
|
||||
'feat:projectRole:admin': true,
|
||||
'feat:projectRole:editor': true,
|
||||
'feat:projectRole:viewer': true,
|
||||
'feat:aiAssistant': true,
|
||||
'feat:askAi': true,
|
||||
'feat:communityNodes:customRegistry': true,
|
||||
'feat:aiCredits': true,
|
||||
'quota:aiCredits': 114514,
|
||||
'quota:maxTeamProjects': 114514,
|
||||
},
|
||||
},
|
||||
],
|
||||
managementJwt: "123",
|
||||
isEphemeral: true,
|
||||
],
|
||||
managementJwt: "123",
|
||||
isEphemeral: true,
|
||||
};
|
||||
console.log('License', license_sdk_1.LicenseManager.prototype.licenseCert);
|
||||
license_sdk_1.LicenseManager.prototype.updateCurrentFeatures();
|
||||
license_sdk_1.LicenseManager.prototype.isInitialized = () => true;
|
||||
license_sdk_1.LicenseManager.prototype.activate = () => {};
|
||||
license_sdk_1.LicenseManager.prototype.renew = () => {};
|
||||
license_sdk_1.LicenseManager.prototype.reset = () => {};
|
||||
// license_sdk_1.LicenseManager.prototype.isInitialized = () => true;
|
||||
license_sdk_1.LicenseManager.prototype.activate = () => { };
|
||||
license_sdk_1.LicenseManager.prototype.initialize = () => { };
|
||||
license_sdk_1.LicenseManager.prototype.renew = () => { };
|
||||
license_sdk_1.LicenseManager.prototype.reset = () => { };
|
||||
16
package.json
Normal file
16
package.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "n8n",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"packageManager": "pnpm@10.11.0",
|
||||
"dependencies": {
|
||||
"n8n": "^1.93.0"
|
||||
}
|
||||
}
|
||||
14817
pnpm-lock.yaml
generated
Normal file
14817
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user