Commit Graph

3261 Commits

Author SHA1 Message Date
Zhang Zhongyu 304dfa3333
Merge pull request #57 from actix/master
Provide impl<T> From<Arc<T>> for Data<T> (#1509)
2020-05-16 21:24:52 +08:00
Sven Allers 201090d7a2
Provide impl<T> From<Arc<T>> for Data<T> (#1509) 2020-05-16 00:27:03 +01:00
Zhang Zhongyu 4c4f15e4fc
Merge pull request #56 from actix/master
Fix audit issue logging by default peer address (#1485)
2020-05-15 13:26:18 +08:00
pando85 4fc99d4a6f
Fix audit issue logging by default peer address (#1485)
* Fix audit issue logging by default peer address

By default log format include remote address that is taken from headers.
This is very easy to replace making log untrusted.

Changing default log format value `%a` to peer address we are getting
this trusted data always. Also, remote address option is maintianed and
relegated to `%{r}a` value.

Related  kanidm/kanidm#191.

* Rename peer/remote to remote_addr/realip_remote_addr

Change names to avoid naming confusions. I choose this accord to Nginx
variables and
[ngx_http_realip_module](https://nginx.org/en/docs/http/ngx_http_realip_module.html).

Add more specific documentation about security concerns of using Real IP
in logger.

* Rename security advertise header in doc

* Add fix audit issue logging by default peer adress to changelog

Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-05-15 09:07:27 +09:00
Zhang Zhongyu 0e6e4ef09c
Merge pull request #55 from actix/master
actix#1506
2020-05-14 08:47:46 +08:00
Yuki Okushi 92ce975d87
Merge pull request #1506 from actix/chore/bump-140
bump msrv to 1.40
2020-05-13 23:46:13 +09:00
Rob Ede 996f1d7eae
bump msrv in ci and readme 2020-05-13 01:57:37 +01:00
Zhang Zhongyu 15423c31b4
Merge pull request #54 from actix/master
support parsing of SameSite=None (#1503)
2020-05-13 08:35:32 +08:00
Takeru Sato 63864ecf9e
support parsing of SameSite=None (#1503) 2020-05-12 17:48:35 +01:00
Zhang Zhongyu 71d2e9e516
Merge pull request #53 from actix/master
actix#1486
2020-05-09 10:02:16 +08:00
Yuki Okushi bbd4d19830
Merge pull request #1486 from actix/feat/data-cascade
allow parent data containers to be accessed from child scopes
2020-05-09 09:40:25 +09:00
Rob Ede 879cad9422
allow parent data containers to be accessed from child scopes 2020-05-09 00:31:26 +01:00
Zhang Zhongyu 6973bcbeb3
Merge pull request #52 from actix/master
很多修改
2020-05-08 08:58:17 +08:00
Yuki Okushi 6e8ff5c905
Merge pull request #1495 from JohnTitor/new-web
actix-web: Bump up to 3.0.0-alpha.2
2020-05-08 07:28:18 +09:00
Yuki Okushi b66c3083a5
Update the `actix-web` dependency to 3.0.0-alpha.2 2020-05-08 06:46:42 +09:00
Yuki Okushi b6b3481c6f
web: Bump up to 3.0.0-alpha.2 2020-05-08 06:46:13 +09:00
Yuki Okushi 574714d156
Merge pull request #1494 from JohnTitor/new-actors
actors: Bump up to 3.0.0-alpha.1
2020-05-08 06:17:15 +09:00
Yuki Okushi 54abf356d4
actors: Bump up to 3.0.0-alpha.1 2020-05-08 03:33:29 +09:00
Yuki Okushi 9cb3b0ef58
Merge pull request #1493 from JohnTitor/http-next
http: Bump up to 2.0.0-alpha.3
2020-05-08 03:09:52 +09:00
Yuki Okushi 9d0c80b6ce
Update actix-http deps 2020-05-08 02:35:45 +09:00
Yuki Okushi 0bc4a5e703
http: Bump up to 2.0.0-alpha.3 2020-05-08 02:35:45 +09:00
Rob Ede 9d94fb91b2
correct spelling of ConnectError::Unresolved (#1487)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-08 02:26:48 +09:00
Quentin de Quelen 9164ed1f0c
add resource middleware on actix-web-codegen (#1467)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-07 18:31:12 +09:00
Zhang Zhongyu 7487ac4914
Merge pull request #51 from actix/master
conditional test compilation [range, charset] (#1483)
2020-05-04 08:39:46 +08:00
Rob Ede b521e9b221
conditional test compilation [range, charset] (#1483)
* conditionally compile range and charset tests

* remove deprecated try macros

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-03 22:33:29 +09:00
Zhang Zhongyu b42c23486c
Merge pull request #50 from actix/master
refactor h1 status line helper to remove unsafe usage (#1484)
2020-05-03 17:55:24 +08:00
Rob Ede f37cb6dd0b
refactor h1 status line helper to remove unsafe usage (#1484)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-03 17:37:40 +09:00
Zhang Zhongyu c44548e434
Merge pull request #49 from actix/master
#1465 #1473 #1476 #1481
2020-05-03 01:26:22 +08:00
Mikail Bagishov d5ceae2074
Replace deprecated now with now_utc (#1481)
* Replace deprecated now with now_utc

* Update doctest
2020-05-02 10:14:50 +01:00
Rob Ede c27d3fad8e
clarify resource/scope app data overriding (#1476)
* relocate FnDataFactory

* clarify app data overriding in Scope and Resource

Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-04-30 02:20:47 +09:00
Rob Ede bb17280f51
simplify data factory future polling (#1473)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-04-29 15:38:53 +09:00
Huston Bokinsky b047413b39
Small ws codec fix (#1465)
* Small ws codec fix

* Update actix-http/Changes.md

Co-authored-by: Huston Bokinsky <huston@deepgram.com>
2020-04-29 11:13:09 +09:00
Zhang Zhongyu b56764c1e0
Merge pull request #48 from actix/master
Fix typos in MIGRATION.md (#1470)
2020-04-23 08:35:34 +08:00
Huy ce24630d31
Fix typos in MIGRATION.md (#1470)
* Fix typos in MIGRATION.md

Those are `crate` not `create`

* Update MIGRATION.md
2020-04-23 03:39:09 +09:00
Zhang Zhongyu 457cc74c5f
Merge pull request #47 from actix/master
Merge pull request actix#1463
2020-04-21 14:39:19 +08:00
Yuki Okushi 751253f23e
Merge pull request #1463 from actix/fix/doc-typos
fix spelling errors in doc comments
2020-04-21 13:47:03 +09:00
Rob Ede 5b0f7fff69
fix spelling errors in doc comments 2020-04-21 04:09:35 +01:00
Zhang Zhongyu 94557c00ee
Merge pull request #46 from actix/master
Merge pull request actix#1452
2020-04-16 09:12:36 +08:00
Yuki Okushi 54619cb680
actix-http: Remove `failure` support (#1449) 2020-04-16 06:54:34 +09:00
Yuki Okushi 5b36381cb0
Merge pull request #1452 from actix/fix/default-service-data
set data container on default service calls
2020-04-16 06:01:56 +09:00
Rob Ede 45e2e40140
set data container on default service calls
closes #1450
2020-04-14 02:33:19 +01:00
Zhang Zhongyu afbd1617a4
Merge pull request #45 from actix/master
Merge pull request actix#1451
2020-04-13 08:57:04 +08:00
Yuki Okushi df3f722589
Merge pull request #1451 from actix/cache
Remove cache config from GHA workflows
2020-04-13 06:06:45 +09:00
Yuki Okushi e7ba871bbf
Remove cache config from GHA workflows 2020-04-13 03:42:44 +09:00
Zhang Zhongyu 1c566cbc2d
Merge pull request #44 from actix/master
Merge pull request actix#1442
2020-04-09 08:33:23 +08:00
Yuki Okushi ebc2e67015
Merge pull request #1442 from JohnTitor/workspace-doc
Deploy all the workspace crates' docs
2020-04-09 00:48:08 +09:00
Yuki Okushi 74ddc852c8
Tweak README 2020-04-08 04:48:01 +09:00
Yuki Okushi dfaa330a94
Deploy all the workspace crates' docs 2020-04-08 04:42:38 +09:00
Zhang Zhongyu 92ac922f88
Merge pull request #43 from actix/master
Add convenience functions for testing (#1401)
2020-04-06 08:40:46 +08:00
Tore Pettersen 0ad02ee0e0
Add convenience functions for testing (#1401)
* Add convenience functions for testing

* Fix remarks from PR and add tests

* Add unpin to read_json_body

* Update changelog
2020-04-06 04:12:44 +09:00