Commit Graph

520 Commits

Author SHA1 Message Date
Shrikant Sharat Kandula
12cf30687f
fix: Remove extra event and old disable var (#20624)
1. Remove the `disableTelemetry` app config field, and the
`APPSMITH_DISABLE_TELEMETRY` runtime env variable in client, since it is
unused and is misleading.

2. There's a bug where the page event is being sent even if telemetry is
turned off. This is just one event, all the others are still disabled
when telemetry is off. The reason for this is because Segment
automatically sends this event on load. Quoting from [their
docs](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#page):
> Analytics.js includes a Page call by default as the final line in [the
Analytics.js
snippet](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/quickstart/#step-2-copy-the-segment-snippet).
2023-02-15 19:16:04 +05:30
Sumesh Pradhan
a846bd4952
fix: renamed rts port env to APPSMITH_RTS_PORT (#20121)
Issue: Nginx and RTS used the same env PORT for binding it's service,
while the backend server had the rts port hardcoded on its rts uri.
- Renamed env PORT to APPSMITH_RTS_PORT for starting the rts server.
- Updated nginx config templates to use env `APPSMITH_RTS_PORT`
- Added appsmith.rts.port property in server to use env
APPSMITH_RTS_PORT
- Updated CommonConfig.java rtsBaseDomain to use appsmith.rts.port

---------

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2023-02-15 07:06:02 +05:30
Shrikant Sharat Kandula
4b6c8568ad
fix: NO_PROXY not set correctly on backend server (#20605)
When we have `NO_PROXY=localhost,one.com,two.com,three.com`, then the
current implementation will pass the following to the backend server:

```
localhost|one.com,two.com,three.com
```

This will mean that only `localhost` will bypass the proxy, which is not
what's expected.

This PR fixes this problem, so that the following is sent to the backend
server:

```
localhost|one.com|two.com|three.com
```

This will mean that requests to all four of them, will bypass the proxy,
as expected.
2023-02-14 19:13:19 +05:30
Shrikant Sharat Kandula
bb4ca19179
chore: Remove Maps API Key env variable for client (#19486)
Part of #11855.

Instead of getting the Google Maps API Key from runtime env variables,
we get it from the server, as part of the response of
`/api/v1/tenant/current`. This doesn't add a database call, just include
the env variable name in the response, so shouldn't have any performance
impact on the API.

On the client though, the Maps API key won't be available, until at
least the first call to `/tenant/current` is finished.

Also, first big PR in client code. 🙂

Edit: not `/me` anymore, but from `/tenant/current`.

---------

Co-authored-by: Pawan Kumar <pawan.stardust@gmail.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-02-07 14:53:15 +05:30
Shrikant Sharat Kandula
87cffb6a05
fix: Fix replicaset check to not require ClusterMonitor role (#19997)
In the `entrypoint.sh` script, we check if the MongoDB in use, has
replicaSet initiated or not. This is usually done with a `rs.initiate()`
on the cluster.

We need the replicaSet to be enabled on MongoDB, since the backend
server relies on MongoDB `changeStream`s, which is a feature, only
available if replicaSet is enabled.

However, to use the `changeStream` APIs, having the `read` or
`readWrite` role on MongoDB is enough. But the check we do in
`entrypoint.sh`, runs `rs.status()` to see if `replicaSet` is initiated.
This `rs.status()` call, unfortunately, requires the `ClusterMonitor`
role, unlike the `changeStream` API.

To tackle this, we created the `appsmithctl check_replica_set` command.
This command would attempt to use the `changeStream` API, and report
success or failure. But this failed on certain configurations, where
MongoDB was running as a single-node-cluster, on localhost, or a
local/internal network. This was an edge case.

That edge case is solved by this PR. With this, we can use `appsmithctl
check-replica-set` in the `entrypoint.sh` again.
2023-02-07 05:38:37 +05:30
Shrikant Sharat Kandula
3be0d76206
fix: Change watchtower to latest (#20001)
We're `watchtower:latest-dev` image for the `--schedule` support. This
was only available in the `latest-dev` version of Watchtower.

Now, this feature is available in the `latest` version of Watchtower, so
we should be fine switching back to `latest`.

More importantly, the `latest-dev` version of Watchtower, doesn't have
ARM images built. It only has AMD images built today. So this watchtower
service fails to start on ARM architectures. This PR fixes that.
2023-02-02 06:27:35 +05:30
Goutham Pratapa
fa800a7704
fix: update chart.lock and app versions (#20105)
Fixes: [20000](https://github.com/appsmithorg/appsmith/issues/20000)

- [Bug]: Update appsmith version from 1.16.0 to the current 1.9.4
version
* Though we deploy the latest appsmith version. In the helm chart we
show that we are deploying appsmith version as 1.16.0 and its confusing
. We are now fixing it with this PR
- Correct helm chart versions for redis and mongo. This, helps in
deploying the desired versions of redis and mongo which appsmith
supports.
* Previously, When we deploy appsmith along with redis and mongo . It
used to deploy redis v7.0.4 and mongo v6.0.3.
with this changes we deploy the supported versions of redis and mongo
which is v6 and v5 respectively.

### Mongo

before:
```
I have no name!@tempappsmith-mongodb-0:/$ mongosh

Current Mongosh Log ID:	63d2128c2e4dabde5a68f8f8
Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.6.0
Using MongoDB:		6.0.3
Using Mongosh:		1.6.0

For mongosh info see: https://docs.mongodb.com/mongodb-shell/

rs0 [direct: primary] test>

rs0 [direct: primary] test> db.version()
6.0.3
```

After the proposed changes:
```
I have no name!@tempappsmith-mongodb-0:/$ mongo
MongoDB shell version v5.0.9
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("d75e90e4-cbff-4b52-a7ab-22755ab43ec1") }
MongoDB server version: 5.0.9
================
Warning: the "mongo" shell has been superseded by "mongosh",
which delivers improved usability and compatibility.The "mongo" shell has been deprecated and will be removed in
an upcoming release.
For installation instructions, see
https://docs.mongodb.com/mongodb-shell/install/
================
rs0:PRIMARY> db.version()
5.0.9
```

### Redis

Before
```
I have no name!@tempappsmith-redis-master-0:/$ redis-server
19:C 26 Jan 2023 05:40:42.232 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19:C 26 Jan 2023 05:40:42.232 # Redis version=7.0.4, bits=64, commit=00000000, modified=0, pid=19, just started
19:C 26 Jan 2023 05:40:42.232 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
19:M 26 Jan 2023 05:40:42.233 * monotonic clock: POSIX clock_gettime
19:M 26 Jan 2023 05:40:42.233 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
19:M 26 Jan 2023 05:40:42.233 # Failed listening on port 6379 (TCP), aborting.
```

After the proposed changes
```
I have no name!@tempappsmith-redis-master-0:/$ redis-server
4728:C 26 Jan 2023 05:35:07.745 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
4728:C 26 Jan 2023 05:35:07.745 # Redis version=6.2.7, bits=64, commit=00000000, modified=0, pid=4728, just started
4728:C 26 Jan 2023 05:35:07.745 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
4728:M 26 Jan 2023 05:35:07.746 * monotonic clock: POSIX clock_gettime
4728:M 26 Jan 2023 05:35:07.746 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
4728:M 26 Jan 2023 05:35:07.746 # Failed listening on port 6379 (TCP), aborting.
```
2023-02-01 17:12:00 +05:30
Shrikant Sharat Kandula
f65986c351
fix: Use mongosh instead of mongo in entrypoint (#20055)
Fixes #19969.

The previous PR that fixed this was failing with the way we were
creating the initial user on MongoDB. This PR addresses that.

Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2023-01-27 16:05:00 +05:30
Sumesh Pradhan
f36071b2f3
fix: issue with ansible deployment (#19974)
## Description
Refactored Ansible tasks for installing Appsmith. 
Removed tasks used for Packer builds

Fixes # ([19581](https://github.com/appsmithorg/appsmith/issues/19581))

## Type of change
- Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?
- Manual
2023-01-25 10:45:04 +05:30
Shrikant Sharat Kandula
62db0a5c07 Revert "fix: Switched Mongo client to mongosh in Docker entrypoint script to support CPUs without AVX (#19971)"
This reverts commit bf86a693a1.
2023-01-25 05:40:35 +05:30
Jari Maijenburg
bf86a693a1
fix: Switched Mongo client to mongosh in Docker entrypoint script to support CPUs without AVX (#19971)
## Description

The Appsmith Docker image was unable to run on CPUs without AVX
instructions because the entrypoint script was using the legacy `mongo`
client. This PR replaces the `mongo` client with the new `mongosh`
client in the entrypoint, which does not require these instructions. Wit
this fix, the Appsmith Docker image is able to run on CPUs without AVX
instructions.

Fixes #19969

## Type of change
- Bug fix (non-breaking change which fixes an issue)

## How Has This Been Tested?
- Manual

## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-01-24 07:36:44 +05:30
Sumesh Pradhan
ab5fd20a76
fix: Redis rdb persistance | User session persistance (#19981)
## Description
- Updated redis.conf to set the Redis rdb directory to
`/appsmith-stacks/data/redis` bind-mount directory, so that the data is
persisted after the container restarts/updates. ( This was causing user
sessions on Appsmith installations using the embedded Redis to reset
after every container restart, since the redis data was not being
persisted)
- Updated redis.conf for the embedded Redis to increase the snapshot
frequency to dump after every 15 sec if at least 1 key changed

Fixes #19768

## Type of change
- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?
- Manual
2023-01-23 17:50:37 +05:30
Sumesh Pradhan
c93ed4f54c
fix: helm install values checks (#19296)
## Description
- Updated ngnix as default ingress class in `values.yaml`
- Upgraded mongo's deployment image to `v5.0.12` as the previous 4.4.11
is deprecated
- Added `imagePullSecrets` to enable pulling images from private docker
registries
- Added conditional to check for k8s version >=1.1.8 to handle both old
and new k8s version scenarios for setting up the Ingress controller
class name.

Co-authored-by: Goutham Pratapa <goutham@appsmith.com>
2023-01-17 13:01:28 +05:30
dependabot[bot]
57b885c8b8
chore: bump luxon from 3.0.1 to 3.2.1 in /deploy/docker/utils (#19587)
Bumps [luxon](https://github.com/moment/luxon) from 3.0.1 to 3.2.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/moment/luxon/blob/master/CHANGELOG.md">luxon's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1>3.2.0 (2022-12-29)</h1>
<ul>
<li>Allow timeZone to be specified as an intl option</li>
<li>Fix for diff's handling of end-of-month when crossing leap years (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1340">#1340</a>)</li>
<li>Add Interval.toLocaleString() (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1320">#1320</a>)</li>
</ul>
<h1>3.1.1 (2022-11-28)</h1>
<ul>
<li>Add Settings.twoDigitCutoffYear</li>
</ul>
<h1>3.1.0 (2022-10-31)</h1>
<ul>
<li>Add Duration.rescale</li>
</ul>
<h1>3.0.4 (2022-09-24)</h1>
<ul>
<li>Fix quarters in diffs (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1279">#1279</a>)</li>
<li>Export package.json in package (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1239">#1239</a>)</li>
</ul>
<h1>3.0.2 (2022-08-28)</h1>
<ul>
<li>Lots of doc changes</li>
<li>Added DateTime.expandFormat</li>
<li>Added support for custom conversion matrices in Durations</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="b1fee58b87"><code>b1fee58</code></a>
bump to 3.2.1</li>
<li><a
href="5ab3bf64a1"><code>5ab3bf6</code></a>
fix rfc2822 regex</li>
<li><a
href="806467adac"><code>806467a</code></a>
preserve language tags (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1354">#1354</a>)</li>
<li><a
href="acc4952585"><code>acc4952</code></a>
bump dev dependencies</li>
<li><a
href="c8f7191574"><code>c8f7191</code></a>
bump to 3.2.0</li>
<li><a
href="f9917c4a65"><code>f9917c4</code></a>
clarify equality docstring</li>
<li><a
href="a6f27370ad"><code>a6f2737</code></a>
allow timeZone to be specified as an intl option</li>
<li><a
href="f8285c74f3"><code>f8285c7</code></a>
find diff by duration hash instead of using repeated addition to cursor
(<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1340">#1340</a>)</li>
<li><a
href="d607d8fbf2"><code>d607d8f</code></a>
remove extra param from tokenForPart</li>
<li><a
href="7e5d24dcab"><code>7e5d24d</code></a>
Add Interval.toLocaleString() (<a
href="https://github-redirect.dependabot.com/moment/luxon/issues/1320">#1320</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/moment/luxon/compare/3.0.1...3.2.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=luxon&package-manager=npm_and_yarn&previous-version=3.0.1&new-version=3.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the
default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as
the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as
the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the
default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/appsmithorg/appsmith/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 14:02:32 +05:30
Sumesh Pradhan
a1be1bf941
feat: appsmithctl version and mongo-eval utils (#19075)
`appsmithctl version` - Util to display current Appsmith version
`appsmithctl mongo-eval '<mongo query>' [--pretty]` - Util to run mongo
queries

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2023-01-03 12:14:21 +05:30
Nidhi
dfccd5a058
chore: Upgrade to Spring Boot 3.0.1 (#19044)
This upgrade takes care of our move to JDK 17, Spring Boot 3.0.1 and a
few other security upgrades along the way.

Fixes #18993 

TODO:

- [x] Check CI changes for Java 17
- [x] Check vulnerability report
- [x] Mongock needs an upgrade
- [x] Add JVM args at all possible places for exposing java.time module
- [x] Add type adapters everywhere / use the same config for type
adapters everywhere
2023-01-02 19:40:59 +07:00
dependabot[bot]
02a6b0cf79
chore: bump json5 from 2.2.1 to 2.2.3 in /deploy/docker/utils (#19430)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/json5/json5/releases">json5's releases</a>.</em></p>
<blockquote>
<h2>v2.2.3</h2>
<ul>
<li>Fix: json5@2.2.3 is now the 'latest' release according to npm instead of v1.0.2. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/299">#299</a>)</li>
</ul>
<h2>v2.2.2</h2>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to objects and arrays.
(<a href="https://github-redirect.dependabot.com/json5/json5/issues/199">#199</a>) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (<a href="https://github-redirect.dependabot.com/json5/json5/issues/295">#295</a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/json5/json5/blob/main/CHANGELOG.md">json5's changelog</a>.</em></p>
<blockquote>
<h3>v2.2.3 [<a href="https://github.com/json5/json5/tree/v2.2.3">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.2...v2.2.3">diff</a>]</h3>
<ul>
<li>Fix: json5@2.2.3 is now the 'latest' release according to npm instead of
v1.0.2. (<a href="https://github-redirect.dependabot.com/json5/json5/issues/299">#299</a>)</li>
</ul>
<h3>v2.2.2 [<a href="https://github.com/json5/json5/tree/v2.2.2">code</a>, <a href="https://github.com/json5/json5/compare/v2.2.1...v2.2.2">diff</a>]</h3>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to objects and arrays.
(<a href="https://github-redirect.dependabot.com/json5/json5/issues/199">#199</a>) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (<a href="https://github-redirect.dependabot.com/json5/json5/issues/295">#295</a>).</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="c3a7524277"><code>c3a7524</code></a> 2.2.3</li>
<li><a href="94fd06d82e"><code>94fd06d</code></a> docs: update CHANGELOG for v2.2.3</li>
<li><a href="3b8cebf0c4"><code>3b8cebf</code></a> docs(security): use GitHub security advisories</li>
<li><a href="f0fd9e194d"><code>f0fd9e1</code></a> docs: publish a security policy</li>
<li><a href="6a91a05fff"><code>6a91a05</code></a> docs(template): bug -&gt; bug report</li>
<li><a href="14f8cb186e"><code>14f8cb1</code></a> 2.2.2</li>
<li><a href="10cc7ca916"><code>10cc7ca</code></a> docs: update CHANGELOG for v2.2.2</li>
<li><a href="7774c10979"><code>7774c10</code></a> fix: add <strong>proto</strong> to objects and arrays</li>
<li><a href="edde30abd8"><code>edde30a</code></a> Readme: slight tweak to intro</li>
<li><a href="97286f8bd5"><code>97286f8</code></a> Improve example in readme</li>
<li>Additional commits viewable in <a href="https://github.com/json5/json5/compare/v2.2.1...v2.2.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=json5&package-manager=npm_and_yarn&previous-version=2.2.1&new-version=2.2.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/appsmithorg/appsmith/network/alerts).

</details>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 18:08:35 +05:30
Goutham Pratapa
349ed41e49
chore: refactor backend startup script (#19420)
Fixes: [19300](https://github.com/appsmithorg/appsmith/issues/19300)
2023-01-02 15:25:23 +05:30
ps-xaf
72c17fcbf4
feat: override helm chart images for init containers (#18834)
Small enhancement to permit usage of different image registries

Co-authored-by: Christian Körner <ck@ps-xaf.de>
2023-01-02 14:56:15 +05:30
Goutham Pratapa
1de045d9d8
chore: Add dependency to start backend only if rts is ready (#19218)
Fixes: [19207](https://github.com/appsmithorg/appsmith/issues/19207)

**By default on start-up**

```
root@ab348246fff8:/appsmith-stacks/logs# head backend/backend-ab348246fff8.log
Waiting for RTS to start ...
RTS started.
Starting Backend server...
Load environment configuration
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[2022-12-26 11:39:34,962]  - Starting ServerApplication vv1.8.14.1 using Java 11.0.17 on ab348246fff8 with PID 1543 (/opt/appsmith/backend/server.jar started by root in /opt/appsmith/backend)
```
**Upon stopping RTS manually** 

```
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl stop rts
rts: stopped
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl status
backend                          RUNNING   pid 1497, uptime 0:01:21
cron                             RUNNING   pid 1505, uptime 0:01:21
editor                           RUNNING   pid 1502, uptime 0:01:21
mongodb                          RUNNING   pid 1491, uptime 0:01:21
redis                            RUNNING   pid 1490, uptime 0:01:21
rts                              STOPPED   Dec 26 11:40 AM
stdout                           RUNNING   pid 1489, uptime 0:01:21
```

**Restart Backend service to check if backend service starts** 

```
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl restart backend
backend: stopped
backend: started
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl status
backend                          RUNNING   pid 1802, uptime 0:00:12
cron                             RUNNING   pid 1505, uptime 0:01:43
editor                           RUNNING   pid 1502, uptime 0:01:43
mongodb                          RUNNING   pid 1491, uptime 0:01:43
redis                            RUNNING   pid 1490, uptime 0:01:43
rts                              STOPPED   Dec 26 11:40 AM
stdout                           RUNNING   pid 1489, uptime 0:01:43
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl ^C
root@ab348246fff8:/appsmith-stacks/logs# tail -f backend/backend-ab348246fff8.log
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
Waiting for RTS to start ...
^C
```

**Upon starting RTS the behaviour of backend immediately**
 
```
root@ab348246fff8:/appsmith-stacks/logs# supervisorctl start rts
rts: started
root@ab348246fff8:/appsmith-stacks/logs# tail -f backend/backend-ab348246fff8.log
Starting Backend server...
Load environment configuration
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/appsmith/backend/server.jar!/BOOT-INF/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[2022-12-26 11:41:33,796]  - Starting ServerApplication vv1.8.14.1 using Java 11.0.17 on ab348246fff8 with PID 1968 (/opt/appsmith/backend/server.jar started by root in /opt/appsmith/backend)
[2022-12-26 11:41:33,799]  - Running with Spring Boot v2.6.5, Spring v5.3.17
[2022-12-26 11:41:33,803]  - No active profile set, falling back to 1 default profile: "default"
[2022-12-26 11:41:34,615]  - Multiple Spring Data modules found, entering strict repository configuration mode!
[2022-12-26 11:41:34,616]  - Bootstrapping Spring Data Reactive MongoDB repositories in DEFAULT mode.
[2022-12-26 11:41:34,859]  - Finished Spring Data repository scanning in 239 ms. Found 55 Reactive MongoDB repository interfaces.
[2022-12-26 11:41:35,220]  - Multiple Spring Data modules found, entering strict repository configuration mode!
[2022-12-26 11:41:35,221]  - Bootstrapping Spring Data Redis repositories in DEFAULT mode.
```
2022-12-29 14:22:41 +05:30
Goutham Pratapa
fee9b181fe
chore: fix ingress fieldname in appsmith (#18684) 2022-12-05 17:14:17 +05:30
Shrikant Sharat Kandula
3144c0a452
chore: Add role details in replica set error message (#18472) 2022-11-27 13:46:05 +05:30
dependabot[bot]
cf6f052565
chore: bump minimatch from 3.0.4 to 3.1.2 in /deploy/docker/utils (#18344)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-26 12:23:33 +05:30
Goutham Pratapa
30023b7a9c
Add certmanager and classname fields in ingress (#18266) 2022-11-23 17:36:03 +05:30
Sumesh Pradhan
59fc70b36b
feat: appsmith ctl jest with workflow (#17713) 2022-11-01 12:57:41 +05:30
Goutham Pratapa
5c5fbaa9f0
Fix redis sub chart name in helm chart (#17866)
Currently, the helm chart has a minor bug where the chart name is
hard-coded. This fix addresses the issue
2022-10-28 10:25:17 +05:30
Shrikant Sharat Kandula
71293dec82
Fix sandbox iframe default setting (#17618) 2022-10-17 16:12:56 +05:30
Goutham Pratapa
97a3f2a30c
fix: Add mongo/redis to helm chart dependencies (#16096) 2022-10-14 16:15:49 +05:30
Shrikant Sharat Kandula
b6657771a1
Fix assets not loading in supervisor UI (#17543)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-10-14 13:23:09 +05:30
Shrikant Sharat Kandula
d6b4cb5f19
Fix X-Forwarded-Host with multiple rev-proxies (#16951) 2022-10-14 06:30:27 +05:30
Abhinav Jha
e6b89d03aa
Sandboxed iFrames with srcDoc (#11426)
Change iFrame widgets to use sandbox mode if srcDoc is provided
Allowed options:
`allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-scripts allow-top-navigation-by-user-activation`

Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-10-04 15:20:45 +05:30
Shrikant Sharat Kandula
856661486c
Delete unsupported k8s deployment option (#17113) 2022-09-29 17:20:43 +05:30
Sumesh Pradhan
c843f829fd
Set HOSTNAME env for heroku deployment (#17095) 2022-09-29 17:19:24 +05:30
Shrikant Sharat Kandula
24655f6ceb
For paths with an extension, give 404 if missing (#17035) 2022-09-26 09:41:38 +05:30
Shrikant Sharat Kandula
6fc2b1680e
Fix key file permissions error on Windows (#16862) 2022-09-19 13:49:27 +05:30
Goutham Pratapa
b1553e946a
fix: docker entrypoint script to check mongo replicaset (#16751)
Co-authored-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-09-14 20:30:18 +05:30
Sumesh Pradhan
8f01b84fee
Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
Sumesh Pradhan
5a6ab1d094
Fix entrypoint.sh external mongo replica set check (#16151) 2022-09-13 14:14:01 +05:30
Shrikant Sharat Kandula
8a0838505a
All outgoing requests should go through the configured proxy (#14427)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
Co-authored-by: Aishwarya UR <aishwarya@appsmith.com>
2022-09-01 11:16:45 +05:30
Sumesh Pradhan
9cf132f23e
Disable nginx server tokens, set gzip_type to * (#15767) 2022-08-05 16:40:38 +05:30
Shrikant Sharat Kandula
25ab8f5983
Add startupProbe to Appsmith pods (#15702)
This is so that the `livenessProbe` doesn't aggressively
restart the pod before the Appsmith container is live.
2022-08-04 15:58:18 +05:30
Amit Kumar
6715d3a681
Pod labels can be configured from Helm values (#15352) 2022-08-04 15:21:23 +05:30
Shrikant Sharat Kandula
868b385e7b
Change to allow all domains to embed Appsmith apps (#15619)
The control to configure what domains are allowed to embed Appsmith apps is still available, but the default of not allowing anything except for 'self' is changed to allow everything.

While this is convenient, we encourage our users to configure their frame ancestors to limit what domains can embed their Appsmith apps.

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-08-02 15:41:52 +05:30
Sumesh Pradhan
edbfef7d51
Auto-backup and cleanup with appsmithctl (#15203)
- Auto-cleanup of backup files using env variable APPSMITH_BACKUP_ARCHIVE_LIMIT (default value is 4) after every backup.
- Updated docker file to include watchtower hook scripts.
- Error mail interval to 6hrs.
2022-07-28 17:45:28 +05:30
Shrikant Sharat Kandula
dd46348981
Fix isset command not found (#14997) 2022-07-25 07:42:48 +05:30
Arpit Mohan
4674be719f
Fixing bug where the Mongo DB URL wasn't being picked up by the billing script (#15378) 2022-07-22 18:11:02 +05:30
Shrikant Sharat Kandula
874b9945f8
Control where embedding of Appsmith is allowed (#15348)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-07-21 13:03:35 +05:30
Goutham Pratapa
b4eddfe61e
feat: add hostname to log file (#15005) 2022-07-21 12:20:15 +05:30
Shrikant Sharat Kandula
647b2cd430
If MongoDB key doesn't exist, create it (#15207)
This can happen during a migration from very old slim-container instance to a fat container setup. Besides, for whatever reason, if the key file is missing, then the instance fails to come up. This fix will ensure that we can recover from that state automatically.
2022-07-20 20:42:23 +05:30
Ankita Kinger
3933f5f4d1
feat: migrate from org to workspace under phase 3 (#14158)
* migration from organization to workspace on code level

* updated a few more files

* fixed runtime errors

* update org settings URL

* Renamed organizationId in domain objects

* changed field named from organization to workspace

* Reverted AppsmithRole changes

* fixed migrations

* recreating indexes

* migration update

* seed data runs before migration, undo changes

* mock commit

* seedmongo to populate upgraded data, datasource upgrade

* fixed two test cases

* updated migrations

* updated prop name

* Upgraded AclPermission

* comment

* migrated AppsmithRole

* more changes

* final set of changes

* variable name changes

* update cypress variable name

* Update app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java

* Update app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Datasource.java

Co-authored-by: Trisha Anand <trisha@appsmith.com>

* reverting encryption handler change

* refactor code to migrate from org to workspace

* migrated a few missed out org to workspace

* updated a few more

* migrated a few missed out org to workspace

* migration changes

* Removed Permission import

* reverted code change

* few more changes

* fixed failing cypress test

* fixed failing cypress test

Co-authored-by: Sidhant Goel <sidhant@appsmith.com>
Co-authored-by: Trisha Anand <trisha@appsmith.com>
Co-authored-by: Sidhant Goel <sidhant@hexcod.in>
2022-07-20 17:24:16 +05:30
Arpit Mohan
1af9e2042f
chore: Adding the appsmithctl command to estimate the bill for an existing Appsmith user (#15311)
## Description

This PR adds to the `estimate_billing` option to the `appsmithctl` command. This will help existing users estimate their bill when they consider upgrading to the paid edition.

Usage: 
```
appsmithctl estimate_billing 

Options:
  --sessionPrice    The price per active session. Defaults to 0.3 
  --priceCap        The price cap for a user in a given month. Defaults to 15
```

A user can also run the command for various scenarios to determine the optimum capacity tier.

## Type of change

- New feature (non-breaking change which adds functionality)
- This change requires a documentation update

## How Has This Been Tested?

Manually

## Checklist:

- [ ] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
2022-07-20 10:33:47 +05:30
Sumesh Pradhan
85151b845e
appsmithctl backup error logging and mailer (#14797) 2022-07-07 11:19:25 +05:30
Ankita Kinger
9b7944e7ee
feat: migrate organisation to workspace (#13863)
* migration from organization to workspace on code level

* updated a few more files

* fixed runtime errors

* update org settings URL

* Renamed organizationId in domain objects

* changed field named from organization to workspace

* Reverted AppsmithRole changes

* fixed migrations

* recreating indexes

* migration update

* seed data runs before migration, undo changes

* mock commit

* seedmongo to populate upgraded data, datasource upgrade

* fixed two test cases

* updated migrations

* updated prop name

* Upgraded AclPermission

* comment

* migrated AppsmithRole

* more changes

* final set of changes

* variable name changes

* update cypress variable name

* Update app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/ApplicationControllerCE.java

* Update app/server/appsmith-interfaces/src/main/java/com/appsmith/external/models/Datasource.java

Co-authored-by: Trisha Anand <trisha@appsmith.com>

* reverting encryption handler change

* migrated a few missed out org to workspace

* migrated a few missed out org to workspace

* migration changes

* Removed Permission import

* fixed AppsmithRole

* mongodb version update

* fixed compile error

* fixed compile issue

* fixed some tests

* simplified embedded mongodb config

* updated a cypress test

Co-authored-by: Sidhant Goel <sidhant@appsmith.com>
Co-authored-by: Trisha Anand <trisha@appsmith.com>
Co-authored-by: Sidhant Goel <sidhant@hexcod.in>
2022-06-15 21:07:41 +05:30
Shrikant Sharat Kandula
265cca4003
Proxy arguments so that they are not set when empty (#14508) 2022-06-15 14:01:46 +05:30
Sumesh Pradhan
364c5d6701
Restore encryption sale var typo fix (#14499) 2022-06-15 10:12:54 +05:30
Sumesh Pradhan
b9c5d91968
Backup & Restore commands for appsmithctl (#14270) 2022-06-09 09:14:18 +05:30
Shrikant Sharat Kandula
73e43fadbd
Support for custom CA certificates (#14207)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-06-01 11:14:27 +05:30
Sumesh Pradhan
31c98a8fda
Added healthcheck for editor with https (#13947)
Added a fix for the docker health check on editor with ssl enabled for appsmith-ce fat container and the slim client appsmith-editor
2022-05-27 17:05:21 +05:30
Shrikant Sharat Kandula
f344688b2f
Fix log file location for MongoDB (#13744) 2022-05-11 19:13:30 +02:00
Sumesh Pradhan
5e92d48037
Add healthcheck to docker (#13154) 2022-05-06 11:45:56 +05:30
Sumesh Pradhan
41b9df2657
Support getting values from secrets in helm chart configuration (#12633) 2022-05-04 16:21:15 +05:30
Sumesh Pradhan
511278f067
Disable auto updates helm and docker-compose doc (#13443) 2022-04-29 17:16:37 +05:30
Sumesh Pradhan
3b28ce00a2
Adding ingress.class parameter to nginx setting in helm chart docs (#12398) 2022-04-27 11:33:58 +05:30
Sumesh Pradhan
9f2c5dc5f7
Renamed temporary encryption variables in docker entry-point script (#12187) 2022-04-15 17:44:08 +05:30
Sumesh Pradhan
f973c2d86d
fix: removed redundant func call init_ssl_cert (#12854) 2022-04-13 07:56:17 +02:00
Trisha Anand
c37fdb9f1c
fix: Only setting maximum heap size for heroku deployed instances (#12725)
Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
2022-04-08 18:48:23 +05:30
Shrikant Sharat Kandula
c6deec2f81
fix: Fix server not starting when custom domain not set 2022-04-08 15:19:11 +05:30
Arpit Mohan
7807d5f5c6 chore: Fixing nginx deployment for non-Heroku deployment 2022-04-07 21:00:17 +02:00
geekup-legodevops
2843da9bfd
Refactor initialize env files flow in entrypoint of container (#12585)
Co-authored-by: phat.ct <phat.ct@geekup.vn>
2022-04-05 20:22:52 +05:30
geekup-legodevops
c210857791
Redis running on 64k pagesize (#12264) 2022-04-01 12:28:03 +05:30
Shrikant Sharat Kandula
9cfb7b38ee
Fix basic auth password index 2022-03-25 12:15:05 +05:30
Sumesh Pradhan
6ca9c186b1
docs: Fixing typo in Ansible playbook. Modifying --extra-var to --extra-vars (#12227) 2022-03-24 18:28:25 +05:30
Shrikant Sharat Kandula
d254e3f0e8
Fix fat container not starting NGINX (#12210) 2022-03-24 14:40:42 +05:30
geekup-legodevops
3fcdcddb04
Capture nginx access and error logs in fat container (#12205) 2022-03-24 13:47:25 +05:30
geekup-legodevops
382ea53ab3
Refactor to deploy Heroku using new Docker image (#9127) 2022-03-24 13:17:36 +05:30
geekup-legodevops
95776e6454
Remove unnecessary variables in Helm chart & refactor templates (#12011) 2022-03-24 13:09:27 +05:30
Arpit Mohan
f9b28aedbf
Upgrade boxen, remove yargs and chalk (#12043) 2022-03-24 12:57:46 +05:30
Shrikant Sharat Kandula
4dd0719570
Work with copied cert files after fat migration (#12182) 2022-03-24 06:04:38 +05:30
Shrikant Sharat Kandula
b2e9498f2d
Check Redis URL for localhost as well (#12173) 2022-03-23 17:07:14 +05:30
Shrikant Sharat Kandula
e8efb8bef8
Fix escaping in generation of nginx config 2022-03-23 14:25:18 +05:30
Shrikant Sharat Kandula
b7884f1feb
Fix replicaset checking with limited permissions (#11969) 2022-03-21 13:47:29 +05:30
geekup-legodevops
70096450d8
Redirect Redis log to supervisord log (#11994) 2022-03-21 11:59:40 +05:30
Sumesh Pradhan
4a19b6789b
Java arguments tuning using env (#11581) 2022-03-17 18:40:51 +05:30
geekup-legodevops
4d7c9b7822
Add script to stop/start MongoDB and Redis if changed (#11894) 2022-03-17 17:58:48 +05:30
Trisha Anand
407d963aa5 Updating it to 10s which was the initial configuration 2022-03-17 17:18:45 +05:30
Trisha Anand
7d35f4b2b0 Update : On CE not waiting for backend to be marked as running 2022-03-17 17:00:47 +05:30
Trisha Anand
42b4a2849e hotfix: Check if the backend is up within 30s to reduce the time it takes for editor to come up on restart 2022-03-17 16:52:24 +05:30
Shrikant Sharat Kandula
a12ed0cc18
Fix nginx not starting in fat container (#11909) 2022-03-16 13:21:25 +01:00
Trisha Anand
78e562cbb3
chore: Increasing the start time check for backend process to stay up to 3.5 minutes to ensure that all the checks have run and some grace time before marking the process to be running. (#11876) 2022-03-15 17:43:02 +05:30
Shrikant Sharat Kandula
f08893f233
fix: Fix removal of env variables not working in NGINX (#11854)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-03-15 13:32:59 +05:30
Shrikant Sharat Kandula
e732190151
fix: Fix special char handling in pre-define env (#11799) 2022-03-11 21:21:17 +05:30
Shrikant Sharat Kandula
52c9c4105b
Change CronJob version to batch/v1 2022-03-11 06:21:46 +05:30
Shrikant Sharat Kandula
b06b301093
Use docs link instead of GitHub link 2022-03-11 06:06:58 +05:30
Khoa Huỳnh
e59c69f915
Fix MongoDB permission issue in checking replica set (#11613) 2022-03-10 10:16:16 +05:30
Shrikant Sharat Kandula
993c91e31b
Apply env variables in NGINX config before startup (#11531)
Instead of doing env substitutions at request processing time, do it
before NGINX even starts.
2022-03-09 12:38:48 +05:30
geekup-legodevops
1e5c4651eb
Update Helm ingress template & document (#11552) 2022-03-09 12:07:19 +05:30
akash-codemonk
a6946fbcf0
fix: end guided tour on exiting editor (#11084) 2022-03-08 20:25:20 +05:30
Shrikant Sharat Kandula
1233f7f7ee
chore: Change watchtower to latest from latest-dev (#11669)
This is because watchtower:latest-dev doesn't run on ARM architectures.
2022-03-07 13:58:20 +05:30
geekup-legodevops
db7a046116
Refactor entrypoint script to support migrate slim to fat container (#11519) 2022-03-03 08:40:29 +05:30
geekup-legodevops
762357e97c
Remove curl call to download certbot config files for ssl (#11372) 2022-03-03 08:39:21 +05:30
Ankita Kinger
13fe125a0c
feat: Add disconnect button on auth config pages and form login callout banner (#11389)
* added form login callout banner

* form login config page changes

* form login config page changes

* added redirecturl and uneditable field components

* added disconnect button on auth pages

* Added env variables for form login auth page

* added disconnect button on auth pages

* updated docs link for dform login callout doc

* added condition for disconnect button

* added ce changes done on ee

* updated css

* suggested changes in PR review

* suggested changes in PR review

* suggested changes in PR review

* reverted gitignore files changes

* reverted gitignore files changes

* updated logic for saving admin settings

* removed unused imports

* added changes for taginput field

* removed console

* removed warning

* removed unwanted changes
2022-03-02 23:48:50 +05:30
Shrikant Sharat Kandula
fb7d92ec66
Fix ip/hostname nomenclature in HTTPS doc (#11451) 2022-02-28 10:17:40 +05:30
Shrikant Sharat Kandula
0e12200374
Improve vertical spacing in output of helm install 2022-02-25 17:04:55 +05:30
Shrikant Sharat Kandula
cd8db7fbc2
chore: Use latest-dev for watchtower (#11369) 2022-02-23 21:48:41 +05:30
Shrikant Sharat Kandula
0a7ab37fba
Increment Helm charts version 2022-02-21 08:33:10 +05:30
geekup-legodevops
c1f89e5830
Fix host not showing up when ignress is enabled (#11221) 2022-02-18 19:06:44 +05:30
Abhinav Jha
938edd5284
chore: Remove old way of adding feature flags (#11213)
* Remove optimizely, as it isn't being used anymore from the frontend codebase

* Remove optimizely references form netlify config, vercel config, index.html, docker script, nginx templates and example .env file
2022-02-16 19:57:58 +05:30
Shrikant Sharat Kandula
5bd0347884
Fix helm repo index command, add missing path 2022-02-09 19:56:59 +05:30
geekup-legodevops
7a950004db
Ansible support on Amazon Linux (#10466)
- Improve the ansible script to support Amazon Linux
- Remove the port validation on the preflight template
- Display message to show the host IP for user to access the app
2022-02-09 14:40:45 +05:30
geekup-legodevops
2d8e7fee0d
Enable replicaset on local MongoDB only (#10010) 2022-02-09 14:32:46 +05:30
geekup-legodevops
e85b34d66e
Add Helm configMap to update application configuration (#10157) 2022-01-31 13:27:01 +05:30
dependabot[bot]
23c792e94c
chore: bump shelljs from 0.8.4 to 0.8.5 in /deploy/docker/utils (#10415)
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-15 03:53:08 +05:30
Shrikant Sharat Kandula
42dd099b11
Set MongoDB Key permissions everytime (#10080) 2022-01-10 17:19:29 +05:30
Shrikant Sharat Kandula
023949626d
Fix missing acme route in NGINX HTTPS config (#10094)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2022-01-01 11:39:49 +05:30
Shrikant Sharat Kandula
8411e35999
Fix custom domain's env variable name (#10092) 2021-12-31 18:04:10 +05:30
geekup-legodevops
269e3a786d
chore: Minor improvement for Helm, remove dependency & namespace (#9928) 2021-12-28 12:50:37 +05:30
Shrikant Sharat Kandula
227332e668
Fix connecting to MongoDB fails (#9988)
Ref: https://appsmith.notion.site/Fix-server-not-starting-in-v1-6-4-d6456e8f6dcc443cb7a22bdc1cfa9a80
2021-12-24 16:35:36 +05:30
Subin Mathew
5e0ee52ff5
Update docker compose file to have update schedule to 1 hour (#9943) 2021-12-23 10:48:26 +05:30
imgbot[bot]
387aed75e1
chore: [ImgBot] Optimize images (#9855)
*Total -- 311.31kb -> 173.82kb (44.16%)

/deploy/digital_ocean/images/edit-app.png -- 309.70kb -> 172.23kb (44.39%)
/app/client/src/assets/icons/widget/switch-group.svg -- 1.60kb -> 1.59kb (0.61%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-12-18 22:40:28 +05:30
geekup-legodevops
e3732dcb55
Add script to remove unused image in AMI (#9732) 2021-12-18 07:45:05 +05:30
geekup-legodevops
dd3c750bbb
Migrate DigitalOcean image to use fat container (#9400) 2021-12-17 20:08:14 +05:30
geekup-legodevops
daf60fab72
Add appsmithctl command to migrate instance to new server (#9508) 2021-12-17 10:39:20 +05:30
Shrikant Sharat Kandula
dd52961850 Fix fat image not being pushed to DockerHub
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-12-17 06:42:17 +05:30
gokuatkai
0edd50f6b2
Add helm param to disable namespace creation (#9719)
Will only create namespace if namespace.create == true
2021-12-15 08:01:48 +05:30
VASANTH KUMAR BHUKYA
3f3472314b
docs: Improving the grammar in AWS AMI README (#8461)
Made changes to the Readme file of AWS Console to improve the grammar
2021-12-12 19:16:37 +05:30
Shrikant Sharat Kandula
334e1dce1d
ci: Run a small test on fat image before pushing to DockerHub (#8619) 2021-12-12 14:34:17 +05:30
Shrikant Sharat Kandula
3c259386ff
fix: Add fix for log4j2 RCE (#9706)
Ref: https://spring.io/blog/2021/12/10/log4j2-vulnerability-and-spring-boot.

Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-12-11 09:54:38 +05:30
geekup-legodevops
192f5acf0b
Ansible playbook now works with Appsmith fat image (#9509) 2021-12-11 08:01:56 +05:30
Shrikant Sharat Kandula
4612607122
Set default APPSMITH_GIT_ROOT value in Docker (#9666) 2021-12-09 12:11:34 +05:30
geekup-legodevops
31a4d14196
Add flow to generate Nginx HTTP only if provision cert fail (#9546) 2021-12-07 15:37:51 +05:30
Shrikant Sharat Kandula
31cac9f85f
Fix Appsmith image name in Helm chart values (#9460) 2021-12-02 16:08:35 +05:30
geekup-legodevops
885f9675c2
Add confirmation step in importing DB command (#9265) 2021-11-26 15:40:16 +05:30
geekup-legodevops
44261cb155
Refactor AMI to use new Docker image (#8983) 2021-11-25 13:52:00 +05:30
Shrikant Sharat Kandula
94f5a87cdd
Load env variables at start of backend and rts (#9325)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-24 20:22:22 +05:30
Shrikant Sharat Kandula
f3ad4ef9bb Fix variable escaping in docker entrypoint script
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 15:53:04 +05:30
Shrikant Sharat Kandula
b86abeadc0 Include origin_scheme in new nginx configs
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 13:47:44 +05:30
Shrikant Sharat Kandula
768885822b
Fix deleting files when they don't exist 2021-11-23 12:13:10 +05:30
geekup-legodevops
5ec733e5a2
Refactor to generate nginx config file with auto-redirect HTTPS (#9256)
Refactor flow to generate nginx configuration file corresponding Custom domain set up

Add 2 template for Nginx template for HTTP and HTTPS. HTTPS contains new block for auto-redirect for HTTPS
2021-11-23 11:22:09 +05:30
geekup-legodevops
5e1a496349
Config for editor program run script instead of nginx (#8922)
Add script to re-generate nginx config file & start nginx

Move function init_ssl_cert into separated file and reuse it in new script and entrypoint

Change command config & add new config to kill all sub-process of a supervisord child program in editor program configure file
2021-11-23 09:39:13 +05:30
Shrikant Sharat Kandula
afeeb414dc
Fix OAuth failing when there's SSL termination (#9286)
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-11-23 08:15:35 +05:30
Shrikant Sharat Kandula
c0b29d6a2d
chore: Let the AWS AMI server start automatically on boot (#9104) 2021-11-19 13:30:03 +05:30
imgbot[bot]
3eec0594f7
chore: [ImgBot] Optimize images (#9208)
*Total -- 929.35kb -> 640.18kb (31.11%)

/deploy/helm/images/helm-ssl-config.png -- 194.07kb -> 104.73kb (46.03%)
/static/images/client-wsl-yt-video-thumbnail.png -- 690.06kb -> 490.46kb (28.93%)
/app/client/src/assets/icons/widget/table/checkbox-line.svg -- 0.20kb -> 0.19kb (7.77%)
/app/client/src/assets/icons/widget/table/checkbox-check.svg -- 0.21kb -> 0.20kb (7.41%)
/app/client/src/assets/icons/comments/commentCursor.svg -- 1.10kb -> 1.07kb (3.1%)
/app/client/src/assets/icons/widget/recorder/recorder_recording.svg -- 0.14kb -> 0.14kb (2.74%)
/app/client/src/assets/icons/widget/recorder/recorder_pause.svg -- 0.23kb -> 0.23kb (2.53%)
/app/client/src/widgets/AudioWidget/icon.svg -- 0.39kb -> 0.39kb (1.98%)
/app/client/src/assets/icons/widget/recorder/recorder_complete.svg -- 0.23kb -> 0.23kb (1.67%)
/app/client/src/assets/icons/comments/unpinIcon.svg -- 0.28kb -> 0.27kb (1.41%)
/app/client/src/assets/icons/control/underline1.svg -- 0.77kb -> 0.76kb (1.27%)
/app/client/src/assets/icons/ads/plus.svg -- 0.24kb -> 0.24kb (1.22%)
/app/client/src/widgets/TextWidget/icon.svg -- 0.26kb -> 0.26kb (1.13%)
/app/client/src/assets/icons/ads/arrow-right-line.svg -- 0.26kb -> 0.26kb (1.13%)
/app/client/src/assets/icons/ads/up-arrow.svg -- 0.26kb -> 0.26kb (1.11%)
/app/client/src/assets/icons/ads/down-arrow.svg -- 0.29kb -> 0.28kb (1.02%)
/app/client/src/assets/icons/ads/dropdown.svg -- 0.23kb -> 0.23kb (0.83%)
/app/client/src/assets/icons/menu/run.svg -- 0.41kb -> 0.41kb (0.71%)
/app/client/src/assets/svg/no_entities_found.svg -- 0.98kb -> 0.98kb (0.7%)
/app/client/src/assets/icons/ads/snippet.svg -- 0.57kb -> 0.56kb (0.69%)
/app/client/src/assets/icons/ads/share-2.svg -- 0.46kb -> 0.46kb (0.63%)
/app/client/src/assets/icons/widget/recorder/recorder_default.svg -- 0.94kb -> 0.93kb (0.63%)
/app/client/src/assets/icons/widget/button-group.svg -- 1.29kb -> 1.28kb (0.53%)
/app/client/src/widgets/ButtonGroupWidget/icon.svg -- 1.29kb -> 1.28kb (0.53%)
/app/client/src/assets/icons/menu/beta.svg -- 1.00kb -> 1.00kb (0.49%)
/app/client/src/assets/svg/checkmark.svg -- 0.23kb -> 0.23kb (0.43%)
/app/client/src/assets/icons/menu/js-function.svg -- 0.91kb -> 0.91kb (0.43%)
/app/client/src/assets/icons/menu/js-group.svg -- 1.81kb -> 1.80kb (0.38%)
/app/client/src/assets/icons/ads/file-copy-line.svg -- 0.86kb -> 0.85kb (0.34%)
/app/client/src/assets/icons/control/color-picker.svg -- 1.46kb -> 1.45kb (0.34%)
/app/client/src/assets/icons/ads/git-commit-line.svg -- 0.88kb -> 0.88kb (0.33%)
/app/client/src/assets/icons/ads/key-2-line.svg -- 1.28kb -> 1.28kb (0.31%)
/app/client/src/assets/icons/menu/js-file.svg -- 2.33kb -> 2.32kb (0.29%)
/app/client/src/assets/icons/widget/recorder/recorder_no_permission.svg -- 1.63kb -> 1.63kb (0.24%)
/app/client/src/assets/icons/ads/support.svg -- 1.23kb -> 1.22kb (0.24%)
/app/client/src/assets/icons/ads/cloudy-line.svg -- 1.38kb -> 1.38kb (0.21%)
/app/client/src/assets/icons/ads/user-v2.svg -- 1.55kb -> 1.54kb (0.19%)
/app/client/src/assets/icons/ads/upload-v2.svg -- 1.76kb -> 1.75kb (0.17%)
/app/client/src/assets/icons/ads/shield-success.svg -- 3.03kb -> 3.03kb (0.13%)
/app/client/src/assets/icons/ads/shield-error.svg -- 3.03kb -> 3.03kb (0.13%)
/app/client/src/assets/icons/ads/git-branch.svg -- 2.80kb -> 2.80kb (0.1%)
/app/client/src/assets/svg/loader-2-fill.svg -- 3.78kb -> 3.78kb (0.1%)
/app/client/src/assets/icons/ads/gear.svg -- 3.23kb -> 3.23kb (0.09%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-11-19 09:43:30 +05:30
geekup-legodevops
d3a491f0b3
Add flow to use custom certificate if provided (#9106)
- Add sub-directory for user to put custom certificate to use inside container
- Add flow to check existing custom certificate & process to use it
- Add section Custom Certificate in README.md
2021-11-16 16:32:28 +05:30
Dipto Chakrabarty
58a37454b9
feat: add liveness Probe to k8s backend deployment manifest (#8039) 2021-11-16 15:55:07 +05:30
Shrikant Sharat Kandula
eadaa65251
Fix sessions being cleared after fat container is restarted (#9112) 2021-11-15 11:24:45 +05:30
Joshua Lund
a874b36b11
fix: Remove duplicate APPSMITH_MAIL_ENABLED env variable. Fixes #8852. (#8853) 2021-10-27 21:39:37 +05:30
Rafael Baldasso Audibert
0e22f26621
fix: Change "Allow Horizontal Scroll" text to "Allow scroll" (#8085)
* chore: Change "Allow Horizontal Scroll" to "Allow Scroll"

* chore: Hide option to choose scroll for pie chart

* fix: Fix prettier errors

* feat: Add migration to allowScroll for `CHART_WIDGET`s

Closes #4227

* fix: Fix chart widget prop recursively

Per https://github.com/appsmithorg/appsmith/pull/8085#discussion_r733442011
Closes #4227
2021-10-25 17:09:39 +05:30
Shrikant Sharat Kandula
d546f0114e
Add docker-compose file for use in AWS AMIs 2021-10-21 11:12:33 +05:30
geekup-legodevops
6cbe4b8faf
Config supervisord to write logs into log files (#8145) 2021-10-19 12:59:55 +05:30
Shrikant Sharat Kandula
8590ff3b75
Remove optimizely route (#8345) 2021-10-08 18:24:14 +05:30
Shrikant Sharat Kandula
5a0d04bce6
Apply env variable renaming automatically (#8217) 2021-10-05 20:49:22 +05:30
Shrikant Sharat Kandula
69015645d2
Fix telemetry docs link 2021-10-05 17:09:33 +05:30
geekup-legodevops
ae26d2c611
Helm charts for Appsmith fat container (#7343) 2021-10-02 11:46:07 +05:30
geekup-legodevops
f37f9451ef
feat: Support building Docker image for ARM arch (#7832) 2021-09-29 14:33:27 +05:30
geekup-legodevops
d0a59761e7
Fix docker.env generation in AMI init script (#7831) 2021-09-27 16:54:29 +05:30
Shrikant Sharat Kandula
40c00c3a98
Fix RTS routing in fat container (#7775) 2021-09-24 08:20:20 +05:30
Shrikant Sharat Kandula
f0a61285a6
docs: Fat container documentation fixes (#7207)
Added additional details about how to use the fat container, and how to manage / maintain it.

Also includes some refactorings that shouldn't affect the functionality significantly.
2021-09-14 19:01:06 +05:30
Shrikant Sharat Kandula
9b98621010
Restore a few missing fields on appsmith.user object (#7295)
With latest update, the following fields are unavailable on the `appsmith.user` object:

- `accountNonExpired`
- `accountNonLocked`
- `credentialsNonExpired`
- `isAnonymous`
- `isEnabled`

These fields are necessary for building applications and many apps were relying on these, despite them not being listed in the documentation at <https://docs.appsmith.com/framework-reference/appsmith#user>.
2021-09-09 15:34:02 +05:30
Trisha Anand
7526129a3a
feat: Adding APPSMITH_PLUGIN_MAX_RESPONSE_SIZE which can be configured as an environment variable to increase plugin response size (currently only supported for Postgres Plugin) (#7126)
* Adding `APPSMITH_PLUGIN_MAX_RESPONSE_SIZE` which can be configured as an environment variable to increase plugin response size (currently only supported for Postgres Plugin)

* Updated error message + added the environment variable to the template docker env files for new installations
2021-09-05 15:38:36 +00:00
imgbot[bot]
b96b90e634
[ImgBot] Optimize images (#7014)
*Total -- 456.38kb -> 360.25kb (21.06%)

/contributions/images/intellij_config_2.png -- 51.42kb -> 27.41kb (46.7%)
/contributions/images/intellij_config_1.png -- 43.47kb -> 25.29kb (41.83%)
/deploy/fat_container/images/appsmith_supervisord_ui.png -- 169.18kb -> 117.24kb (30.71%)
/app/client/src/assets/icons/comments/commentCursor.svg -- 0.87kb -> 0.65kb (25.92%)
/app/client/src/assets/icons/menu/function.svg -- 0.21kb -> 0.18kb (11.9%)
/app/client/src/assets/icons/control/border-radius-sharp.svg -- 0.16kb -> 0.15kb (4.91%)
/app/client/src/assets/icons/control/border-radius-circle.svg -- 0.17kb -> 0.16kb (4.68%)
/app/client/src/assets/icons/control/box-shadow-variant4.svg -- 0.80kb -> 0.76kb (4.28%)
/app/client/src/assets/icons/control/box-shadow-variant5.svg -- 0.80kb -> 0.77kb (4.15%)
/app/client/src/assets/icons/control/border-radius-rounded.svg -- 0.17kb -> 0.16kb (4.14%)
/app/client/src/assets/icons/control/arrow_forward.svg -- 0.32kb -> 0.31kb (3.95%)
/app/client/src/assets/icons/control/box-shadow-variant3.svg -- 0.83kb -> 0.79kb (3.79%)
/app/client/src/assets/icons/control/box-shadow-variant2.svg -- 0.83kb -> 0.80kb (3.53%)
/app/client/src/assets/icons/control/box-shadow-variant1.svg -- 0.90kb -> 0.87kb (3.25%)
/app/client/src/assets/images/comments-onboarding/thumbnails/step-2.jpg -- 18.17kb -> 17.63kb (2.97%)
/app/client/src/assets/icons/control/divider_cap_right.svg -- 0.20kb -> 0.19kb (2.5%)
/app/client/src/assets/images/comments-onboarding/thumbnails/step-1.jpg -- 18.53kb -> 18.10kb (2.32%)
/app/client/src/assets/icons/widget/menu-button.svg -- 0.24kb -> 0.23kb (2.07%)
/app/client/src/assets/icons/widget/menu.svg -- 0.31kb -> 0.31kb (1.86%)
/app/client/src/assets/icons/control/add-circle.svg -- 0.28kb -> 0.27kb (1.75%)
/app/client/src/assets/icons/control/line_dashed.svg -- 0.22kb -> 0.22kb (1.75%)
/app/client/src/assets/icons/ads/chevron-down.svg -- 0.18kb -> 0.18kb (1.61%)
/app/client/src/assets/icons/control/divider_cap_left.svg -- 0.21kb -> 0.21kb (1.39%)
/app/client/src/assets/icons/ads/column.svg -- 0.21kb -> 0.21kb (1.37%)
/app/client/src/assets/images/long-arrow-right.svg -- 0.66kb -> 0.65kb (1.33%)
/app/client/src/assets/icons/widget/checkbox-group.svg -- 0.55kb -> 0.54kb (1.25%)
/app/client/src/assets/icons/ads/arrow-left-1.svg -- 0.24kb -> 0.24kb (1.23%)
/app/client/src/assets/icons/widget/icon-button.svg -- 0.32kb -> 0.32kb (1.22%)
/app/client/src/assets/icons/ads/check.svg -- 0.24kb -> 0.24kb (1.22%)
/app/client/src/assets/icons/ads/link_2.svg -- 0.65kb -> 0.65kb (1.19%)
/app/client/src/assets/icons/control/copy2.svg -- 0.25kb -> 0.25kb (1.16%)
/app/client/src/assets/icons/control/cap_solid.svg -- 0.35kb -> 0.35kb (1.11%)
/app/client/src/assets/icons/menu/filter.svg -- 0.28kb -> 0.28kb (1.05%)
/app/client/src/assets/icons/ads/trending-flat.svg -- 0.29kb -> 0.29kb (1.01%)
/app/client/src/assets/icons/control/align_left.svg -- 0.31kb -> 0.31kb (0.95%)
/app/client/src/assets/icons/ads/tables.svg -- 0.35kb -> 0.34kb (0.85%)
/app/client/src/assets/icons/control/align_right.svg -- 0.37kb -> 0.37kb (0.79%)
/app/client/src/assets/images/Plus-logo.svg -- 0.54kb -> 0.53kb (0.73%)
/app/client/src/assets/icons/control/close-circle.svg -- 0.42kb -> 0.42kb (0.7%)
/app/client/src/assets/icons/menu/new-plus.svg -- 0.59kb -> 0.59kb (0.5%)
/app/client/src/assets/images/long-arrow-bottom.svg -- 0.61kb -> 0.60kb (0.48%)
/app/client/src/assets/icons/control/group.svg -- 0.65kb -> 0.64kb (0.45%)
/app/client/src/assets/icons/help/close_blue.svg -- 0.66kb -> 0.66kb (0.45%)
/app/client/src/assets/icons/ads/warning-triangle.svg -- 1.11kb -> 1.10kb (0.44%)
/app/client/src/assets/icons/menu/close-filter.svg -- 0.67kb -> 0.67kb (0.44%)
/app/client/src/assets/icons/control/box-shadow-none.svg -- 0.72kb -> 0.71kb (0.41%)
/app/client/src/assets/icons/ads/expand-more.svg -- 0.73kb -> 0.72kb (0.4%)
/app/client/src/assets/icons/widget/rating.svg -- 0.51kb -> 0.51kb (0.38%)
/app/client/src/assets/icons/ads/book-open-line.svg -- 0.79kb -> 0.79kb (0.37%)
/static/how-it-works.svg -- 121.37kb -> 120.94kb (0.35%)
/app/client/src/assets/icons/menu/play-snippet.svg -- 0.83kb -> 0.83kb (0.35%)
/app/client/src/assets/icons/menu/binding.svg -- 1.13kb -> 1.12kb (0.35%)
/app/client/src/assets/icons/menu/copy-snippet.svg -- 0.91kb -> 0.91kb (0.32%)
/app/client/src/assets/icons/control/cut.svg -- 1.86kb -> 1.86kb (0.16%)
/app/client/src/assets/icons/menu/link.svg -- 2.79kb -> 2.78kb (0.14%)
/app/client/src/assets/icons/ads/git-merge.svg -- 2.43kb -> 2.43kb (0.12%)
/app/client/src/assets/images/Curl-logo.svg -- 3.56kb -> 3.56kb (0.11%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2021-09-01 07:20:48 +00:00
geekup-legodevops
8119a74054
feat: Implement fat container for appsmith application (#6678)
Adds a Dockerfile along with accompanying scripts and definitions for building a fat Docker image. This image, when run as a container, will include the server, client, RTS, and necessary vendor services running all within.
2021-09-01 11:02:08 +05:30
Rishabh Saxena
4938371566
feat: env flag to disable intercom (#6937) 2021-08-30 22:11:55 +05:30
Shrikant Sharat Kandula
8edb278b75 Fix variables in docker.env.sh 2021-08-11 19:15:43 +05:30
Shrikant Sharat Kandula
e9e2df2c28
Store MongoDB creds in separate file from install.sh (#6499)
* Store MongoDB creds in separate file from install.sh

* Move MongoDB credentials to docker.env
2021-08-10 15:07:52 +05:30
Shrikant Sharat Kandula
b7fb9bd58b
Enable auto-start after VM restart (#6428) 2021-08-09 15:17:12 +05:30
Arpit Mohan
11ceb0f7f1
Updating k8s README to point to docs.appsmith.com 2021-08-05 10:08:27 +05:30
Shrikant Sharat Kandula
be80609c11
Use CentOS repo for RHEL installation (#6069) 2021-07-22 15:27:34 +05:30
Arpit Mohan
9a4b9c27cd
Locking mongo Docker container to 4.4.6 (#5950)
Mongo v5 has some issues with seeding data. Refer:  https://stackoverflow.com/questions/68392064/error-when-running-mongo-image-docker-entrypoint-sh-line-381
Hence, locking the mongo version to a known working tag till we have more information on the problem.
2021-07-19 13:39:37 +05:30
Shrikant Sharat Kandula
0bd58971e3
Fix OAuth endpoint prefix in k8s ingress configuration (#5837) 2021-07-15 16:23:06 +05:30
Nikhil Nandagopal
b54869c03e
Update install.sh 2021-07-14 19:58:49 +05:30
Shrikant Sharat Kandula
0c4787bf85
Fix YAML syntax in configmap for K8s 2021-07-02 17:23:52 +05:30
Shrikant Sharat Kandula
b051b010fc
Fix missing quotes in generated nginx conf 2021-07-01 11:54:54 +05:30
Pranav Kanade
dd9f8b362d
[Feature #3379] Added recaptcha for signup (#4701)
* temp commit

* using onsubmit to continue using action on form

* added recaptcha site key to env example file

* moved the recaptcha lib loading logic to signup page

* removed unnecessary edit

* handle the case where the recaptcha token is not provided as env var

* added proper env var config for client

* recaptcha config for ansible

* recaptcha config for heroku

* recaptcha config for k8s

* updated app.json

* fixed the typos

* added more description for env vars

* removed api key

* minor typo fix
2021-06-08 11:10:11 +05:30
Nidhi
aeda36f0e0
Disable cs url as an environment config (#4465) 2021-05-13 14:29:43 +05:30
Nidhi
ea451ef061
Add default configs for prod and tests (#4464)
* Added default cs config for prod and tests

* Env variable for new installations

* K8s defaults
2021-05-13 13:30:23 +05:30
Shrikant Sharat Kandula
0892f8975a
Fix fail when write permissions missing in pwd 2021-04-29 19:23:17 +05:30
Shrikant Sharat Kandula
379ea708fa
Fix password generation and OS case problems in install scripts (#4184)
* Fix password generation in k8s install script

* OS should always be lower case
2021-04-27 20:43:22 +05:30
Nikhil Nandagopal
806574a03f
Update install.sh 2021-04-26 16:21:54 +05:30
johyunkim
7f378731ce
Modify curl --data-raw option to --data (#3973) 2021-04-14 08:01:49 +05:30
Nidhi
f99d3a6c54
Added Appsmith codec size to template (#3729) 2021-03-29 18:08:37 +05:30
Shri
cc39259053
Increase client body size limit to 100M from 10M (#3553) 2021-03-22 17:20:38 +05:30
abhishek nayak
b915011556
Update base-install.sh
Fixed sudmo to sudo
2021-03-18 02:22:48 +05:30
Nikhil Nandagopal
1741f6eeb0
Update install.sh 2021-03-16 14:04:22 +05:30
Nikhil Nandagopal
775ac31aab
Update install.sh 2021-03-16 13:31:17 +05:30
Nikhil Nandagopal
7fca209fb9
Update install.sh 2021-03-16 13:25:37 +05:30
Arpit Mohan
8470366600
Adding quotes for telemetry flag in k8s config
For boolean values, no quotes leads to a weird state and k8s clusters don't boot
2021-03-11 07:57:54 +05:30
Arpit Mohan
9d1d9ed335
Adding cleanup flag to remove old images when appsmith auto-updates (#3219) 2021-02-25 18:19:16 +05:30
Nikhil Nandagopal
57270a1463
Update install.sh 2021-02-24 17:19:58 +05:30
Shrikant Sharat Kandula
b26706ca90
Fix input error on generating password and salt in install script (#3051)
* Fix potential input error on password generation

This happens on macOS systems when a different locale is
explicitly set.

* Don't use a masked variable name
2021-02-16 12:23:53 +05:30
Nikhil Nandagopal
15988dc507
Update install.sh 2021-02-04 15:47:06 +05:30
Nikhil Nandagopal
0c91eab5a8
Update install.sh 2021-02-04 15:46:07 +05:30
Nikhil Nandagopal
486a9da8dd updated all doc links 2021-02-03 20:45:16 +05:30
Tim Dillon
1c6252b719
Add Linux Mint support to install.sh (#2694) 2021-01-25 13:25:10 +05:30
Shrikant Sharat Kandula
828a9ae308
Add message re telemetry during installation (#2621) 2021-01-22 15:18:12 +05:30
Nikhil Nandagopal
bd5d3d1d0f
Update install.sh 2020-12-18 14:33:13 +05:30
Nidhi
42aae02522
Modified installation instructions (#2125) 2020-12-10 15:37:11 +05:30
geekup-legodevops
6b17bc5b11
Implementation of Ansible playbook (#1898) 2020-12-07 16:18:33 +05:30
geekup-legodevops
363cf8c54d
Update first-time-setup.sh (#2003) 2020-12-02 18:13:37 +05:30
imgbot[bot]
4fa2fd4ba6
[ImgBot] Optimize images (#1993)
*Total -- 307.73kb -> 177.70kb (42.25%)

/deploy/heroku/images/app-settings.png -- 215.56kb -> 118.43kb (45.06%)
/deploy/heroku/images/finish.png -- 33.21kb -> 19.53kb (41.19%)
/deploy/heroku/images/add-domain-form.png -- 29.12kb -> 18.04kb (38.06%)
/deploy/heroku/images/add-domain-button.png -- 29.37kb -> 21.23kb (27.71%)
/app/client/src/assets/icons/ads/upload.svg -- 0.47kb -> 0.47kb (0.62%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-12-02 11:50:10 +05:30
geekup-legodevops
d6b4a4077f
Add telemetry to Heroku deployments (#1952) 2020-12-02 10:09:12 +05:30
imgbot[bot]
f073698fcc
[ImgBot] Optimize images (#1928)
*Total -- 316.18kb -> 175.10kb (44.62%)

/deploy/aws_ami/images/system-log.png -- 136.77kb -> 73.60kb (46.19%)
/deploy/aws_ami/images/select-system-log.png -- 178.91kb -> 101.01kb (43.54%)
/app/client/src/assets/icons/ads/warning.svg -- 0.49kb -> 0.49kb (0.6%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-11-26 18:43:05 +05:30
geekup-legodevops
848e5edfea
Update aws ami boostrap script to create default user (#1918) 2020-11-26 14:10:42 +05:30
imgbot[bot]
3a758d6b00
[ImgBot] Optimize images (#1787)
*Total -- 307.26kb -> 177.23kb (42.32%)

/deploy/heroku/images/app-settings.png -- 215.56kb -> 118.43kb (45.06%)
/deploy/heroku/images/finish.png -- 33.21kb -> 19.53kb (41.19%)
/deploy/heroku/images/add-domain-form.png -- 29.12kb -> 18.04kb (38.06%)
/deploy/heroku/images/add-domain-button.png -- 29.37kb -> 21.23kb (27.71%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-11-18 19:50:24 +05:30
geekup-legodevops
d5480c4f34
Heroku Button implementation (#1721)
This change adds Heroku to the list of installation targets for Appsmith
2020-11-18 18:53:59 +05:30
Nikhil Nandagopal
e411df0a64
Added check so that existing installs don't get telemetry (#1698)
* Adding the segment key to the tagged release
* Also opting out of telemetry data in CI builds

Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2020-11-11 23:54:19 +05:30
Nikhil Nandagopal
add47fa98c
Update install.sh 2020-11-11 21:17:05 +05:30
Hetu Nandu
a51082fb54 Merge branch 'master' into release 2020-11-11 18:51:03 +05:30
Abhinav Jha
a4f652ce70
Add client-max-body-size directive to nginx https proxy (#1695) 2020-11-11 18:23:48 +05:30
imgbot[bot]
09b2bfa55f
[ImgBot] Optimize images (#1660)
*Total -- 3,132.67kb -> 1,706.91kb (45.51%)

/deploy/aws_ami/images/login-page.png -- 209.54kb -> 90.43kb (56.84%)
/deploy/aws_ami/images/appsmith_signup.png -- 217.38kb -> 94.88kb (56.35%)
/deploy/aws_ami/images/appsmith_dashboard.png -- 184.33kb -> 81.83kb (55.61%)
/deploy/aws_ami/images/ssl.png -- 26.86kb -> 12.76kb (52.5%)
/deploy/aws_ami/images/security-group-page.png -- 270.04kb -> 130.60kb (51.64%)
/deploy/aws_ami/images/inbound-rules.png -- 131.71kb -> 64.23kb (51.23%)
/deploy/aws_ami/images/preview.png -- 495.70kb -> 274.39kb (44.64%)
/deploy/aws_ami/images/aws-services.png -- 292.58kb -> 164.11kb (43.91%)
/deploy/aws_ami/images/ec2-detail.png -- 124.94kb -> 70.13kb (43.87%)
/deploy/aws_ami/images/create-key-pairs.png -- 149.16kb -> 83.74kb (43.86%)
/deploy/aws_ami/images/launch.png -- 254.69kb -> 145.40kb (42.91%)
/deploy/aws_ami/images/security-group.png -- 226.55kb -> 135.19kb (40.32%)
/deploy/aws_ami/images/AMI.png -- 121.38kb -> 72.91kb (39.93%)
/deploy/aws_ami/images/key-pairs.png -- 59.61kb -> 36.75kb (38.34%)
/deploy/aws_ami/images/search-ami.png -- 343.25kb -> 231.81kb (32.47%)
/deploy/aws_ami/images/custom-domain.png -- 24.98kb -> 17.74kb (28.98%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>

Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-11-09 22:52:20 +05:30
geekup-legodevops
f854d65592
AWS AMI configuration script (#1471)
* Add Aws AMI deployment guideline, fix configure-ssl.sh script

Co-authored-by: Minh Hieu <hieu.dv@geekup.io>
2020-11-09 07:53:06 +05:30
Nikhil Nandagopal
c503191420 telemetry information update 2020-11-06 14:55:08 +05:30
Arpit Mohan
a944680d50 Adding the disable telemetry config in the env example 2020-11-05 22:01:58 +05:30
Arpit Mohan
12f3a4182c Fixing the tests and adding the segment key in the yarn build
This key will be burned into the Docker image itself.

Also adding the disable telemetry link to the nginx_app template during self-hosted deploys.
2020-11-05 20:32:25 +05:30
Nikhil Nandagopal
274e2bc5cd updated telemetry check 2020-11-05 11:41:29 +05:30
Nikhil Nandagopal
7979dff9df updated installation script 2020-11-04 19:48:18 +05:30
Automated Github Action
2e52ddb6a6 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-30 05:06:43 +00:00
Arpit Mohan
39ab488193
Adding script for k8s deployment (#1359)
Also support feature for generating SSL certificate for domain when deploying on Kubernetes

Co-authored-by: GEEK Up Team <prj_legodevops@geekup.vn>
2020-10-30 09:51:05 +05:30
Automated Github Action
8cfe4bfb12 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-29 07:08:26 +00:00
Nikhil Nandagopal
3c0762934f
Update install.sh (#1449)
* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh

* Update install.sh
2020-10-29 12:04:43 +05:30
Arpit Mohan
ee683157a5 Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-10-28 11:10:06 +05:30
Arpit Mohan
40ddc9b3ee
Giving complete URL for the containers because it's required for auto update container (#1434) 2020-10-28 11:04:03 +05:30
Automated Github Action
50a0ead1a9 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-27 15:09:48 +00:00
Nikhil Nandagopal
64f097306e
Update install.sh (#1432) 2020-10-27 20:01:30 +05:30
Automated Github Action
0ff5b3f471 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-27 06:09:15 +00:00
Pau Garcia Quiles
44136b88a2
Add support to deploy on openSUSE and SUSE Linux Enterprise (#1383) 2020-10-27 10:44:03 +05:30
Automated Github Action
e034f1062e Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-26 18:08:24 +00:00
Nikhil Nandagopal
fa41bf4c19
Update text in install.sh (#1352) 2020-10-26 22:49:03 +05:30
Automated Github Action
8a7915f655 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-26 07:09:51 +00:00
James
dd42089440
Making errors more explicit in install.sh (#1384)
Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
2020-10-26 12:32:45 +05:30
Automated Github Action
fe0ac5f985 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-10-16 06:08:29 +00:00
Arpit Mohan
1b451daed5
Adding Debian to the list of supported OS (#700)
The paths to some of the software packages are different in Debian as compared to Ubuntu. Hence, we now take the OS into consideration before executing the `apt-get` command.

Also removing some of the extraneous outputs generated by Integromat.
2020-10-16 10:57:16 +05:30
Satbir Singh
ee47d34101 Merge branch 'release' of github.com:appsmithorg/appsmith into release 2020-10-12 18:32:29 +05:30
jack1142
ce3e39453c
Update deploy install script to use api64.ipify.org which supports IPv4 (#887)
Co-authored-by: Nikhil Nandagopal <nikhil.nandagopal@gmail.com>
2020-10-03 12:35:49 +05:30
Nikhil Nandagopal
a49ff07c7c
Update install.sh
fixes #889
2020-10-03 12:05:18 +05:30
Automated Github Action
fe6c5e0382 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-21 14:06:58 +00:00
Srijan R Shetty
8b8dcc050a
fix: use trap to run bye on errexit (#581) 2020-09-21 19:05:58 +05:30
Automated Github Action
42f213902c Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-19 12:08:20 +00:00
Nikhil Nandagopal
d028011d7c
Updated events to track user id as IP 2020-09-16 19:51:02 +05:30
Automated Github Action
cb1ddf611e Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-16 13:06:12 +00:00
Nikhil Nandagopal
afc2f8d1a5 cherry picked install script update from release 2020-09-16 18:26:21 +05:30
Nikhil Nandagopal
60043089ee
Feature/track install (#557)
* Bump http-proxy from 1.18.0 to 1.18.1 in /app/client (#538)

Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1.
- [Release notes](https://github.com/http-party/node-http-proxy/releases)
- [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/http-party/node-http-proxy/compare/1.18.0...1.18.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update install.sh

* Update install.sh

* Removed printing the ip

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
Co-authored-by: Nikhil Nandagopal <nikhil@appsmith.com>
2020-09-16 18:08:53 +05:30
Nikhil Nandagopal
3ec8b58cf8
Update install.sh 2020-09-16 16:00:27 +05:30
Automated Github Action
a2340ac029 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-16 10:06:23 +00:00
Nikhil Nandagopal
7ca32f0a01
Update install.sh 2020-09-16 15:27:44 +05:30
Automated Github Action
13bda5d82f Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-09 07:06:35 +00:00
Nikhil Nandagopal
62d87da51f
Update install.sh 2020-09-09 11:40:26 +05:30
Automated Github Action
2deae08243 Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-08 07:06:24 +00:00
Nikhil Nandagopal
83907b50b7
Update install.sh 2020-09-08 11:37:31 +05:30
Automated Github Action
fc0a12968d Merge branch 'release' of https://github.com/appsmithorg/appsmith into release 2020-09-07 17:42:20 +00:00
Nikhil Nandagopal
e214d77326
Update install.sh 2020-09-07 23:03:28 +05:30