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: docs/upgrade-notes.asciidoc
+26-12Lines changed: 26 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,32 @@ For Elastic Security release information, refer to {security-guide}/release-note
49
49
[float]
50
50
==== Kibana APIs
51
51
52
+
[discrete]
53
+
[[breaking-199656]]
54
+
.Removed all security v1 endpoints (9.0.0)
55
+
[%collapsible]
56
+
====
57
+
*Details* +
58
+
All `v1` Kibana security HTTP endpoints have been removed.
59
+
60
+
`GET /api/security/v1/logout` has been replaced by `GET /api/security/logout`
61
+
`GET /api/security/v1/oidc/implicit` has been replaced by `GET /api/security/oidc/implicit`
62
+
`GET /api/security/v1/oidc` has been replaced by GET `/api/security/oidc/callback`
63
+
`POST /api/security/v1/oidc` has been replaced by POST `/api/security/oidc/initiate_login`
64
+
`POST /api/security/v1/saml` has been replaced by POST `/api/security/saml/callback`
65
+
`GET /api/security/v1/me` has been removed with no replacement.
66
+
67
+
For more information, refer to {kibana-pull}199656[#199656].
68
+
69
+
*Impact* +
70
+
Any HTTP API calls to the `v1` Kibana security endpoints will fail with a 404 status code starting from version 9.0.0.
71
+
Third party OIDC and SAML identity providers configured with `v1` endpoints will no longer work.
72
+
73
+
*Action* +
74
+
Update any OIDC and SAML identity providers to reference the corresponding replacement endpoint listed above.
75
+
Remove references to the `/api/security/v1/me` endpoint from any automations, applications, tooling, and scripts.
76
+
====
77
+
52
78
[discrete]
53
79
[[breaking-193792]]
54
80
.Access to all internal APIs is blocked (9.0.0)
@@ -814,18 +840,6 @@ The legacy audit logger has been removed. For more information, refer to {kibana
814
840
Audit logs will be written to the default location in the new ECS format. To change the output file, filter events, and more, use the <<audit-logging-settings, audit logging settings>>.
The `/api/security/v1/saml` route has been removed and is reflected in the kibana.yml `server.xsrf.whitelist` setting, {es}, and the Identity Provider SAML settings. For more information, refer to {kibana-pull}47929[#47929]
824
-
825
-
*Impact* +
826
-
Use the `/api/security/saml/callback` route, or wait to upgrade to 8.0.0-alpha2 when the `/api/security/saml/callback` route breaking change is reverted.
827
-
====
828
-
829
843
[discrete]
830
844
[[breaking-41700]]
831
845
.[Security] Legacy browsers rejected by default. (8.0)
'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/logout" instead.',
70
+
values: { path },
71
+
}),
72
+
reason: {
73
+
type: 'migrate',
74
+
newApiMethod: 'GET',
75
+
newApiPath: '/api/security/logout',
76
+
},
77
+
},
78
+
}),
60
79
},
61
80
},
62
81
async(context,request,response)=>{
63
82
constserverBasePath=basePath.serverBasePath;
64
-
if(path==='/api/security/v1/logout'){
83
+
if(isDeprecated){
65
84
logger.warn(
66
-
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version, please use "${serverBasePath}/api/security/logout" URL instead.`,
85
+
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/logout" URL instead.`,
67
86
{tags: ['deprecation']}
68
87
);
69
88
}
@@ -96,7 +115,7 @@ export function defineCommonRoutes({
'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/oidc/implicit" instead.',
52
+
values: { path },
53
+
}),
54
+
reason: {
55
+
type: 'migrate',
56
+
newApiMethod: 'GET',
57
+
newApiPath: '/api/security/oidc/implicit',
58
+
},
59
+
},
60
+
}),
61
+
},
41
62
},
42
63
(context,request,response)=>{
43
64
constserverBasePath=basePath.serverBasePath;
44
-
if(path==='/api/security/v1/oidc/implicit'){
65
+
if(isDeprecated){
45
66
logger.warn(
46
-
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version, please use "${serverBasePath}/api/security/oidc/implicit" URL instead.`,
67
+
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/implicit" URL instead.`,
47
68
{tags: ['deprecation']}
48
69
);
49
70
}
@@ -84,6 +105,7 @@ export function defineOIDCRoutes({
84
105
85
106
// Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used.
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version, please use "${serverBasePath}/api/security/oidc/callback" URL instead.`,
176
+
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/callback" URL instead.`,
139
177
{tags: ['deprecation']}
140
178
);
141
179
}
@@ -150,7 +188,7 @@ export function defineOIDCRoutes({
150
188
};
151
189
}elseif(request.query.iss){
152
190
logger.warn(
153
-
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version, please use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`,
191
+
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`,
154
192
{tags: ['deprecation']}
155
193
);
156
194
// An HTTP GET request with a query parameter named `iss` as part of a 3rd party initiated authentication.
@@ -175,6 +213,7 @@ export function defineOIDCRoutes({
175
213
176
214
// Generate two identical routes with new and deprecated URL and issue a warning if route with deprecated URL is ever used.
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version, please use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`,
270
+
`The "${serverBasePath}${path}" URL is deprecated and will stop working in the next major version. Use "${serverBasePath}/api/security/oidc/initiate_login" URL for Third-Party Initiated login instead.`,
'The "{path}" URL is deprecated and will be removed in the next major version. Use "/api/security/saml/callback" instead.',
61
+
values: { path },
62
+
}),
63
+
reason: {
64
+
type: 'migrate',
65
+
newApiMethod: 'POST',
66
+
newApiPath: '/api/security/saml/callback',
67
+
},
68
+
},
69
+
}),
51
70
},
52
71
},
53
72
async(context,request,response)=>{
54
-
if(path==='/api/security/v1/saml'){
73
+
if(isDeprecated){
55
74
constserverBasePath=basePath.serverBasePath;
56
75
logger.warn(
57
76
// When authenticating using SAML we _expect_ to redirect to the SAML Identity provider.
58
-
`The "${serverBasePath}${path}" URL is deprecated and might stop working in a future release. Please use "${serverBasePath}/api/security/saml/callback" URL instead.`
77
+
`The "${serverBasePath}${path}" URL is deprecated and might stop working in a future release. Use "${serverBasePath}/api/security/saml/callback" URL instead.`
0 commit comments