
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Secure administration panels via a single authentication point using Google as OAuth provider.
It handles multiple domains and multiple backends at once, taking care of forwarding proper HTTP headers (X-Forwarded-For / Proto) and introducing X-Forwarded-User
.
Also supports Google Apps domains.
Follow these steps to get a 'Project' setup.
Set the 'Authorized Redirect URI' to http://<secured_domain>/authproxy/google/return
Save the 'Client ID' and 'Client Secret', they will be required to setup the proxy. The configuration looks like:
[server]
bind_ip = "0.0.0.0"
bind_port = 80
# change this
cookie_secret = "monstah"
# google apps domain, or leave it blank
auth_domain = "mysite.com"
[domains]
[domains.example1]
host = "admin.mysite.com"
upstream = ["internal1.mysite.com", "internal2.mysite.com:8080"]
client_id = "__clientID__"
client_secret = "TWWWWz-EWWWWlxfX"
# multiple domains
[domains.example2]
host = "admin.secondsite.com"
upstream = ["internal3.mysite.com"]
client_id = "__clientID__"
client_secret = "TWWWWz-EWWWWlxfX"
Authproxy takes over the following routes; these will not be proxied to your application:
Login http://<secured_domain>/authproxy/google
Callback URL http://<secured_domain>/authproxy/return
User Check http://<secured_domain>/authproxy/user
Separate public site from administration via domain names. Ex: www.mysite.com (public) admin.mysite.com (private).
+---------------+
| |
admin.mysite.com | |
+---------+ client |
| | |
| | |
| +-------+-------+
| |
| |
+-------v-------+ |
| | |
| | |
| authproxy | | www.mysite.com
| | |
| | |
+-------+-------+ |
| |
| |
| +-------v-------+
| | |
| | |
+---------+ site |
| |
| |
+---------------+
This way you can either:
Use hostname constraint in your routes.
match '/admin' => 'secret_stuff#index', :constraints => { :subdomain => 'admin' }
node's http-proxy library downcase all headers prior forwarding. This works fine with most frameworks/http servers, but it is worth mentioning ;)
Inspired by bitly's google-auth-proxy and doorman.
MIT
FAQs
OAuth Proxy
We found that authproxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.