You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: db/database.go
+40-1Lines changed: 40 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,6 @@ type DatabaseContext struct {
154
154
MetadataKeys*base.MetadataKeys// Factory to generate metadata document keys
155
155
RequireResync base.ScopeAndCollectionNames// Collections requiring resync before database can go online
156
156
RequireAttachmentMigration base.ScopeAndCollectionNames// Collections that require the attachment migration background task to run against
157
-
CORS*auth.CORSConfig// CORS configuration
158
157
EnableMoubool// Write _mou xattr when performing metadata-only update. Set based on bucket capability on connect
159
158
WasInitializedSynchronouslybool// true if the database was initialized synchronously
160
159
BroadcastSlowMode atomic.Bool// bool to indicate if a slower ticker value should be used to notify changes feeds of changes
@@ -164,6 +163,7 @@ type DatabaseContext struct {
164
163
CachedCCVStartingCas*base.VBucketCAS// If set, the cached value of the CCV starting CAS value to avoid repeated lookups
165
164
CachedCCVEnabled atomic.Bool// If set, the cached value of the CCV Enabled flag (this is not expected to transition from true->false, but could go false->true)
166
165
numVBucketsuint16// Number of vbuckets in the bucket
166
+
sameSiteCookieMode http.SameSite
167
167
}
168
168
169
169
typeScopestruct {
@@ -216,6 +216,7 @@ type DatabaseContextOptions struct {
216
216
ImportVersionuint64// Version included in import DCP checkpoints, incremented when collections added to db
217
217
DisablePublicAllDocsbool// Disable public access to the _all_docs endpoint for this database
218
218
StoreLegacyRevTreeData*bool// Whether to store additional data for legacy rev tree support in delta sync and replication backup revs
219
+
CORS auth.CORSConfig// An empty CORS configuration is considered to have no CORS enabled
219
220
}
220
221
221
222
typeConfigPrincipalsstruct {
@@ -278,6 +279,7 @@ type UnsupportedOptions struct {
278
279
KVBufferSizeint`json:"kv_buffer,omitempty"`// Enables user to set their own KV pool buffer
279
280
BlipSendDocsWithChannelRemovalbool`json:"blip_send_docs_with_channel_removal,omitempty"`// Enables sending docs with channel removals using channel filters
280
281
RejectWritesWithSkippedSequencesbool`json:"reject_writes_with_skipped_sequences,omitempty"`// Reject writes if there are skipped sequences in the database
282
+
SameSiteCookie*string`json:"same_site_cookie,omitempty"`// Sets the SameSite attribute on session cookies.
returnhttp.SameSiteDefaultMode, fmt.Errorf("unsupported_options.same_site_cookie option %q is not valid, choices are \"Lax\", \"Strict\", and \"None", *o.SameSiteCookie)
Copy file name to clipboardExpand all lines: docs/api/components/schemas.yaml
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1698,6 +1698,15 @@ Database:
1698
1698
remote_config_tls_skip_verify:
1699
1699
description: Enable self-signed certificates for external JavaScript load.
1700
1700
type: boolean
1701
+
same_site_cookie:
1702
+
description: |-
1703
+
Override the session cookie SameSite behavior. By default, if CORS is enabled, a session cookie will have SameSite:None. `Default` will omit any SameSite option from the cookie.
1704
+
type: string
1705
+
enum:
1706
+
- "Default"
1707
+
- "Lax"
1708
+
- "None"
1709
+
- "Strict"
1701
1710
sgr_tls_skip_verify:
1702
1711
description: Enable self-signed certificates for SG-replicate testing.
0 commit comments