43 Commits

Author SHA1 Message Date
Burak Yigit Kaya
b32de84d31
feat(smtp): Add hostname to SMTP (#1076)
Fixes #1045.

Co-authored-by: William Desportes <williamdes@wdes.fr>
Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
2021-08-26 10:40:22 -04:00
Kyle Filz
17b675c833
feat: Support custom CA roots (#1015)
Mount a certificate folder to local ca storage in containers,
and add update command to cron image's entrypoint.

Result of poking and prodding from getsentry/sentry#26851
2021-07-30 18:39:47 +03:00
ZHOU Cheng
bd6f573aa4
Add mail.use-ssl and mail.list-namespace option in example (#1040) 2021-07-21 15:50:16 -04:00
Burak Yigit Kaya
7138703a92
fix(config): Remove deprecated slack.legacy-app config from defaults (#886) 2021-03-15 14:12:51 -04:00
Burak Yigit Kaya
a1c0c1fd0c
ref: Stop building local images for Sentry services (#834)
We used to build local images for Sentry services to be able to
include required plugins in the image. With this change we instead
do this in a custom entrypoint script and use the volume `/data`
to store the plugins permanently.

This should resolve many issues people have around building local
images and pushing them to places like private repositories or swarm
clusters.

This is not 100% compatible with the old way but it should still be
a mostly transparent change to many folks.
2021-02-04 12:15:59 +00:00
Burak Yigit Kaya
c66a710182
fix(config): extended-permissions is on github-login, not app (#841)
Fixes the issue where we set an invalid option, `github-app.extended-permissions`, instead of the correct one, `github-login.extended-permissions`. Some people mentioned this warning earlier but never clearly enough to point that it was coming from our default settings suggestions.
2021-01-29 22:16:41 +03:00
Burak Yigit Kaya
ee53f18ad0
breaking: Remove Python 2 support (#833) 2021-01-20 15:28:14 +00:00
Chad Whitacre
a623e72e7e
Integrate with MaxMind out of the box (#766)
Integrate with MaxMind out of the box
2020-12-14 11:56:04 -05:00
Burak Yigit Kaya
f885eceaec
ref(py3): Remove SENTRY_PYTHON3 and -py3 versons (#764)
This is in preparation to make the PY3 version the default for Docker images and self-hosted. It is part **4/5**:

1. ~~Add `-py2` variants for the Python 2 build tags and introduce the `SENTRY_PYTHON2` env variable usage~~ (getsentry/sentry#22460)
2. ~~Switch getsentry/onpremise to Python 3 by default*, introducing the `SENTRY_PYTHON2` env var for Py2 builds via the `-py2` suffix~~ (getsentry/onpremise#763)
3. ~~Move the unsuffixed version of the builds to Python 3~~ (getsentry/sentry#22466)
4. **Remove the `SENTRY_PYTHON3` env var support and `-py3` prefix usage from getsentry/onpremise**
5. Remove tagging of `-py3` builds from getsentry/sentry
2020-12-05 01:46:20 +03:00
Burak Yigit Kaya
06fb0d75de
ref(py3): Make PY3 the default*, add SENTRY_PYTHON (#763)
This is in preparation to make the PY3 version the default* for Docker images and self-hosted. It is part **2/5**:

1. ~~Add `-py2` variants for the Python 2 build tags and introduce the `SENTRY_PYTHON2` env variable usage~~ (getsentry/sentry#22460)
2. __Switch getsentry/onpremise to Python 3 by default*, introducing the `SENTRY_PYTHON2` env var for Py2 builds via the `-py2` suffix__
3. Move the unsuffixed version of the builds to Python 3
4. Remove the `SENTRY_PYTHON3` env var support and `-py3` prefix usage from getsentry/onpremise
5. Remove tagging of `-py3` builds from here

_* this will only happen when item 3 above gets landed_
2020-12-04 22:43:36 +03:00
Dan Fuller
066bf262aa
feat: Allow metric alerts to be used in on-prem (#735)
This enables metric alerts for all on-prem users. We just need to start a few consumers and enable
the feature.
2020-11-13 13:39:11 +03:00
Burak Yigit Kaya
79c461328e
feat(search): Enable advanced search for self-hosted (#734)
Addresses https://forum.sentry.io/t/advanced-search-access-in-onpremise-install/11736?u=byk
2020-11-09 20:12:22 +03:00
Burak Yigit Kaya
1399be6a68
feat(py3): Add Python 3 support via SENTRY_PYTHON3 env variable (#702) 2020-10-14 21:54:55 +03:00
Burak Yigit Kaya
694977a349
ref(config): Move GitHub config over to config.yml (#697)
Follow up to getsentry/sentry#21041
2020-10-07 01:49:47 +03:00
Burak Yigit Kaya
acbaec64c0
build(python): Make default config py3 compatible (#692) 2020-10-03 02:44:24 +03:00
Burak Yigit Kaya
9b3aee1b1f
ref(self-hosted): More on-premise -> self-hosted (#669) 2020-09-09 22:30:27 +03:00
buffcode
9c8e2a29eb
typo: Example configuration comment (#620)
Fixes a small typo in a example configuration comment
2020-08-14 21:59:36 +03:00
Burak Yigit Kaya
86864d0edf
feat(compose): Add ability to use custom images for any Sentry service (#602)
This change allows one to override any Sentry service image, mostly for testing purposes. It also removes the SENTRY_VERSION variable as docker-compose makes it very hard to cascade default values for these. Next step is to have integration tests in getsentry/snuba and getsentry/relay (and possibly for getsentry/symbolicator) for getsentry/onpremise using this PR.

Also related: #596.
2020-07-17 15:02:45 +03:00
Mark Story
911f17f080
feat: Enable performance views for on-premise (#586)
The discover-basic and discover-query feature flags are enabled by
default in the built-in sentry/conf/server.py

Closes #582
2020-07-14 21:48:22 +03:00
Burak Yigit Kaya
a2507c10e0
fix(superuser): Don't set INTERNAL_IPS to Docker network (#581)
`INTERNAL_IPS` is used to check whether to allow superuser access or not. Limiting this to the Docker internal network makes it impossible for anyone to reach admin pages with on-premise setup.

This is a follow up to #572 and it fixes #577.
2020-07-13 19:21:52 +03:00
Burak Yigit Kaya
75fe6c073b
fix(ingest): Fix Relay auth issues and add e2e event ingestion test (#578)
This is a long-needed test that tests the whole pipeline from Nginx, Relay, to Kafka, and Snuba. The final missing piece is testing the Symbolicator integration.

This PR is also a follow up to #576 as it didn't solve the Relay issues fully (the earlier fix was a coincidence or is not as reliable as it seemed).

Fixes #486 (finally?).
2020-07-13 13:07:05 +03:00
Burak Yigit Kaya
1c9bfd9017
fix(relay): Fix relay cannot authenticate w/ Sentry (#576)
Fixes #486.

I finally figured out what the issue was: a missing `post-buffering` option to let Relay finish it's POST request for auth. This PR supersedes #543.
2020-07-11 00:08:14 +03:00
Burak Yigit Kaya
73213bc51f
ref(relay): Remove PK and rely on INTERNAL_IPS (#572)
This patch adds `INTERNAL_IPS` definition to `sentry.conf.py` by sniffing the network from eth0 and relies on this for trusted Relays instead of the ALLOWLISTED PKs. This removes the necessity of syncing Relay PKs to `sentry.conf.py`.

This PR needs getsentry/sentry#19798 to work.
2020-07-10 23:53:50 +03:00
Jack
9d44b99c55
fix(slack): Point to newer docs, better defaults (#571)
* added new default going forward uncommented
* added link to new guide
* added support for new signing-secret
* slight rejig to config
2020-07-10 21:10:05 +03:00
Jack
a01d013617
fix(slack): Add note about legacy app flag for newly created bots (#563)
Co-authored-by: jack <jackc@strangeanimals.com.au>
2020-07-08 15:56:49 +03:00
Burak Yigit Kaya
3522a12325
ref(sentry): Remove explicit Discover v2 flags (#523)
Discover v2 is now enabled by default: getsentry/sentry#19023
2020-06-01 23:34:54 +03:00
Burak Yigit Kaya
e8d8cda688
feat(versioning): Add SENTRY_VERSION env var for sentry, snuba, relay (#509)
This is in preparation for the upcoming CalVer transition. Introduces a general `$SENTRY_VERSION` env variable, defaulting to `latest`.
2020-05-23 06:24:44 +03:00
Burak Yigit Kaya
9f39e3cea1
fix(uwsgi): Make sure uWSGI talks proper HTTP/1.1 (#499)
This patch brings back the HTTP/1.1 related settings for uWSGI to fix #486 as apparently Relay tries to talk to Sentry Web with keep alives where uWSGI terminates the connection unexpectedly. It also ports some configs for uWSGI and nginx from single-tenant.
2020-05-22 16:12:20 +03:00
Mohamed Laradji
a74a0cb221
feat(slack-integration): add reference to guide (#484)
This PR simply adds a reference to the guide for setting up the Slack integration. The url was obtained from [#249](https://github.com/getsentry/onpremise/issues/249#issuecomment-547117033).
2020-05-09 23:11:11 +03:00
wodry
b467e1c5b5
docs(sentry): Fix typo in example Sentry config (#471) 2020-05-06 17:54:00 +03:00
Burak Yigit Kaya
74c0d4c257
fix(nginx): Fix proxy settings for Sentry (#463)
Fixes #447.

This patch should also fix issuer regarding large uploads such as minidumps by turning off any buffering.
2020-05-04 13:36:05 +03:00
Radu Woinaroski
e97da7c56f
feat(relay): Add Relay to onpremise installation (#421)
Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
2020-04-24 15:31:59 +03:00
Joe Adams
a7c5a32e36
Fix regression from #407 for requirements install (#411)
Changing the sentry/Dockerfile to remove the WORKDIR caused the RUN install requirements to use the wrong directory as context.
2020-03-16 21:08:51 +03:00
Burak Yigit Kaya
5f7c18bd18
feat(config): Mount config as a volume to Sentry (#407)
This follows the best-practice of mounting the config folder as a volume and removes the need to rebuild sentry images for config changes. Partially addresses #314.
2020-03-12 20:14:46 +03:00
Burak Yigit Kaya
f2876131fc
feat(discover): Enable Discover v2 (#398)
Also removes some obsolete feature switches.
2020-02-28 17:49:31 +03:00
Burak Yigit Kaya
fd9bd107df
fix(config): Enable http-chunked-input for UWSGI (#376)
Fixes getsentry/sentry#16596
2020-02-03 19:15:40 +03:00
Burak Yigit Kaya
bc6d3b47e2
feat(config): Have better GitHub config examples (#327)
Better defaults and guidance regarding GitHub app settings after getsentry/sentry#16550.
2020-01-24 21:08:41 +03:00
Simon Golms
73bf3f5ab4 fix(config): parse env variable as int (#359)
- parse SENTRY_EVENT_RETENTION_DAYS as integer in case it is defined as a string like in kubernetes
2020-01-24 21:04:39 +03:00
Chris Fuller
6587df3269
Changing search class name reference (#319)
Currently in sentry, both SnubaSearchBackend and EventsDatasetSnubaSearchBackend exist, and they are the same. 

This just points to the new (renamed) class so we can delete SnubaSearchBackend from sentry, as we only left it in to transition getsentry & onpremise.
2020-01-07 11:51:30 -05:00
Burak Yigit Kaya
3af61c8f55
fix(retention): Sync system.event-retention-days w/ cleanup (#308) 2019-12-30 23:07:17 +03:00
Burak Yigit Kaya
89e8053c40
fix(data): Use /data for persisting files and file caches (#295)
Moves sentry-data volume to /data mount point and sets all file-based storage settings to /data/files, /data/dsym-cache etc. accordingly. See 50ac550666/src/sentry/options/defaults.py (L45-L54)
2019-12-06 03:32:31 +03:00
Burak Yigit Kaya
83f52d1fe5
fix(tracing): Force-disable self-tracing on on-premise (#285) 2019-11-28 01:19:08 +03:00
Burak Yigit Kaya
5d064c2224
feat(sentry10): Make on-premise work for Sentry 10 (#220) 2019-11-12 02:18:59 +03:00