Skip to content

Commit de357a6

Browse files
committed
Merge remote-tracking branch 'apache/main' into add-externaldetails-cleanup
2 parents 17db673 + 2c1aad4 commit de357a6

File tree

339 files changed

+9543
-2744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

339 files changed

+9543
-2744
lines changed

.asf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ github:
6363
protected_branches: ~
6464

6565
notifications:
66-
67-
66+
67+
6868
pullrequests: [email protected]
69-
discussions: [email protected]
69+
discussions: [email protected]

.github/linters/.yamllint.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
---
18+
extends: relaxed
19+
20+
rules:
21+
line-length:
22+
max: 400 # Very forgiving for GitHub Actions and infrastructure files
23+
indentation: disable # Disable indentation checking for existing files
24+
comments: disable # Disable comment formatting checks
25+
brackets: disable # Disable bracket spacing checks
26+
colons:
27+
max-spaces-after: -1 # Allow any number of spaces after colon
28+
max-spaces-before: 0
29+
document-start: disable # Many files don't have ---
30+
truthy:
31+
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']

.github/linters/codespell.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,12 @@ encryted
183183
enebled
184184
enmpty
185185
entires
186-
enviornment
187186
environmnet
188187
equivalant
189188
erro
190189
erronous
191190
everthing
192191
everytime
193-
excetion
194-
excption
195192
excute
196193
execept
197194
execption
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: CodeQL Analysis
19+
on:
20+
push:
21+
branches: [main]
22+
pull_request:
23+
branches: [main]
24+
permissions:
25+
actions: read
26+
contents: read
27+
security-events: write
28+
jobs:
29+
codeql:
30+
name: CodeQL
31+
runs-on: ubuntu-latest
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["actions"]
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v3
41+
with:
42+
languages: ${{ matrix.language }}
43+
- name: Autobuild
44+
uses: github/codeql-action/autobuild@v3
45+
- name: Perform CodeQL Analysis
46+
uses: github/codeql-action/analyze@v3
47+
with:
48+
category: "Security"

.github/workflows/linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
name: Lint
18+
name: pre-commit
1919

2020
on: [pull_request]
2121

.pre-commit-config.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ repos:
3838
- id: check-case-conflict
3939
#- id: check-executables-have-shebangs
4040
- id: check-merge-conflict
41+
- id: check-shebang-scripts-are-executable
42+
files: \.sh$
4143
- id: check-symlinks
4244
- id: check-vcs-permalinks
4345
#- id: check-yaml
@@ -48,6 +50,7 @@ repos:
4850
exclude: >
4951
(?x)
5052
^scripts/vm/systemvm/id_rsa\.cloud$|
53+
^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|
5154
^server/src/test/java/com/cloud/keystore/KeystoreTest\.java$|
5255
^server/src/test/resources/certs/dsa_self_signed\.key$|
5356
^server/src/test/resources/certs/non_root\.key$|
@@ -57,15 +60,16 @@ repos:
5760
^server/src/test/resources/certs/rsa_self_signed\.key$|
5861
^services/console-proxy/rdpconsole/src/test/doc/rdp-key\.pem$|
5962
^systemvm/agent/certs/localhost\.key$|
60-
^systemvm/agent/certs/realhostip\.key$
63+
^systemvm/agent/certs/realhostip\.key$|
64+
^test/integration/smoke/test_ssl_offloading.py$
6165
- id: end-of-file-fixer
6266
exclude: \.vhd$
6367
- id: fix-byte-order-marker
6468
- id: forbid-submodules
6569
- id: mixed-line-ending
6670
exclude: \.cs$
6771
- id: trailing-whitespace
68-
files: \.(bat|cfg|cs|css|gitignore|header|in|install|java|md|properties|py|rb|sh|sql|txt|vue|xml|xsl|yaml|yml)$
72+
files: \.(bat|cfg|cs|css|gitignore|header|in|install|java|md|properties|py|rb|rc|sh|sql|te|template|txt|ucls|vue|xml|xsl|yaml|yml)$|^cloud-cli/bindir/cloud-tool$|^debian/changelog$
6973
args: [--markdown-linebreak-ext=md]
7074
exclude: ^services/console-proxy/rdpconsole/src/test/doc/freerdp-debug-log\.txt$
7175
- repo: https://github.com/codespell-project/codespell
@@ -75,23 +79,12 @@ repos:
7579
name: run codespell
7680
description: Check spelling with codespell
7781
args: [--ignore-words=.github/linters/codespell.txt]
78-
exclude: ^systemvm/agent/noVNC/|^ui/package\.json$|^ui/package-lock\.json$|^ui/public/js/less\.min\.js$|^ui/public/locales/.*[^n].*\.json$
82+
exclude: ^systemvm/agent/noVNC/|^ui/package\.json$|^ui/package-lock\.json$|^ui/public/js/less\.min\.js$|^ui/public/locales/.*[^n].*\.json$|^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|^test/integration/smoke/test_ssl_offloading.py$
7983
- repo: https://github.com/pycqa/flake8
8084
rev: 7.0.0
8185
hooks:
8286
- id: flake8
8387
args: [--config, .github/linters/.flake8]
84-
exclude: >
85-
(?x)
86-
^agent/bindir/cloud-setup-agent\.in$|
87-
^client/bindir/cloud-update-xenserver-licenses\.in$|
88-
^cloud-cli/bindir/cloud-tool$|
89-
^python/bindir/cloud-grab-dependent-library-versions$|
90-
^python/bindir/cloud-setup-baremetal$|
91-
^scripts/vm/hypervisor/xenserver/storagePlugin$|
92-
^scripts/vm/hypervisor/xenserver/vmopspremium$|
93-
^setup/bindir/cloud-setup-encryption\.in$|
94-
^venv/.*$
9588
- repo: https://github.com/igorshubovych/markdownlint-cli
9689
rev: v0.45.0
9790
hooks:
@@ -101,3 +94,13 @@ repos:
10194
args: [--config=.github/linters/.markdown-lint.yml]
10295
types: [markdown]
10396
files: \.(md|mdown|markdown)$
97+
- repo: https://github.com/adrienverge/yamllint
98+
rev: v1.37.1
99+
hooks:
100+
- id: yamllint
101+
name: run yamllint
102+
description: check YAML files with yamllint
103+
args: [--config-file=.github/linters/.yamllint.yml]
104+
types: [yaml]
105+
files: \.ya?ml$
106+
exclude: ^.*k8s-.*\.ya?ml$

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,12 @@ Bug ID | Description
644644
Version 4.2.1
645645
-------------
646646

