Commit 4a1464b
Add authentication and SSL/TLS to ServiceControl (#5197)
* Add initial authentication supporting JWT tokens, OpenID Connect, OAuth2.0
* Add ServicePulse-specific OIDC configuration and endpoint
* Update src/ServiceControl/App.config
Co-authored-by: Warwick Schroeder <warwick.schroeder@particular.net>
* Update src/ServiceControl/App.config
Co-authored-by: Warwick Schroeder <warwick.schroeder@particular.net>
* Remove SP enabled flag
* Update approved routes and settings
* Allow multiple api scopes, or none. Add client audience config setting
* Add auth to other instances
* Rename to ApiScopes
* Add additional options for flexible and secure hosting; SSL/TLS, Reverse Proxy, Direct HTTPS, CORS
* Remove previously added rate limit for anon api
* Forward auth header
* Allow Anon for CheckRemotes
* Remove unused rate limiting middleware
* MapControllers correctly
* Upgrade package
* Update local testing files. Add debug endpoint for dev.
* Update reverse proxy test file
* Update HTTPS config and documentation
* Update documentation for authentication
* Add forward header tests for all instances. Add links to additional documentation in readme
* Add more manual testing scenarios to docs. Rename files.
* Clean doc formatting. Update hosting guide.
* Update internal auth docs. Fix issue with server-to-server remote instance checks with auth.
* Move public docs content to the docs PR
* Clean servicecontrol hosting guide. Move content to docs RP (WIP)
* Move public docs into docs PR
* Clean forward header tests and add comments
* Fix build issues
* fix breaking tests. Add unit tests for security settings
* Add security acceptance tests for Primary instance
* Add CORS acceptance tests to audit and monitoring.
* Add HTTPS acceptance tests to audit and monitoring
* Add OpenID Conntect acceptance tests to audit and monitoring
* Move some documentation to public docs
* Small tweaks off review
* Add comments. Update security setting validation.
* Update tests off of review
* Fix API approval tests
* Update from feedback
* Updates from testing. Add additional logging to support testing. Updates from feedback.
* Remove sensitive data from diagnostics file
* add MD doc file back in
* Remove some details from debug logs.
* Clean logging. Fix issue with Platform Connector when auth is enabled.
* Undo making the connection controller anonymous. This is not required as ServicePulse should be the only client using it.
* Forward Authorization header to remote instances
* Update security package to .NET10
* Resolve new obsolete APIs due to .NET10 upgrade
* Fix auth issue with service-to-service call audit-count
---------
Co-authored-by: Jason Taylor <hello@jasontaylor.dev>
Co-authored-by: Jason Taylor <1988321+jasontaylordev@users.noreply.github.com>
Co-authored-by: Warwick Schroeder <warwick@exia-it.com>1 parent ac20763 commit 4a1464b
148 files changed
Lines changed: 11389 additions & 78 deletions
File tree
- docs
- src
- ServiceControl.AcceptanceTesting
- Cors
- ForwardedHeaders
- Https
- OpenIdConnect
- ServiceControl.AcceptanceTests
- Security
- Cors
- ForwardedHeaders
- Https
- OpenIdConnect
- TestSupport
- ServiceControl.Audit.AcceptanceTests
- Security
- Cors
- ForwardedHeaders
- Https
- OpenIdConnect
- TestSupport
- ServiceControl.Audit.UnitTests/ApprovalFiles
- ServiceControl.Audit
- Auditing/MessagesView
- Connection
- Infrastructure
- Hosting/Commands
- Settings
- WebApi
- ServiceControl.Hosting
- Auth
- ForwardedHeaders
- Https
- ServiceControl.Infrastructure
- ServiceControl.Monitoring.AcceptanceTests
- Security
- Cors
- ForwardedHeaders
- Https
- OpenIdConnect
- TestSupport
- ServiceControl.Monitoring.UnitTests/ApprovalFiles
- ServiceControl.Monitoring
- Hosting/Commands
- Http
- ServiceControl.UnitTests
- ApprovalFiles
- Infrastructure/Settings
- ScatterGather
- ServiceControl
- Authentication
- CompositeViews
- AuditCounts
- Messages
- Connection
- Hosting/Commands
- Infrastructure
- Settings
- WebApi
- Monitoring/Web
- Operations
- SagaAudit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
59 | 75 | | |
60 | 76 | | |
61 | 77 | | |
| |||
0 commit comments