1
0
mirror of https://git.cloudron.io/cloudron/minio-app synced 2025-09-13 08:19:12 +00:00

Compare commits

..

35 Commits

Author SHA1 Message Date
Package Updates
40f20c384c Update package version to 5.1.0 2025-07-22 09:27:49 +00:00
Renovate Bot
3ea19664d1 chore(deps): update dependency minio/minio to release.2025-07-18t21-56-31z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-05-24T17-08-30Z | RELEASE.2025-07-18T21-56-31Z |
2025-07-22 09:16:43 +00:00
Girish Ramakrishnan
61a3b06dc3 Update documentation url 2025-06-05 10:45:05 +02:00
Package Updates
b0dad70e87 Update package version to 5.0.0 2025-06-02 17:38:31 +00:00
Girish Ramakrishnan
fd3dee438d comment out update tests
won't work since old version has dropdown selector
2025-06-02 19:17:46 +02:00
Girish Ramakrishnan
b6fce9a3a7 every refresh wants license acceptance 2025-06-02 18:45:21 +02:00
Girish Ramakrishnan
1a8f99b140 attempt to fix tests 2025-06-02 17:58:24 +02:00
Girish Ramakrishnan
daad5e6942 remove oidc, it is gone upstream 2025-06-02 17:58:16 +02:00
Renovate Bot
88340ce812 chore(deps): update dependency minio/minio to release.2025-05-24t17-08-30z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-22T22-12-26Z | RELEASE.2025-05-24T17-08-30Z |
2025-05-24 23:20:02 +00:00
Package Updates
60ea2849e1 Update package version to 4.4.2 2025-04-23 12:44:45 +00:00
Vladimir D
c021c66390 create bucket test updated 2025-04-23 15:37:51 +04:00
Renovate Bot
2d9ad57e0b chore(deps): update dependency minio/minio to release.2025-04-22t22-12-26z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-08T15-41-24Z | RELEASE.2025-04-22T22-12-26Z |
2025-04-22 23:19:40 +00:00
Package Updates
dcd3063a72 Update package version to 4.4.1 2025-04-09 07:56:47 +00:00
Renovate Bot
597feab31e chore(deps): update dependency minio/minio to release.2025-04-08t15-41-24z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-04-03T14-56-28Z | RELEASE.2025-04-08T15-41-24Z |
2025-04-08 23:19:30 +00:00
Package Updates
49ef4e7e7d Update package version to 4.4.0 2025-04-04 06:12:23 +00:00
Renovate Bot
5e1370d29d chore(deps): update dependency minio/minio to release.2025-04-03t14-56-28z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-03-12T18-04-18Z | RELEASE.2025-04-03T14-56-28Z |
2025-04-03 23:19:34 +00:00
Package Updates
092b769513 Update package version to 4.3.0 2025-03-13 08:03:44 +00:00
Girish Ramakrishnan
0775dc3071 Update base image to 5.0.0 2025-03-13 08:31:04 +01:00
Package Updates
151aeec9cd Update package version to 4.2.0 2025-03-13 07:30:39 +00:00
Renovate Bot
1e85285b69 chore(deps): update dependency minio/minio to release.2025-03-12t18-04-18z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-02-28T09-55-16Z | RELEASE.2025-03-12T18-04-18Z |
2025-03-13 00:19:32 +00:00
Johannes Zellner
024836d91c Also fix svg logo version 2025-03-12 14:24:13 +01:00
Girish Ramakrishnan
fd100bda55 Fix logo 2025-03-11 13:11:17 +01:00
Package Updates
0a72a3bd3d Update package version to 4.1.3 2025-03-01 11:05:14 +00:00
Renovate Bot
e16ce9c9ad chore(deps): update dependency minio/minio to release.2025-02-28t09-55-16z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-02-18T16-25-55Z | RELEASE.2025-02-28T09-55-16Z |
2025-03-01 00:19:30 +00:00
Package Updates
bc6a5cd7b4 Update package version to 4.1.2 2025-02-19 12:01:48 +00:00
Renovate Bot
7b14494230 chore(deps): update dependency minio/minio to release.2025-02-18t16-25-55z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-02-07T23-21-09Z | RELEASE.2025-02-18T16-25-55Z |
2025-02-19 00:19:33 +00:00
Package Updates
6aba571eb7 Update package version to 4.1.1 2025-02-09 09:44:57 +00:00
Renovate Bot
2ef9e56703 chore(deps): update dependency minio/minio to release.2025-02-07t23-21-09z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-02-03T21-03-04Z | RELEASE.2025-02-07T23-21-09Z |
2025-02-09 00:19:31 +00:00
Package Updates
819c9b1211 Update package version to 4.1.0 2025-02-04 14:49:13 +00:00
Renovate Bot
2c400adc2a chore(deps): update dependency minio/minio to release.2025-02-03t21-03-04z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-01-20T14-49-07Z | RELEASE.2025-02-03T21-03-04Z |
2025-02-04 14:29:17 +00:00
Package Updates
fd01bf3109 Update package version to 4.0.1 2025-01-21 11:20:24 +00:00
Renovate Bot
4d926a3058 chore(deps): update dependency minio/minio to release.2025-01-20t14-49-07z
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2025-01-18T00-31-37Z | RELEASE.2025-01-20T14-49-07Z |
2025-01-21 10:40:50 +00:00
Package Updates
47765f2800 Update package version to 4.0.0 2025-01-18 11:57:08 +00:00
Renovate Bot
45c1a6b503 chore(deps): update dependency minio/minio to v2025
| datasource      | package     | from                         | to                           |
| --------------- | ----------- | ---------------------------- | ---------------------------- |
| github-releases | minio/minio | RELEASE.2024-12-18T13-15-44Z | RELEASE.2025-01-18T00-31-37Z |
2025-01-18 11:05:16 +00:00
Johannes Zellner
7ee514ed29 Update logo to be squared 2025-01-16 12:01:30 +01:00
10 changed files with 365 additions and 428 deletions

