Title: Setting/passing password as cookie is not working anymore · Issue #1189 · coder/code-server · GitHub
Open Graph Title: Setting/passing password as cookie is not working anymore · Issue #1189 · coder/code-server
X Title: Setting/passing password as cookie is not working anymore · Issue #1189 · coder/code-server
Description: For security reason, I run code-server with a custom password. On the Apache server, I set the password cookie on the RequestHeader. It's working fine on the first and second official V2 releases but not anymore on the newer releases. It...
Open Graph Description: For security reason, I run code-server with a custom password. On the Apache server, I set the password cookie on the RequestHeader. It's working fine on the first and second official V2 releases b...
X Description: For security reason, I run code-server with a custom password. On the Apache server, I set the password cookie on the RequestHeader. It's working fine on the first and second official V2 releas...
Opengraph URL: https://github.com/coder/code-server/issues/1189
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting/passing password as cookie is not working anymore","articleBody":"For security reason, I run code-server with a custom password. On the Apache server, I set the password cookie on the RequestHeader. It's working fine on the first and second official V2 releases but not anymore on the newer releases. It keeps redirecting to /login even though the password cookie is already there. Also, when it redirects, can code-server updated to redirect to ./login not /login? Proxy server might forward a directory to code-server, sending user back to /login is returning 404. Can the problems be fixed or implement basic authentication on code-server?\r\n\r\nSet password cookie for requests\r\n\r\n`RequestHeader set Cookie \"password=password\"\r\nRequestHeader set X-Forwarded-Proto https\r\nRequestHeader set X-Forwarded-Port 443\r\n\r\nRewriteCond %{HTTP:Upgrade} =websocket [NC]\r\nRewriteRule /drupal/(.*) ws://ide.drupal:8080/$1 [P,L]\r\nProxyPass /drupal/ http://ide.drupal:8080/ nocanon\r\nProxyPassReverse /drupal/ http://ide.drupal:8080/`\r\n\r\n\r\nRun code-server with custom password\r\n\r\n`PASSWORD='password' /opt/vscode/code-server --auth password --port 8080 /www`","author":{"url":"https://github.com/weikai","@type":"Person","name":"weikai"},"datePublished":"2019-11-20T15:42:56Z","url":"https://github.com/coder/code-server/issues/1189"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:00ed6298-ade4-457e-0ab8-0397c14c5dc9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D528:172B92:31CB40E:425A3BB:6B01EFC9 |
| html-safe-nonce | a2295231fdb7806b5919361fb2e2b646807624a2446bb50efb87060fff58907f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTI4OjE3MkI5MjozMUNCNDBFOjQyNUEzQkI6NkIwMUVGQzkiLCJ2aXNpdG9yX2lkIjoiNjkyOTM2NTg2OTEwOTgzMzY3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 98a0a48c298d1a4c2e8385e98f2c75cdddaedd9e08217c4d6690a9572a568590 |
| hovercard-subject-tag | issue:525885723 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/code-server/1189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b97da22a34321e01fa293e6cbc074522b7651f891e00c5b417e0315c7aa4cca/coder/code-server/issues/1189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b97da22a34321e01fa293e6cbc074522b7651f891e00c5b417e0315c7aa4cca/coder/code-server/issues/1189 |
| og:image:alt | For security reason, I run code-server with a custom password. On the Apache server, I set the password cookie on the RequestHeader. It's working fine on the first and second official V2 releases b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weikai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width