mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-26 15:07:25 +00:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6259356ae2 | ||
|
813f32d310 | ||
|
162054ef99 | ||
|
18ad051734 | ||
|
ea6a6b84d9 | ||
|
ab0ab3c11c | ||
|
84c505ad43 | ||
|
366e8560b0 | ||
|
0a81a63829 | ||
|
4fc500fca6 | ||
|
8393426612 |
79
CHANGELOG.md
79
CHANGELOG.md
@@ -1433,3 +1433,82 @@
|
|||||||
* Fix Chinese translation of config cheat sheet[API] (#28472) (#28473)
|
* Fix Chinese translation of config cheat sheet[API] (#28472) (#28473)
|
||||||
* Retry SSH key verification with additional CRLF if it failed (#28392) (#28464)
|
* Retry SSH key verification with additional CRLF if it failed (#28392) (#28464)
|
||||||
|
|
||||||
|
[1.32.4]
|
||||||
|
* Update Gitea to 1.21.4
|
||||||
|
* [Full changelog](https://github.com/go-gitea/gitea/releases/tag/v1.21.4)
|
||||||
|
* Update github.com/cloudflare/circl (#28789) (#28790)
|
||||||
|
* Require token for GET subscription endpoint (#28765) (#28768)
|
||||||
|
* Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811)
|
||||||
|
* Fix links in issue card (#28806) (#28807)
|
||||||
|
* Fix nil pointer panic when exec some gitea cli command (#28791) (#28795)
|
||||||
|
* Require token for GET subscription endpoint (#28765) (#28778)
|
||||||
|
* Fix button size in "attached header right" (#28770) (#28774)
|
||||||
|
* Fix convert.ToTeams on empty input (#28426) (#28767)
|
||||||
|
* Hide code related setting options in repository when code unit is disabled (#28631) (#28749)
|
||||||
|
|
||||||
|
[1.32.5]
|
||||||
|
* Update Gitea to 1.21.5
|
||||||
|
* [Full changelog](https://github.com/go-gitea/gitea/releases/tag/v1.21.5)
|
||||||
|
* Prevent anonymous container access if RequireSignInView is enabled (#28877) (#28882)
|
||||||
|
* Update go dependencies and fix go-git (#28893) (#28934)
|
||||||
|
* Revert "Speed up loading the dashboard on mysql/mariadb (#28546)" (#29006) (#29007)
|
||||||
|
* Fix an actions schedule bug (#28942) (#28999)
|
||||||
|
* Fix update enable_prune even if mirror_interval is not provided (#28905) (#28929)
|
||||||
|
* Fix uploaded artifacts should be overwritten (#28726) backport v1.21 (#28832)
|
||||||
|
* Preserve BOM in web editor (#28935) (#28959)
|
||||||
|
* Strip / from relative links (#28932) (#28952)
|
||||||
|
* Don't remove all mirror repository's releases when mirroring (#28817) (#28939)
|
||||||
|
* Implement MigrateRepository for the actions notifier (#28920) (#28923)
|
||||||
|
* Respect branch info for relative links (#28909) (#28922)
|
||||||
|
* Don't reload timeline page when (un)resolving or replying conversation (#28654) (#28917)
|
||||||
|
* Only migrate the first 255 chars of a Github issue title (#28902) (#28912)
|
||||||
|
* Fix sort bug on repository issues list (#28897) (#28901)
|
||||||
|
* Fix DeleteCollaboration transaction behaviour (#28886) (#28889)
|
||||||
|
* Fix schedule not trigger bug because matching full ref name with short ref name (#28874) (#28888)
|
||||||
|
* Fix migrate storage bug (#28830) (#28867)
|
||||||
|
* Fix archive creating LFS hooks and breaking pull requests (#28848) (#28851)
|
||||||
|
* Fix reverting a merge commit failing (#28794) (#28825)
|
||||||
|
* Upgrade xorm to v1.3.7 to fix a resource leak problem caused by Iterate (#28891) (#28895)
|
||||||
|
* Fix incorrect PostgreSQL connection string for Unix sockets (#28865) (#28870)
|
||||||
|
|
||||||
|
[1.32.6]
|
||||||
|
* Update Gitea to 1.21.7
|
||||||
|
* [Full changelog](https://github.com/go-gitea/gitea/releases/tag/v1.21.7)
|
||||||
|
* Fix XSS vulnerabilities (#29336)
|
||||||
|
* Use general token signing secret (#29205) (#29325)
|
||||||
|
* Refactor issue template parsing and fix API endpoint (#29069) (#29140)
|
||||||
|
* Fix swift packages not resolving (#29095) (#29102)
|
||||||
|
* Refactor git version functions and check compatibility (#29155) (#29157)
|
||||||
|
* Improve user experience for outdated comments (#29050) (#29086)
|
||||||
|
* Hide code links on release page if user cannot read code (#29064) (#29066)
|
||||||
|
* Wrap contained tags and branches again (#29021) (#29026)
|
||||||
|
* Fix incorrect button CSS usages (#29015) (#29023)
|
||||||
|
* Strip trailing newline in markdown code copy (#29019) (#29022)
|
||||||
|
* Remove SSH workaround (#27893) (#29332)
|
||||||
|
* Only log error when tag sync fails (#29295) (#29327)
|
||||||
|
* Fix SSPI user creation (#28948) (#29323)
|
||||||
|
* Improve the issue_comment workflow trigger event (#29277) (#29322)
|
||||||
|
* Discard unread data of git cat-file (#29297) (#29310)
|
||||||
|
* Fix error display when merging PRs (#29288) (#29309)
|
||||||
|
* Prevent double use of git cat-file session. (#29298) (#29301)
|
||||||
|
* Fix missing link on outgoing new release notifications (#29079) (#29300)
|
||||||
|
* Fix debian InRelease Acquire-By-Hash newline (#29204) (#29299)
|
||||||
|
* Always write proc-receive hook for all git versions (#29287) (#29291)
|
||||||
|
* Do not show delete button when time tracker is disabled (#29257) (#29279)
|
||||||
|
* Workaround to clean up old reviews on creating a new one (#28554) (#29264)
|
||||||
|
* Fix bug when the linked account was disactived and list the linked accounts (#29263)
|
||||||
|
* Do not use lower tag names to find releases/tags (#29261) (#29262)
|
||||||
|
* Fix missed edit issues event for actions (#29237) (#29251)
|
||||||
|
* Only delete scheduled workflows when needed (#29091) (#29235)
|
||||||
|
* Make submit event code work with both jQuery event and native event (#29223) (#29234)
|
||||||
|
* Fix push to create with capitalize repo name (#29090) (#29206)
|
||||||
|
* Use ghost user if user was not found (#29161) (#29169)
|
||||||
|
* Dont load Review if Comment is CommentTypeReviewRequest (#28551) (#29160)
|
||||||
|
* Refactor parseSignatureFromCommitLine (#29054) (#29108)
|
||||||
|
* Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) (#29089)
|
||||||
|
* Fix gitea-origin-url with default ports (#29085) (#29088)
|
||||||
|
* Fix orgmode link resolving (#29024) (#29076)
|
||||||
|
* Fix: Elasticsearch: Request Entity Too Large #28117 (#29062) (#29075)
|
||||||
|
* Do not render empty comments (#29039) (#29049)
|
||||||
|
* Avoid sending update/delete release notice when it is draft (#29008) (#29025)
|
||||||
|
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
"author": "Gitea developers",
|
"author": "Gitea developers",
|
||||||
"description": "file://DESCRIPTION.md",
|
"description": "file://DESCRIPTION.md",
|
||||||
"tagline": "A painless self-hosted Git Service",
|
"tagline": "A painless self-hosted Git Service",
|
||||||
"version": "1.32.3",
|
"version": "1.32.6",
|
||||||
"upstreamVersion": "1.21.3",
|
"upstreamVersion": "1.21.7",
|
||||||
"healthCheckPath": "/explore",
|
"healthCheckPath": "/explore",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
"memoryLimit": 536870912,
|
"memoryLimit": 536870912,
|
||||||
|
@@ -19,7 +19,7 @@ WORKDIR /home/git
|
|||||||
# for autosign feature
|
# for autosign feature
|
||||||
ENV GNUPGHOME="/app/data/gnupg"
|
ENV GNUPGHOME="/app/data/gnupg"
|
||||||
|
|
||||||
ARG VERSION=1.21.3
|
ARG VERSION=1.21.7
|
||||||
|
|
||||||
RUN curl -L https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64 -o /home/git/gitea/gitea \
|
RUN curl -L https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64 -o /home/git/gitea/gitea \
|
||||||
&& chmod +x /home/git/gitea/gitea
|
&& chmod +x /home/git/gitea/gitea
|
||||||
|
10
start.sh
10
start.sh
@@ -4,14 +4,6 @@ set -eu -o pipefail
|
|||||||
|
|
||||||
mkdir -p /run/gitea/tmp/uploads /run/sshd /run/gitea/sessions
|
mkdir -p /run/gitea/tmp/uploads /run/sshd /run/gitea/sessions
|
||||||
|
|
||||||
migrate_ldap_users_to_oidc() {
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
echo "==> migrate LDAP to OIDC"
|
|
||||||
mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -N -B -e \
|
|
||||||
"UPDATE user u, (select id from login_source WHERE name='cloudron' and type='6') ls SET u.login_type=6, u.login_source=ls.id WHERE u.login_type=2 AND u.login_source=1"
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_oidc_source() {
|
setup_oidc_source() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
@@ -20,7 +12,6 @@ setup_oidc_source() {
|
|||||||
now=$(date +%s)
|
now=$(date +%s)
|
||||||
mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -e \
|
mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -e \
|
||||||
"REPLACE INTO login_source (id, type, name, is_active, cfg, created_unix, updated_unix) VALUES (1,6,'cloudron', 1,'{\"Provider\":\"openidConnect\",\"ClientID\":\"${CLOUDRON_OIDC_CLIENT_ID}\",\"ClientSecret\":\"${CLOUDRON_OIDC_CLIENT_SECRET}\",\"OpenIDConnectAutoDiscoveryURL\":\"${CLOUDRON_OIDC_ISSUER}/.well-known/openid-configuration\",\"CustomURLMapping\":null,\"IconURL\":\"\",\"Scopes\":[\"openid email profile\"],\"RequiredClaimName\":\"\",\"RequiredClaimValue\":\"\",\"GroupClaimName\":\"\",\"AdminGroup\":\"\",\"GroupTeamMap\":\"\",\"GroupTeamMapRemoval\":false,\"RestrictedGroup\":\"\"}','${now}','${now}')"
|
"REPLACE INTO login_source (id, type, name, is_active, cfg, created_unix, updated_unix) VALUES (1,6,'cloudron', 1,'{\"Provider\":\"openidConnect\",\"ClientID\":\"${CLOUDRON_OIDC_CLIENT_ID}\",\"ClientSecret\":\"${CLOUDRON_OIDC_CLIENT_SECRET}\",\"OpenIDConnectAutoDiscoveryURL\":\"${CLOUDRON_OIDC_ISSUER}/.well-known/openid-configuration\",\"CustomURLMapping\":null,\"IconURL\":\"\",\"Scopes\":[\"openid email profile\"],\"RequiredClaimName\":\"\",\"RequiredClaimValue\":\"\",\"GroupClaimName\":\"\",\"AdminGroup\":\"\",\"GroupTeamMap\":\"\",\"GroupTeamMapRemoval\":false,\"RestrictedGroup\":\"\"}','${now}','${now}')"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_root_user() {
|
setup_root_user() {
|
||||||
@@ -47,7 +38,6 @@ setup_auth() {
|
|||||||
|
|
||||||
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
|
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
|
||||||
setup_oidc_source
|
setup_oidc_source
|
||||||
migrate_ldap_users_to_oidc
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
user_count=$(mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -N -B -e "SELECT count(*) FROM user")
|
user_count=$(mysql -u"${CLOUDRON_MYSQL_USERNAME}" -p"${CLOUDRON_MYSQL_PASSWORD}" -h mysql --database="${CLOUDRON_MYSQL_DATABASE}" -N -B -e "SELECT count(*) FROM user")
|
||||||
|
670
test/package-lock.json
generated
670
test/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,10 +9,10 @@
|
|||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromedriver": "^120.0.0",
|
"chromedriver": "^122.0.3",
|
||||||
"expect.js": "^0.3.1",
|
"expect.js": "^0.3.1",
|
||||||
"mocha": "^10.2.0",
|
"mocha": "^10.3.0",
|
||||||
"selenium-webdriver": "^4.16.0",
|
"selenium-webdriver": "^4.18.1",
|
||||||
"superagent": "^8.1.2"
|
"superagent": "^8.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -113,7 +113,7 @@ describe('Application life cycle test', function () {
|
|||||||
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
|
await browser.findElement(By.xpath('//input[@name="username"]')).sendKeys(username);
|
||||||
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
|
await browser.findElement(By.xpath('//input[@name="password"]')).sendKeys(password);
|
||||||
await browser.sleep(2000);
|
await browser.sleep(2000);
|
||||||
await browser.findElement(By.xpath('//button[@type="submit" and contains(text(), "Sign in")]')).click();
|
await browser.findElement(By.id('loginSubmitButton')).click();
|
||||||
await browser.sleep(2000);
|
await browser.sleep(2000);
|
||||||
|
|
||||||
athenticated_by_oidc = true;
|
athenticated_by_oidc = true;
|
||||||
|
Reference in New Issue
Block a user