Nick Satterly
384e534211
Return end session URL to browser on logout from OIDC
2020-01-12 15:52:58 +01:00
Nick Satterly
c79943e690
Allow server to set default alert filter ( #1121 )
2020-01-09 17:52:53 +01:00
Jarno Huuskonen
4affdfb5da
Import ProxyFix from werkzeug.middleware.proxy_fix ( #1095 )
...
(werkzeug.contrib.fixers is deprecated: https://werkzeug.palletsprojects.com/en/0.15.x/contrib/fixers/ )
2019-11-28 21:23:42 +01:00
Jarno Huuskonen
856e3e64a3
1079( https://github.com/alerta/alerta/pull/1079 ) breaks changing ( #1111 )
...
user passwords with internal authentication (passwords are set to
[REDACTED]).
This commit moves user.update / user.update_attributes before
write_audit_trail, so password change works.
2019-11-28 20:31:45 +01:00
Nick Satterly
dbf045ff79
Move config endpoint to own file ( #1101 )
2019-10-14 23:32:21 +02:00
Nick Satterly
db244d5cb6
Fix default date/time formats ( #1100 )
2019-10-14 23:20:18 +02:00
Jarno Huuskonen
3f17f539a8
utils/audit.py:get_redacted_data: check that data is defined ( #1098 )
...
otherwise (at lease heartbeat delete) can fail with:
File "alerta/utils/audit.py", line 86, in get_redacted_data
if 'password' in data:
TypeError: argument of type 'NoneType' is not iterable
2019-10-13 10:03:08 +02:00
João Rebelo
3424ee6c6a
Changing order of hearbeat status evaluation to prioritize stales over slows ( #1087 )
2019-10-02 10:42:31 +02:00
Nick Satterly
e90758a5ff
Bump version to 7.4.1
2019-09-22 22:58:36 +02:00
Nick Satterly
4ec7abd26d
Move valid scope check to update perms view ( #1081 )
2019-09-22 22:57:32 +02:00
Nick Satterly
ca578133b2
Check for invalid scopes ( #1080 )
2019-09-22 13:39:19 +02:00
Nick Satterly
8f01cceffd
Redact sensitive data in audit logs ( #1079 )
2019-09-22 12:45:06 +02:00
Nick Satterly
64d4e9f7bc
Bump version to 7.4.0
2019-08-18 09:27:12 +02:00
Nick Satterly
24a0723753
Support MongoDB seedlist connection format ( #1070 )
2019-08-16 23:02:19 +02:00
Asher Foa
f967f34bcc
Fix monogdb deprecations ( #1067 )
2019-08-14 22:13:17 +02:00
fshaikh-eg
d4b7848fb0
Pass timeout to action process_action and take_action functions ( #1042 )
...
* added kwarg for timeout for process_action so it can be used in a plugin
* change default to 3 values expected and exception to 4 values
* changed time_out to timeout and fixed kwargs ordering
* implementing recommended improvements to get length of tuple
* updated exception logic
* fixed formatting
2019-08-13 20:01:15 +02:00
Asher Foa
177c788799
Run pre-commit as part of CI to prevent regressions ( #1062 )
...
* pyupgrade fixes.
https://github.com/asottile/pyupgrade#oserror-aliases
https://github.com/asottile/pyupgrade#encode-to-bytes-literals
* Fix exception related flake8 issues.
* Run pre-commit on code in travis
2019-08-11 09:36:44 +02:00
Asher Foa
4754c2c55e
Fix flake W504 issues and ignore flake W503 ( #1061 )
...
* Ignore W503 since it contradicts W504
* Fix flake8 W504 - line break after binary operator
2019-08-11 01:18:26 +02:00
Asher Foa
4101535e75
Mark regex strings as raw strings, properly escape strings. ( #1050 )
2019-08-11 00:27:23 +02:00
Nick Satterly
9de0f90bfc
Fix some pylint errors ( #1059 )
2019-08-11 00:02:53 +02:00
icy
1a78831249
models/key: doc.get("scopes") should return an empty list by default ( #1052 )
2019-08-10 23:24:21 +02:00
Asher Foa
2cb00a7b9b
iSort fixes ( #1058 )
...
* iSort fixes
* Remove unused import
2019-08-10 23:14:44 +02:00
Asher Foa
afd3593e0e
run autopep8 fix ( #1057 )
2019-08-10 23:14:11 +02:00
Asher Foa
c85260971e
Raven is deprecated, switch to sentry-sdk ( #1056 )
...
* Raven is deprecated, switch to sentry-sdk
* Try form first
* Remove None param
2019-08-10 20:43:57 +02:00
Asher Foa
30571ac214
Remove usage of six from codebase since Alerta is Python 3+ only. ( #1047 )
2019-08-05 10:10:05 +02:00
Asher Foa
ca90f8066d
Remove unused imports. ( #1045 )
2019-08-05 10:07:07 +02:00
Jarno Huuskonen
9b00e02b76
X-API-Key and Authorization: Bearer headers. ( #1039 )
...
* MS teams sends Authorization: Bearer header. To use X-API-Key header with
teams (webhook) we need to look for X-API-Key if Authorization header
doesn't have Key. (this was briefly discussed in alerta/alerta-contrib#280 )
* use startswith('Key ') instead of find('Key ').
2019-08-02 14:19:08 +02:00
Nick Satterly
22d1119bcf
Allow logfile format to be configurable ( #1038 )
2019-08-01 22:14:23 +02:00
Jarno Huuskonen
a8f5643dfa
telegram webhook: return error if alert_id is not found. ( #1036 )
2019-07-31 16:05:40 +02:00
Nick Satterly
8ef292113d
Bump version to 7.3.2
2019-07-29 21:43:45 +02:00
slyngshede
8499aebbc6
Allow LDAP servers to use a self signed certificate ( #1035 )
...
* Allow LDAP servers to use a self signed certificate
* Rename LDAP_ALLOW_SELF_SIGNED_CERT option
2019-07-28 20:05:20 +02:00
Nick Satterly
56967b11b0
Webhooks should use DEFAULT_NORMAL_SEVERITY config setting ( #1033 )
2019-07-26 17:32:06 +02:00
Nick Satterly
d12599ee5a
Bump version to 7.3.1
2019-07-24 00:31:53 +02:00
Nick Satterly
7ebf3364fb
Raise run time exception if severity config is wrong ( #1031 )
2019-07-23 23:44:04 +02:00
Nick Satterly
6a9fab8b1b
Bump version to 7.3.0
2019-07-05 23:49:38 +02:00
Nick Satterly
adecf85297
Fix SMTP settings for user emails ( #1023 )
2019-07-03 10:36:53 +02:00
sherif84
7db9ec56e5
Allowing for configurable metadata and casting Entity Descriptor to String to allow html repsponse ( #1022 )
2019-07-01 22:34:36 +02:00
Nick Satterly
f17f5b6a9e
Remove outdated psycopg 2.7.4 warning ( #1020 )
2019-06-30 16:59:29 +02:00
Nick Satterly
d382575f5c
Add support for globally-defined alert severity indicators ( #1019 )
2019-06-30 16:59:20 +02:00
maglo
6fdcc7abf4
Fix authorization logic for OIDC and SAML ( #1010 )
...
See #1009
Changes logic for oidc and saml authorization checks so that
the authorization fails if either of the authorization checks
fail.
2019-06-27 22:29:30 +02:00
Nick Satterly
de9688142f
Amazon Cognito OpenID Connect auth provider ( #1006 )
...
* Add support for Amazon Cognito OpenID Connect auth provider
* Add test for Amazon Cognito auth provider
* Pass known auth provider in bearer token
2019-06-20 20:20:17 +02:00
Nick Satterly
6099b5e2ac
Make oembed query database agnostic ( #1004 )
2019-06-19 16:09:06 +02:00
Nick Satterly
703cfd48df
Bump version to 7.2.11
2019-06-18 23:30:32 +02:00
Nick Satterly
5bf9da819c
PingFederate users can use OpenID Connect auth ( #999 )
2019-06-18 22:56:56 +02:00
Sam Hampton
f60223165e
Allow LDAP auth with domain/username format ( #1001 )
...
* Allow LDAP auth with domain/username format
* Tidy up logic to split login
2019-06-15 12:18:51 +02:00
Nick Satterly
63874045e9
Update SAML2 auth for web UI version 7 ( #998 )
2019-06-10 14:11:17 +02:00
Nick Satterly
98af87edf2
Change Azure auth provider to use Active Directory v2.0 endpoints ( #997 )
2019-06-07 20:41:09 +02:00
Nick Satterly
0e442dcaa5
Bump version to 7.2.10
2019-06-06 08:32:16 +02:00
Nick Satterly
494d50bda8
Update GitHub auth to work with v7 web UI ( #994 )
2019-06-05 20:25:45 +02:00
Nick Satterly
b57a2a68ef
Bump version to 7.2.9
2019-06-04 21:53:25 +02:00