Skip to content

OPUSVIER-4493: Unterstützung des secure Cookie-Flag#380

Open
saschaszott wants to merge 2 commits into
OPUS4:masterfrom
saschaszott:OPUSVIER-4493
Open

OPUSVIER-4493: Unterstützung des secure Cookie-Flag#380
saschaszott wants to merge 2 commits into
OPUS4:masterfrom
saschaszott:OPUSVIER-4493

Conversation

@saschaszott

Copy link
Copy Markdown
Collaborator

Dieses Flag darf nur aktiviert werden, wenn die OPUS-Instanz via HTTPS erreichbar ist. Ansonsten legt der Browser keinen Cookie an (und die Anmeldung funktioniert dann z.B. nicht mehr).

Dieser PR sollte nach dem Merge von PR #379 begutachtet werden (ich habe die Änderungen von PR #379 als Ausgangspunkt für diesen PR verwendet, um spätere Merge-Konflikte zu vermeiden).

Vermutlich müsste die OPUS4-Doku ergänzt werden.

@j3nsch j3nsch changed the base branch from 4.7.1 to 4.8 March 24, 2022 13:19
@j3nsch j3nsch changed the base branch from 4.8 to v4.9 April 24, 2023 12:48
@j3nsch j3nsch deleted the branch OPUS4:master January 30, 2025 12:59
@j3nsch j3nsch closed this Jan 30, 2025
@saschaszott

Copy link
Copy Markdown
Collaborator Author

Hallo @j3nsch , sind "secure" Cookies bereits in OPUS4.8 enthalten, so dass beim Betrieb von OPUS4 sichergestellt ist, dass der Browser keine Cookies über unverschlüsseltes HTTP an den Server sendet? Vielleicht könnte auch gleich noch SameSite=None (oder SameSite=Lax) als Cookie-Flag gesetzt werden.

@j3nsch j3nsch reopened this Feb 4, 2025
@j3nsch

j3nsch commented Feb 4, 2025

Copy link
Copy Markdown
Member

@saschaszott GitHub hatte vor etwa fünf Tagen technische Schwierigkeiten mit PRs und Issues bzw. vermutlich wurde der PR automatisch geschlossen, weil ich den Base Branch gelöscht habe.

@j3nsch j3nsch self-assigned this Apr 9, 2025
@j3nsch

j3nsch commented Mar 11, 2026

Copy link
Copy Markdown
Member

@sigwei, @alw-bsz Schaut mal bitte, ob Ihr im Betrieb secure-cookie verwendet. Ich kann den PR übernehmen, aber das ändert nichts an existierenden Instanzen. Ich bin mir auch nicht sicher wie gut das Installationsskript aktuell funktioniert. Es müsste mal wieder geprüft und überarbeitet werden. Empfehlungen für einen sicheren Betrieb von OPUS 4 sollten in die OPUS 4 Dokumentation eingehen oder auf GitHub für Application gepflegt werden.

@sigwei

sigwei commented Mar 12, 2026

Copy link
Copy Markdown

Wir haben jetzt mit dem Proxy-Server und Anubis secure-cookie mit HttpOnly=false und SameSite=None im Einsatz. Wie das vorher war, kann ich nicht mehr sagen. Es wird nicht in der apache.conf der Instanzen aktiviert.

@alw-bsz

alw-bsz commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

Wir verwenden:

"httpOnly": true,
"secure": true,

@j3nsch j3nsch added this to OPUS 4.10 Apr 14, 2026
@j3nsch j3nsch removed this from OPUS 4.9 Apr 14, 2026
@j3nsch j3nsch deleted the branch OPUS4:master April 14, 2026 20:34
@j3nsch j3nsch closed this Apr 14, 2026
@j3nsch j3nsch reopened this Apr 14, 2026
@j3nsch j3nsch changed the base branch from v4.9 to v4.9.1 April 14, 2026 20:51
@j3nsch j3nsch removed the status in OPUS 4.10 Apr 15, 2026
@j3nsch j3nsch removed this from OPUS 4.10 Apr 15, 2026
@j3nsch j3nsch deleted the branch OPUS4:master April 21, 2026 08:10
@j3nsch j3nsch closed this Apr 21, 2026
@j3nsch j3nsch reopened this Apr 21, 2026
@j3nsch j3nsch changed the base branch from v4.9.1 to v4.10 April 21, 2026 08:13
@j3nsch j3nsch changed the base branch from v4.10 to master May 12, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants