Multiple 'Set-Cookie' header within Header struct (VirtualService)

オープン
#1,022 コメント 1 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@mbanikazemi がすでに取り組んでいます。

2019年9月20日 から。

評価

この issue はまだ評価されていません。

説明

area/networking kind/enhancement lifecycle/needs-triage

Describe the feature request
Regarding type Headers_HeaderOperations struct
https://github.com/istio/api/blob/master/networking/v1alpha3/virtual_service.pb.go#L793-L804

As the key of Add attribute reflects the header name, setting multiple keys/headers like Set-Cookie is impossible.
Is there a way to set multiple Set-Cookie headers like separating cookies definitions with , (tried and failed). This would require that istio would unfold this to separate header.

Describe alternatives you've considered

As I have the need to set 2 cookies right now I am doing kind of a workaround and set one within the Http struct and one into the Destination. This works and envoy delivers two separate Set-Cookie headers.

Affected product area (please put an X in all that apply)

[x] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience

Additional context

But we have the use case which would require to set more than 2 Cookies within one route.

主要言語
Go
スター
523
フォーク
623
平均マージ
5日 20時間
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

istio/api のほかの issue

istio/api の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。