137
CHANGELOG
View File

@@ -2750,3 +2750,140 @@ Improve replication performance. See (#12080, #12054, #12009) for more details.
* s3: Sanitize the source object name in CopyObject handler by [@​marktheunissen](https://github.com/marktheunissen) in https://github.com/minio/minio/pull/20774
* heal: Include more use case of not healable but readable objects ([#​248](https://github.com/minio/minio/issues/248)) by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20776
[4.0.0]
* Update minio to RELEASE.2025-01-18T00-31-37Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-01-18T00-31-37Z)
* ListObjectParts should return actual size by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20782
* Add resiliency tests by [@​allanrogerr](https://github.com/allanrogerr) in https://github.com/minio/minio/pull/20786
* Add cpuio profiling potential crash workaround by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20809
* Bump golang.org/x/net to silence wrong vuln checker by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20814
* decom: avoid skipping single delete markers for replication by [@​poornas](https://github.com/poornas) in https://github.com/minio/minio/pull/20836
* update `github.com/minio/kms-go/kes` to v0.3.1 by [@​aead](https://github.com/aead) in https://github.com/minio/minio/pull/20843
* Fix inconsistently written compressed files. by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20846
* s3: Provide enough buffer when the object final size is unknown by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20847
* Correct bucket metrics name by [@​shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/20823
* update deps by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20851
[4.0.1]
* Update minio to RELEASE.2025-01-20T14-49-07Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-01-20T14-49-07Z)
* do not list buckets without local quorum by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20852
* Add Full Object Checksums and CRC64-NVME by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20855
[4.1.0]
* Update minio to RELEASE.2025-02-03T21-03-04Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-03T21-03-04Z)
* do not expose secret-key to lambda event handler by [@​harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/20870
* Allow URLs up to 32KB and improve parsing speed by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20874
* DeleteObjects: Send delete to all pools ([#​172](https://github.com/minio/minio/issues/172)) by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20821
* Check for valid checksum by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20878
* Add lock overload protection by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20876
* Redact sensitive fields from DescribeBatchJob by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20881
* fix: proxy requests to honor global transport by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20889
[4.1.1]
* Update minio to RELEASE.2025-02-07T23-21-09Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-07T23-21-09Z)
* replication: default tag timestamps in CopyObject call by [@​poornas](https://github.com/poornas) in https://github.com/minio/minio/pull/20891
* sts: allow client-provided intermediate CAs by [@​aead](https://github.com/aead) in https://github.com/minio/minio/pull/20896
* Fix multipart replication with 1 part objects by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20895
* kms: add `MINIO_KMS_REPLICATE_KEYID` option by [@​aead](https://github.com/aead) in https://github.com/minio/minio/pull/20909
[4.1.2]
* Update minio to RELEASE.2025-02-18T16-25-55Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-18T16-25-55Z)
* Fix nil pointer deref in PeerPolicyMappingHandler by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20913
* (s)ftp: Enable trailing headers for upload by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20914
* Quick patch for Snowball AutoExtract: [#​20883](https://github.com/minio/minio/issues/20883) by [@​mannreis](https://github.com/mannreis) in https://github.com/minio/minio/pull/20885
* Update console to 1.7.6 by [@​cesnietor](https://github.com/cesnietor) in https://github.com/minio/minio/pull/20925
* Fix missing authorization check for `PutObjectRetentionHandler` by [@​ramondeklein](https://github.com/ramondeklein) in https://github.com/minio/minio/pull/20929
* ftp: Enable trailing headers, just like sftp by [@​jkandasa](https://github.com/jkandasa) in https://github.com/minio/minio/pull/20938
* fix(docs): update mc admin trace link to MinIO official docs by [@​felixrodrigo19](https://github.com/felixrodrigo19) in https://github.com/minio/minio/pull/20943
* Extract all files from encrypted stream with inspect by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20937
* Test checksum types for invalid combinations by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20953
* tests: Do not allow forced type asserts by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20905
* [@​mannreis](https://github.com/mannreis) made their first contribution in https://github.com/minio/minio/pull/20885
* [@​jkandasa](https://github.com/jkandasa) made their first contribution in https://github.com/minio/minio/pull/20938
* [@​1911860538](https://github.com/1911860538) made their first contribution in https://github.com/minio/minio/pull/20939
* [@​felixrodrigo19](https://github.com/felixrodrigo19) made their first contribution in https://github.com/minio/minio/pull/20943
[4.1.3]
* Update minio to RELEASE.2025-02-28T09-55-16Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-02-28T09-55-16Z)
* Fix importIAM issue with importing implied policies by [@​taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/20956
* Update SRSvcAccCreate with new type by [@​taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/20974
* build(deps): bump github.com/go-jose/go-jose/v4 from 4.0.4 to 4.0.5 by [@​dependabot](https://github.com/dependabot) in https://github.com/minio/minio/pull/20976
* Fix typos by [@​triplechecker-com](https://github.com/triplechecker-com) in https://github.com/minio/minio/pull/20970
* Update golang.org/x/crypto to address govulncheck complaint by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20983
* Allow disabling of all X-Forwarded-For header processing by [@​marktheunissen](https://github.com/marktheunissen) in https://github.com/minio/minio/pull/20977
* check for errors on bitrotWriter Close() by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/20982
* replication: set checksum type correctly by [@​poornas](https://github.com/poornas) in https://github.com/minio/minio/pull/20985
* fix: SFTP auth bypass with no pub key in LDAP by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/20986
* Fix healing probability for skipped folders by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20988
* [@​triplechecker-com](https://github.com/triplechecker-com) made their first contribution in https://github.com/minio/minio/pull/20970
[4.2.0]
* Update minio to RELEASE.2025-03-12T18-04-18Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-03-12T18-04-18Z)
* Enforce a bucket limit of 100 to v2 metrics calls by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20761
* Update typos config by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/21018
* Update ssh and jws libs for fixed CVEs by [@​donatello](https://github.com/donatello) in https://github.com/minio/minio/pull/21017
* Disable unstable test by [@​klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/20996
* decom: Ignore not found buckets ([#​509](https://github.com/minio/minio/issues/509)) by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21023
[4.3.0]
* Update base image to 5.0.0
[4.4.0]
* Update minio to RELEASE.2025-04-03T14-56-28Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-03T14-56-28Z)
* fix(templates): replace dash with underscore by [@itsJohnySmith](https://github.com/itsJohnySmith) in https://github.com/minio/minio/pull/19566
* Updating PromQL queries to include tilde needed to work with 'all' variable by [@excircle](https://github.com/excircle) in https://github.com/minio/minio/pull/21054
* Add new API endpoint to revoke STS tokens by [@taran-p](https://github.com/taran-p) in https://github.com/minio/minio/pull/21072
* fix call toAPIErrorCode with a nil value error after check another err by [@alingse](https://github.com/alingse) in https://github.com/minio/minio/pull/21083
* fix: token is invalid for admin heal when minio is distErasure at windows by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21092
* internal: add handling of KVS config parse by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21079
* Fix anonymous unsigned trailing headers by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21095
* Fix: Change TTFB metric type to histogram by [@iamsagar99](https://github.com/iamsagar99) in https://github.com/minio/minio/pull/20999
* Try reconnect IAM systems if failed initially by [@shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/20333
* Fix evaluation of NewerNoncurrentVersions by [@krisis](https://github.com/krisis) in https://github.com/minio/minio/pull/21096
[4.4.1]
* Update minio to RELEASE.2025-04-08T15-41-24Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-08T15-41-24Z)
* decom: Ignore orphan delete markers in verification stage by [@​vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21106
* ilm: Expect objects with only free versions when scanning by [@​krisis](https://github.com/krisis) in https://github.com/minio/minio/pull/21112
[4.4.2]
* Update minio to RELEASE.2025-04-22T22-12-26Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-04-22T22-12-26Z)
* move to go1.24 by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21114
* Fix buffered streams missing final entries by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21122
* typo: fix error msg for decoding XL headers by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21120
* typo: fix return of checkDiskFatalErrs by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21121
* Fix shared error buffer by [@klauspost](https://github.com/klauspost) in https://github.com/minio/minio/pull/21203
* support autogenerated credentials for KMS_SECRET_KEY properly by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21223
* fix: batch expiry job doesn't report delete marker in batch-status me by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21183
* Nats tls handshake first by [@matthewdavidlloyd](https://github.com/matthewdavidlloyd) in https://github.com/minio/minio/pull/21008
[5.0.0]
* Update minio to RELEASE.2025-05-24T17-08-30Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-05-24T17-08-30Z)
* **BREAKING RELEASE:** Embedded UI Console is now deprecated and moved to object-browser
* **IMPORTANT:** MinIO has decided to [remove all administration features](https://github.com/minio/object-browser/pull/3509) from the console. The UI now only has an object browser. You must now use the `mc` CLI tool for creating keys and setting up permissions.
* **IMPORANT**: OIDC Auth has been removed upstream as well. You can only access MinIO using admin credentials after this update. [Access key creation is no longer possible](https://github.com/minio/minio/issues/21344) .
[5.1.0]
* Update minio to RELEASE.2025-07-18T21-56-31Z
* [Full Changelog](https://github.com/minio/minio/releases/tag/RELEASE.2025-07-18T21-56-31Z)
* Update Console to latest version by [@bexsoft](https://github.com/bexsoft) in https://github.com/minio/minio/pull/21397
* CopyObject must preserve checksums and encrypt them if required by [@marktheunissen](https://github.com/marktheunissen) in https://github.com/minio/minio/pull/21399
* fix: admin api - SetPolicyForUserOrGroup avoid nil deref by [@wooffie](https://github.com/wooffie) in https://github.com/minio/minio/pull/21400
* fix: lambda handler response to match the lambda return status by [@harshavardhana](https://github.com/harshavardhana) in https://github.com/minio/minio/pull/21436
* s3: Fix early listing stopping when ILM is enabled ([#472](https://github.com/minio/minio/issues/472)) by [@vadmeste](https://github.com/vadmeste) in https://github.com/minio/minio/pull/21246
* Update README.md by [@varun28sharma](https://github.com/varun28sharma) in https://github.com/minio/minio/pull/21125
* fix: empty fileName cause Reader nil for PostPolicyBucketHandler by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21323
* fix: panic for TestListObjectsWithILM by [@jiuker](https://github.com/jiuker) in https://github.com/minio/minio/pull/21322
* modernizes for loop in cmd/, internal/ by [@12ya](https://github.com/12ya) in https://github.com/minio/minio/pull/21309
* Add `targetArn` label for bucket replication metrics by [@shtripat](https://github.com/shtripat) in https://github.com/minio/minio/pull/21354

View File

@@ -5,8 +5,8 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Distributed object storage",
"version": "3.18.1",
"upstreamVersion": "RELEASE.2024-12-18T13-15-44Z",
"version": "5.1.0",
"upstreamVersion": "RELEASE.2025-07-18T21-56-31Z",
"healthCheckPath": "/minio/login",
"memoryLimit": 2147483648,
"httpPort": 8000,
@@ -19,15 +19,11 @@
}
},
"addons": {
"localstorage": {},
"oidc": {
"loginRedirectUri": "/oauth_callback"
}
"localstorage": {}
},
"optionalSso": true,
"checklist": {
"change-default-password": {
"sso": false,
"message": "Change the default admin credentials by following this [guide](https://cloudron.io/documentation/apps/minio/#admin-credentials)"
}
},
@@ -35,7 +31,7 @@
"website": "http://www.minio.io",
"minBoxVersion": "8.1.0",
"forumUrl": "https://forum.cloudron.io/category/69/minio",
"documentationUrl": "https://docs.cloudron.io/apps/minio/",
"documentationUrl": "https://docs.cloudron.io/packages/minio/",
"contactEmail": "support@cloudron.io",
"icon": "logo.png",
"tags": [

View File

@@ -1,10 +1,10 @@
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
RUN mkdir -p /app/code
WORKDIR /app/code
# renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+)
ARG MINIO_VERSION=RELEASE.2024-12-18T13-15-44Z
ARG MINIO_VERSION=RELEASE.2025-07-18T21-56-31Z
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${MINIO_VERSION} -O /app/code/minio && chmod +x /app/code/minio

View File

@@ -1,18 +1,5 @@
<nosso>
Please use the following credentials to login:
**Username**: minioadmin<br/>
**Password**: minioadmin<br/>
</nosso>
<sso>
Please use the following credentials to login via 'Other Authentication Methods' -> 'Use Credentials':
**Username**: minioadmin<br/>
**Password**: See `MINIO_ROOT_PASSWORD` in `/app/data/env.sh` <a href="/frontend/filemanager.html#/viewer/app/$CLOUDRON-APP-ID/env.sh">Open File Manager</a><br/>
Cloudron users have `readwrite` access policy. See the [docs](https://cloudron.io/documentation/apps/minio/#admin-credentials) on how to change it.
</nosso>

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 17 KiB

41
logo.svg Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="512"
height="512"
fill="#ffffff"
version="1.1"
id="svg3"
sodipodi:docname="logo.svg"
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
inkscape:export-filename="logo.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3" />
<sodipodi:namedview
id="namedview3"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="0.98823083"
inkscape:cx="222.1141"
inkscape:cy="376.93623"
inkscape:window-width="1920"
inkscape:window-height="1014"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="svg3" />
<path
d="m 156.67193,317.75421 a 286.44793,286.44793 0 0 1 56.74397,-80.47822 290.54005,290.54005 0 0 1 28.37199,-24.89369 v 61.3817 z m -49.10536,56.88038 134.22132,-68.20188 v 156.18233 l 30.21344,39.28427 V 290.47346 l 18.3463,-9.48007 a 91.049521,91.049521 0 0 0 25.0301,-144.04238 L 246.28921,64.725212 a 15.345425,15.345425 0 0 1 0.75022,-21.619998 15.413627,15.413627 0 0 1 21.6882,0.750221 l 9.68467,10.093879 20.46057,-19.914953 C 274.38839,2.2522814 244.31136,6.2761929 227.05628,22.167233 a 44.058422,44.058422 0 0 0 -1.90965,62.200124 l 69.83873,72.771413 a 62.336528,62.336528 0 0 1 -13.64038,96.02826 l -9.48006,4.91053 V 159.38943 A 315.97936,315.97936 0 0 0 107.56657,374.29359 Z"
id="path2"
style="fill:#cf163e;fill-opacity:1;stroke:none;stroke-width:6.82019" />
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -8,13 +8,7 @@ mkdir -p /app/data/data /run/minio/config /run/minio/certs
if [[ ! -f /app/data/env.sh ]]; then
echo "=> First run"
cp /app/code/env.sh.template /app/data/env.sh
# minio does not show the password login by default when OIDC is setup (https://github.com/minio/minio/discussions/16928)
# we generate a dynamic password because users might forget to change the admin password (with the oidc login being so click friendly)
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=$(pwgen -1s 20)\n\n" >> /app/data/env.sh
else
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=minioadmin\n\n" >> /app/data/env.sh
fi
echo -e "export MINIO_ROOT_USER=minioadmin\nexport MINIO_ROOT_PASSWORD=minioadmin\n\n" >> /app/data/env.sh
fi
source /app/data/env.sh
@@ -28,19 +22,6 @@ if [[ ! -d /app/data/mc_config ]]; then
/app/code/mc --config-dir /app/data/mc_config &> /dev/null || true
fi
if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
export MINIO_IDENTITY_OPENID_DISPLAY_NAME="${CLOUDRON_OIDC_PROVIDER_NAME:-Cloudron}"
export MINIO_IDENTITY_OPENID_CONFIG_URL="${CLOUDRON_OIDC_DISCOVERY_URL}"
export MINIO_IDENTITY_OPENID_CLIENT_ID="${CLOUDRON_OIDC_CLIENT_ID}"
export MINIO_IDENTITY_OPENID_CLIENT_SECRET="${CLOUDRON_OIDC_CLIENT_SECRET}"
export MINIO_IDENTITY_OPENID_SCOPES="openid profile email"
if [[ -z "${MINIO_IDENTITY_OPENID_ROLE_POLICY:-}" ]]; then
export MINIO_IDENTITY_OPENID_ROLE_POLICY="readwrite"
fi
export MINIO_IDENTITY_OPENID_COMMENT="Cloudron OIDC"
fi
# minio is used for backups at times and has a large number of files. optimize by checking if files are actually in correct chown state
echo "==> Changing ownership"
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data

382
test/package-lock.json generated
View File

@@ -9,11 +9,12 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"chromedriver": "^131.0.4",
"@eslint/js": "^9.31.0",
"chromedriver": "^138.0.3",
"expect.js": "^0.3.1",
"mocha": "^11.0.1",
"selenium-webdriver": "^4.27.0",
"superagent": "^10.1.1"
"mocha": "^11.7.1",
"selenium-webdriver": "^4.34.0",
"superagent": "^10.2.2"
}
},
"node_modules/@bazel/runfiles": {
@@ -22,6 +23,18 @@
"integrity": "sha512-1uLNT5NZsUVIGS4syuHwTzZ8HycMPyr6POA3FCE4GbMtc4rhoJk8aZKtNIRthJYfL+iioppi+rTfH3olMPr9nA==",
"license": "Apache-2.0"
},
"node_modules/@eslint/js": {
"version": "9.31.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.31.0.tgz",
"integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
"license": "MIT",
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
"url": "https://eslint.org/donate"
}
},
"node_modules/@isaacs/cliui": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
@@ -39,6 +52,27 @@
"node": ">=12"
}
},
"node_modules/@noble/hashes": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz",
"integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
"license": "MIT",
"engines": {
"node": "^14.21.3 || >=16"
},
"funding": {
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/@paralleldrive/cuid2": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.2.2.tgz",
"integrity": "sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==",
"license": "MIT",
"dependencies": {
"@noble/hashes": "^1.1.5"
}
},
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
@@ -90,15 +124,6 @@
"node": ">= 14"
}
},
"node_modules/ansi-colors": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
"integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/ansi-regex": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz",
@@ -126,19 +151,6 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/anymatch": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
"license": "ISC",
"dependencies": {
"normalize-path": "^3.0.0",
"picomatch": "^2.0.4"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@@ -195,18 +207,6 @@
"node": ">=10.0.0"
}
},
"node_modules/binary-extensions": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
"license": "MIT",
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
@@ -216,18 +216,6 @@
"balanced-match": "^1.0.0"
}
},
"node_modules/braces": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
"license": "MIT",
"dependencies": {
"fill-range": "^7.1.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/browser-stdout": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
@@ -313,33 +301,24 @@
}
},
"node_modules/chokidar": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
"integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
"license": "MIT",
"dependencies": {
"anymatch": "~3.1.2",
"braces": "~3.0.2",
"glob-parent": "~5.1.2",
"is-binary-path": "~2.1.0",
"is-glob": "~4.0.1",
"normalize-path": "~3.0.0",
"readdirp": "~3.6.0"
"readdirp": "^4.0.1"
},
"engines": {
"node": ">= 8.10.0"
"node": ">= 14.16.0"
},
"funding": {
"url": "https://paulmillr.com/funding/"
},
"optionalDependencies": {
"fsevents": "~2.3.2"
}
},
"node_modules/chromedriver": {
"version": "131.0.4",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-131.0.4.tgz",
"integrity": "sha512-JgIkept8YrnqT05ldLaOzxxEJDUV1t3PFIIMO/gQz9AbnpZx7Pl1zq6tQTTz2HoY5T2JKZ5kyiEWwc48g4fJ5w==",
"version": "138.0.3",
"resolved": "https://registry.npmjs.org/chromedriver/-/chromedriver-138.0.3.tgz",
"integrity": "sha512-RKcfzbUthmQzFmy91F9StQQwNZ72khp3febF/RntpkDKhhCkwor0cgop00diwzAVSUq1s2e8B54Iema9FQnynw==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
@@ -355,18 +334,21 @@
"chromedriver": "bin/chromedriver"
},
"engines": {
"node": ">=18"
"node": ">=20"
}
},
"node_modules/cliui": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
"integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
"integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
"license": "ISC",
"dependencies": {
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0",
"strip-ansi": "^6.0.1",
"wrap-ansi": "^7.0.0"
},
"engines": {
"node": ">=12"
}
},
"node_modules/cliui/node_modules/ansi-regex": {
@@ -576,9 +558,9 @@
}
},
"node_modules/diff": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz",
"integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==",
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz",
"integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==",
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.3.1"
@@ -762,18 +744,6 @@
"pend": "~1.2.0"
}
},
"node_modules/fill-range": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
"license": "MIT",
"dependencies": {
"to-regex-range": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/find-up": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",
@@ -850,33 +820,22 @@
}
},
"node_modules/formidable": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.2.tgz",
"integrity": "sha512-Jqc1btCy3QzRbJaICGwKcBfGWuLADRerLzDqi2NwSt/UkXLsHJw2TVResiaoBufHVHy9aSgClOHCeJsSsFLTbg==",
"version": "3.5.4",
"resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz",
"integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==",
"license": "MIT",
"dependencies": {
"@paralleldrive/cuid2": "^2.2.2",
"dezalgo": "^1.0.4",
"hexoid": "^2.0.0",
"once": "^1.4.0"
},
"engines": {
"node": ">=14.0.0"
},
"funding": {
"url": "https://ko-fi.com/tunnckoCore/commissions"
}
},
"node_modules/fsevents": {
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
"hasInstallScript": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
@@ -968,33 +927,6 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"license": "ISC",
"dependencies": {
"is-glob": "^4.0.1"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/glob/node_modules/minimatch": {
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/gopd": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@@ -1049,15 +981,6 @@
"he": "bin/he"
}
},
"node_modules/hexoid": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/hexoid/-/hexoid-2.0.0.tgz",
"integrity": "sha512-qlspKUK7IlSQv2o+5I7yhUd7TxlOG2Vr5LTa3ve2XSNVKAL/n/u/7KLvKmFNimomDIKvZFXWHv0T12mv7rT8Aw==",
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/http-proxy-agent": {
"version": "7.0.2",
"resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
@@ -1118,27 +1041,6 @@
"node": ">=8"
}
},
"node_modules/is-binary-path": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
"license": "MIT",
"dependencies": {
"binary-extensions": "^2.0.0"
},
"engines": {
"node": ">=8"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
@@ -1148,27 +1050,6 @@
"node": ">=8"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-number": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
"license": "MIT",
"engines": {
"node": ">=0.12.0"
}
},
"node_modules/is-plain-obj": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz",
@@ -1365,15 +1246,18 @@
}
},
"node_modules/minimatch": {
"version": "5.1.6",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"license": "ISC",
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=10"
"node": ">=16 || 14 >=14.17"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/minipass": {
@@ -1386,30 +1270,30 @@
}
},
"node_modules/mocha": {
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.0.1.tgz",
"integrity": "sha512-+3GkODfsDG71KSCQhc4IekSW+ItCK/kiez1Z28ksWvYhKXV/syxMlerR/sC7whDp7IyreZ4YxceMLdTs5hQE8A==",
"version": "11.7.1",
"resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.1.tgz",
"integrity": "sha512-5EK+Cty6KheMS/YLPPMJC64g5V61gIR25KsRItHw6x4hEKT6Njp1n9LOlH4gpevuwMVS66SXaBBpg+RWZkza4A==",
"license": "MIT",
"dependencies": {
"ansi-colors": "^4.1.3",
"browser-stdout": "^1.3.1",
"chokidar": "^3.5.3",
"chokidar": "^4.0.1",
"debug": "^4.3.5",
"diff": "^5.2.0",
"diff": "^7.0.0",
"escape-string-regexp": "^4.0.0",
"find-up": "^5.0.0",
"glob": "^10.4.5",
"he": "^1.2.0",
"js-yaml": "^4.1.0",
"log-symbols": "^4.1.0",
"minimatch": "^5.1.6",
"minimatch": "^9.0.5",
"ms": "^2.1.3",
"picocolors": "^1.1.1",
"serialize-javascript": "^6.0.2",
"strip-json-comments": "^3.1.1",
"supports-color": "^8.1.1",
"workerpool": "^6.5.1",
"yargs": "^16.2.0",
"yargs-parser": "^20.2.9",
"workerpool": "^9.2.0",
"yargs": "^17.7.2",
"yargs-parser": "^21.1.1",
"yargs-unparser": "^2.0.0"
},
"bin": {
@@ -1435,15 +1319,6 @@
"node": ">= 0.4.0"
}
},
"node_modules/normalize-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/object-inspect": {
"version": "1.13.3",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
@@ -1579,17 +1454,11 @@
"integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",
"license": "MIT"
},
"node_modules/picomatch": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
"license": "MIT",
"engines": {
"node": ">=8.6"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
"node_modules/picocolors": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
"license": "ISC"
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
@@ -1681,15 +1550,16 @@
}
},
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
"integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
"license": "MIT",
"dependencies": {
"picomatch": "^2.2.1"
},
"engines": {
"node": ">=8.10.0"
"node": ">= 14.18.0"
},
"funding": {
"type": "individual",
"url": "https://paulmillr.com/funding/"
}
},
"node_modules/require-directory": {
@@ -1708,9 +1578,9 @@
"license": "MIT"
},
"node_modules/selenium-webdriver": {
"version": "4.27.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.27.0.tgz",
"integrity": "sha512-LkTJrNz5socxpPnWPODQ2bQ65eYx9JK+DQMYNihpTjMCqHwgWGYQnQTCAAche2W3ZP87alA+1zYPvgS8tHNzMQ==",
"version": "4.34.0",
"resolved": "https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-4.34.0.tgz",
"integrity": "sha512-zGfQFcsASAv3KrYzYh+iw4fFqB7iZAgHW7BU6rRz7isK1i1X4x3LvjmZad4bUUgHDwTnAhlqTzDh21byB+zHMg==",
"funding": [
{
"type": "github",
@@ -1726,10 +1596,10 @@
"@bazel/runfiles": "^6.3.1",
"jszip": "^3.10.1",
"tmp": "^0.2.3",
"ws": "^8.18.0"
"ws": "^8.18.2"
},
"engines": {
"node": ">= 14.21.0"
"node": ">= 20.0.0"
}
},
"node_modules/serialize-javascript": {
@@ -2024,9 +1894,9 @@
}
},
"node_modules/superagent": {
"version": "10.1.1",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.1.1.tgz",
"integrity": "sha512-9pIwrHrOj3uAnqg9gDlW7EA2xv+N5au/dSM0kM22HTqmUu8jBxNT+8uA7tA3UoCnmiqzpSbu8rasIUZvbyamMQ==",
"version": "10.2.2",
"resolved": "https://registry.npmjs.org/superagent/-/superagent-10.2.2.tgz",
"integrity": "sha512-vWMq11OwWCC84pQaFPzF/VO3BrjkCeewuvJgt1jfV0499Z1QSAWN4EqfMM5WlFDDX9/oP8JjlDKpblrmEoyu4Q==",
"license": "MIT",
"dependencies": {
"component-emitter": "^1.3.0",
@@ -2034,7 +1904,7 @@
"debug": "^4.3.4",
"fast-safe-stringify": "^2.1.1",
"form-data": "^4.0.0",
"formidable": "^3.5.2",
"formidable": "^3.5.4",
"methods": "^1.1.2",
"mime": "2.6.0",
"qs": "^6.11.0"
@@ -2100,18 +1970,6 @@
"node": ">=14.14"
}
},
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
"license": "MIT",
"dependencies": {
"is-number": "^7.0.0"
},
"engines": {
"node": ">=8.0"
}
},
"node_modules/tslib": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
@@ -2147,9 +2005,9 @@
}
},
"node_modules/workerpool": {
"version": "6.5.1",
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz",
"integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==",
"version": "9.3.3",
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.3.tgz",
"integrity": "sha512-slxCaKbYjEdFT/o2rH9xS1hf4uRDch1w7Uo+apxhZ+sf/1d9e0ZVkn42kPNGP2dgjIx6YFvSevj0zHvbWe2jdw==",
"license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
@@ -2247,9 +2105,9 @@
"license": "ISC"
},
"node_modules/ws": {
"version": "8.18.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
"version": "8.18.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
@@ -2277,30 +2135,30 @@
}
},
"node_modules/yargs": {
"version": "16.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz",
"integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==",
"version": "17.7.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
"integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
"license": "MIT",
"dependencies": {
"cliui": "^7.0.2",
"cliui": "^8.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"require-directory": "^2.1.1",
"string-width": "^4.2.0",
"string-width": "^4.2.3",
"y18n": "^5.0.5",
"yargs-parser": "^20.2.2"
"yargs-parser": "^21.1.1"
},
"engines": {
"node": ">=10"
"node": ">=12"
}
},
"node_modules/yargs-parser": {
"version": "20.2.9",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
"version": "21.1.1",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
"integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
"license": "ISC",
"engines": {
"node": ">=10"
"node": ">=12"
}
},
"node_modules/yargs-unparser": {

View File

@@ -9,10 +9,11 @@
"author": "",
"license": "ISC",
"dependencies": {
"chromedriver": "^131.0.4",
"@eslint/js": "^9.31.0",
"chromedriver": "^138.0.3",
"expect.js": "^0.3.1",
"mocha": "^11.0.1",
"selenium-webdriver": "^4.27.0",
"superagent": "^10.1.1"
"mocha": "^11.7.1",
"selenium-webdriver": "^4.34.0",
"superagent": "^10.2.2"
}
}

View File

@@ -35,7 +35,8 @@ describe('Application life cycle test', function () {
const password = process.env.PASSWORD;
before(function () {
const chromeOptions = new Options().windowSize({ width: 1280, height: 1024 });
const chromeOptions = new Options().windowSize({ width: 1600, height: 1024 });
chromeOptions.addArguments('guest'); // disable password checks
if (process.env.CI) chromeOptions.addArguments('no-sandbox', 'disable-dev-shm-usage', 'headless');
browser = new Builder().forBrowser('chrome').setChromeOptions(chromeOptions).build();
if (!fs.existsSync('./screenshots')) fs.mkdirSync('./screenshots');
@@ -67,72 +68,61 @@ describe('Application life cycle test', function () {
expect(app).to.be.an('object');
}
async function login(username, password, expandLoginForm=true) {
async function confirmLicense() {
await timers.setTimeout(5000);
await waitForElement(By.id('acknowledge-confirm'));
const button = await browser.findElement(By.id('acknowledge-confirm'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await browser.sleep(4000);
await button.click();
await browser.sleep(4000);
}
async function login(username, password, acceptLicense=false) {
await browser.manage().deleteAllCookies();
await browser.get('about:blank');
await browser.sleep(2000);
await browser.get(`https://${app.fqdn}/login`);
await browser.sleep(2000);
if (expandLoginForm) {
await waitForElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]'));
await browser.findElement(By.xpath('//div[@id="alternativeMethods-select"]/div[contains(., "Other Authentication Methods")]')).click();
await browser.sleep(2000);
await browser.findElement(By.xpath('//li[contains(., "Use Credentials")] | //div[@label="Use Credentials"]')).click();
await browser.sleep(2000);
}
await waitForElement(By.id('accessKey'));
await browser.findElement(By.id('accessKey')).sendKeys(username);
await browser.findElement(By.id('secretKey')).sendKeys(password);
await browser.findElement(By.xpath('//button[@id="do-login"]')).click();
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
if (acceptLicense) await confirmLicense();
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
await timers.setTimeout(5000);
}
async function loginOIDC(username, password, alreadyAuthenticated = true) {
browser.manage().deleteAllCookies();
await browser.get(`https://${app.fqdn}/login`);
await browser.sleep(10000);
await waitForElement(By.xpath('//button[contains(., "iam")]'));
await browser.findElement(By.xpath('//button[contains(., "iam")]')).click();
await browser.sleep(10000);
if (!alreadyAuthenticated) {
await waitForElement(By.id('inputUsername'));
await browser.findElement(By.id('inputUsername')).sendKeys(username);
await browser.findElement(By.id('inputPassword')).sendKeys(password);
await browser.findElement(By.id('loginSubmitButton')).click();
await browser.sleep(2000);
}
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
}
async function logout() {
await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
await browser.sleep(10000);
// await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
const button = await browser.findElement(By.xpath('//button[@id="sign-out"]'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await button.click();
await browser.sleep(10000); // needed!
await waitForElement(By.xpath('//*[@id="accessKey"] | //button[contains(., "Cloudron")]'));
await waitForElement(By.xpath('//*[@id="accessKey"]'));
}
async function addBucket() {
await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath('//button[@id="create-bucket"]'));
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
await browser.sleep(2000);
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath('//button[contains(., "Create Bucket")]'));
await browser.findElement(By.xpath('//button[contains(., "Create Bucket")]')).click();
await browser.sleep(1000);
await waitForElement(By.xpath('//input[@id="bucket-name"]'));
await browser.findElement(By.xpath('//input[@id="bucket-name"]')).sendKeys(BUCKET);
await browser.findElement(By.xpath('//button[@id="create-bucket"]')).click();
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
await timers.setTimeout(5000);
}
async function checkBucket() {
await browser.get(`https://${app.fqdn}/buckets`);
await browser.sleep(10000);
// await browser.get(`https://${app.fqdn}/buckets`);
await waitForElement(By.xpath(`//h1[contains(text(), "${BUCKET}")]`));
}
@@ -168,51 +158,18 @@ describe('Application life cycle test', function () {
xit('build app', function () { execSync('cloudron build', EXEC_ARGS); });
// // no SSO
it('install app (no SSO)', async function () {
execSync(`cloudron install --no-sso --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', false));
it('can add bucket', addBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can change admin credentials', changeAdminCredentials);
it('can restart app', async function () {
execSync(`cloudron restart --app ${app.id}`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can admin login', login.bind(null, 'minioakey', 'minioskey', false));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// SSO
it('install app (SSO)', async function () {
it('install app', async function () {
execSync(`cloudron install --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS);
await timers.setTimeout(10000);
});
it('can get app information', getAppInfo);
it('can get admin credentials', getAdminCredentials);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('can admin login', login.bind(null, 'minioadmin', 'minioadmin', true));
it('can add bucket', addBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can OIDC login', loginOIDC.bind(null, username, password, false));
it('has bucket', checkBucket);
it('can logout', logout);
it('can change admin credentials', changeAdminCredentials);
it('can restart app', async function () {
@@ -220,16 +177,12 @@ describe('Application life cycle test', function () {
await timers.setTimeout(10000);
});
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('backup app', function () { execSync('cloudron backup create --app ' + app.id, EXEC_ARGS); });
it('restore app', async function () {
const backups = JSON.parse(execSync(`cloudron backup list --raw --app ${app.id}`));
@@ -241,11 +194,7 @@ describe('Application life cycle test', function () {
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
@@ -259,11 +208,7 @@ describe('Application life cycle test', function () {
});
it('can get app information', getAppInfo);
it('can admin login', login.bind(null, 'minioakey', 'minioskey'));
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('can admin login', login.bind(null, 'minioakey', 'minioskey', true));
it('has bucket', checkBucket);
it('can logout', logout);
@@ -273,33 +218,24 @@ describe('Application life cycle test', function () {
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// test update
it('can install app for update', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can get admin credentials', getAdminCredentials);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('can add buckets', addBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('can update', function () { execSync(`cloudron update --app ${LOCATION}`, EXEC_ARGS); });
it('can configure', function () { execSync(`cloudron configure --app ${LOCATION} --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
it('can get app information', getAppInfo);
it('can admin login', async function () { await login('minioadmin', rootPassword); });
it('has bucket', checkBucket);
it('can logout', logout);
it('can OIDC login', loginOIDC.bind(null, username, password, true));
it('has bucket', checkBucket);
it('can logout', logout);
it('does redirect', checkRedirect);
it('check api', checkApi);
it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
// it('can install app for update', function () { execSync('cloudron install --appstore-id io.minio.cloudronapp --location ' + LOCATION, EXEC_ARGS); });
// it('can get app information', getAppInfo);
//
// it('can get admin credentials', getAdminCredentials);
// it('can admin login', async () => await login('minioadmin', rootPassword, true));
// it('can add buckets', addBucket);
// it('can logout', logout);
//
// it('can update', function () { execSync(`cloudron update --app ${LOCATION}`, EXEC_ARGS); });
// it('can configure', function () { execSync(`cloudron configure --app ${LOCATION} --location ${LOCATION} --secondary-domains API_SERVER_DOMAIN=${LOCATION}-api`, EXEC_ARGS); });
// it('can get app information', getAppInfo);
//
// it('can admin login', async () => await login('minioadmin', rootPassword, true));
// it('has bucket', checkBucket);
// it('can logout', logout);
//
// it('does redirect', checkRedirect);
// it('check api', checkApi);
//
// it('uninstall app', function () { execSync('cloudron uninstall --app ' + app.id, EXEC_ARGS); });
});