647-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
647+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.1/html/Release_Notes/version-4.2.html#issues-fixed-4.2.1)
648648

649649
Version 4.2.0
650650
-------------
651651
Released on October 1 2013.
652-
Release notes contain the list of [bug fixes](http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
652+
Release notes contain the list of [bug fixes](https://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Release_Notes/index.html)
653653

654654
Version 4.1.0
655655
-------------

INSTALL.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Apache CloudStack Installation basics
22

33
This document describes how to develop, build, package and install Apache
4-
CloudStack. For more information please refer to the official [documentation](http://docs.cloudstack.apache.org)
4+
CloudStack. For more information please refer to the official [documentation](https://docs.cloudstack.apache.org)
55
or the developer [wiki](https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home).
66

77
Apache CloudStack developers use various platforms for development, this guide
@@ -41,7 +41,7 @@ Start the MySQL service:
4141

4242
### Using jenv and/or pyenv for Version Management
4343

44-
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](http://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
44+
CloudStack is built using Java and Python. To make selection of these tools versions more consistent and ease installation for developers, optional support for [jenv](http://www.jenv.be/) and [pyenv](https://github.com/yyuu/pyenv) with [virtualenv]|(https://github.com/yyuu/pyenv-virtualenv) is provided. jenv installation instructions are available here and pyenv installation instructions are available here. For users of [oh-my-zsh](https://ohmyz.sh/) there is a pyenv plugin available to trigger configuration of pyenv in a shell session.
4545

4646
Following installation, execute the following commands to configure jenv and pyenv for use with CloudStack development:
4747

@@ -171,7 +171,7 @@ All the rpm packages will be created in `dist/rpmbuild/RPMS/x86_64` directory.
171171

172172
## Notes
173173

174-
If you will be using Xen as your hypervisor, please download [vhd-util](http://download.cloudstack.org/tools/vhd-util)
174+
If you will be using Xen as your hypervisor, please download [vhd-util](https://download.cloudstack.org/tools/vhd-util)
175175

176176
If management server is installed on RHEL/CentOS, then copy vhd-util into:
177177

PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ This PR...
2222
- [ ] Bug fix (non-breaking change which fixes an issue)
2323
- [ ] Enhancement (improves an existing feature and functionality)
2424
- [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
25-
- [ ] build/CI
26-
- [ ] test (unit or integration test code)
25+
- [ ] Build/CI
26+
- [ ] Test (unit or integration test code)
2727

2828
### Feature/Enhancement Scale or Bug Severity
2929

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# Apache CloudStack [![Build Status](https://github.com/apache/cloudstack/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/build.yml) [![UI Build](https://github.com/apache/cloudstack/actions/workflows/ui.yml/badge.svg)](https://github.com/apache/cloudstack/actions/workflows/ui.yml) [![License Check](https://github.com/apache/cloudstack/actions/workflows/rat.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/rat.yml) [![Simulator CI](https://github.com/apache/cloudstack/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/ci.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=apache_cloudstack&metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_cloudstack) [![codecov](https://codecov.io/gh/apache/cloudstack/branch/main/graph/badge.svg)](https://codecov.io/gh/apache/cloudstack)
1+
# Apache CloudStack
2+
3+
[![Build Status](https://github.com/apache/cloudstack/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/build.yml)
4+
[![codecov](https://codecov.io/gh/apache/cloudstack/branch/main/graph/badge.svg)](https://codecov.io/gh/apache/cloudstack)
5+
[![Docker CloudStack Simulator Status](https://github.com/apache/cloudstack/actions/workflows/docker-cloudstack-simulator.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/docker-cloudstack-simulator.yml)
6+
[![License Check](https://github.com/apache/cloudstack/actions/workflows/rat.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/rat.yml)
7+
[![Linter Status](https://github.com/apache/cloudstack/actions/workflows/linter.yml/badge.svg)](https://github.com/apache/cloudstack/actions/workflows/linter.yml)
8+
[![Merge Conflict Checker Status](https://github.com/apache/cloudstack/actions/workflows/merge-conflict-checker.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/merge-conflict-checker.yml)
9+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=apache_cloudstack&metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_cloudstack)
10+
[![Simulator CI](https://github.com/apache/cloudstack/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/ci.yml)
11+
[![UI Build](https://github.com/apache/cloudstack/actions/workflows/ui.yml/badge.svg?branch=main)](https://github.com/apache/cloudstack/actions/workflows/ui.yml)
212

313
[![Apache CloudStack](tools/logo/apache_cloudstack.png)](https://cloudstack.apache.org/)
414

@@ -21,7 +31,7 @@ OVM and LXC containers.
2131
Users can manage their cloud with an easy to use Web interface, command line
2232
tools, and/or a full-featured query based API.
2333

24-
For more information on Apache CloudStack, please visit the [website](http://cloudstack.apache.org)
34+
For more information on Apache CloudStack, please visit the [website](https://cloudstack.apache.org)
2535

2636
## Who Uses CloudStack?
2737

@@ -78,10 +88,10 @@ via GitHub pull requests.
7888
## Getting Involved and Contributing
7989

8090
Interested in helping out with Apache CloudStack? Great! We welcome
81-
participation from anybody willing to work [The Apache Way](http://theapacheway.com) and make a
91+
participation from anybody willing to work [The Apache Way](https://theapacheway.com) and make a
8292
contribution. Note that you do not have to be a developer in order to contribute
8393
to Apache CloudStack. We need folks to help with documentation, translation,
84-
promotion etc. See our contribution [page](http://cloudstack.apache.org/contribute.html).
94+
promotion etc. See our contribution [page](https://cloudstack.apache.org/contribute.html).
8595

8696
If you are a frequent contributors, you can request to be added as collaborators
8797
(see https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features#Git.asf.yamlfeatures-AssigningexternalcollaboratorswiththetriageroleonGitHub)
@@ -92,7 +102,7 @@ You may do so by sharing your GitHub users ID or raise a GitHub issue.
92102

93103
If you're interested in learning more or participating in the Apache CloudStack
94104
project, the mailing lists are the best way to do that. While the project has
95-
several communications channels, the [mailing lists](http://cloudstack.apache.org/mailing-lists.html) are the most active and the
105+
several communications channels, the [mailing lists](https://cloudstack.apache.org/mailing-lists.html) are the most active and the
96106
official channels for making decisions about the project itself.
97107

98108
Mailing lists:
@@ -112,7 +122,7 @@ released version of CloudStack, please report it to `[email protected]` with
112122
details about the vulnerability, how it might be exploited, and any additional
113123
information that might be useful.
114124

115-
For more details, please visit our security [page](http://cloudstack.apache.org/security.html).
125+
For more details, please visit our security [page](https://cloudstack.apache.org/security.html).
116126

117127
## License
118128

0 commit comments

Comments
 (0)