Skip to content

Commit

Permalink
Merge branch 'fb-DSSINTER-1044-CSRF_protection' into 'main'
Browse files Browse the repository at this point in the history
DSSINTER-1044: Custom header check added for CSRF protection + Some OpenAPI and Javadoc updates

See merge request signserver/signserver!297
  • Loading branch information
nimas committed Nov 23, 2023
2 parents a91dbf1 + 0cb5fc9 commit 7240b76
Show file tree
Hide file tree
Showing 7 changed files with 427 additions and 96 deletions.
132 changes: 104 additions & 28 deletions signserver/doc/openapi.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"required" : true
},
"responses" : {
"201" : {
"description" : "Worker added successfully",
"content" : {
"application/json" : { }
}
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -34,6 +40,16 @@
}
}
},
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
},
"409" : {
"description" : "Worker already exists.",
"content" : {
Expand All @@ -53,12 +69,6 @@
}
}
}
},
"201" : {
"description" : "Worker added successfully",
"content" : {
"application/json" : { }
}
}
}
}
Expand All @@ -78,6 +88,12 @@
}
},
"responses" : {
"200" : {
"description" : "Workers successfully reloaded",
"content" : {
"application/json" : { }
}
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -88,6 +104,16 @@
}
}
},
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
},
"404" : {
"description" : "No such worker",
"content" : {
Expand Down Expand Up @@ -152,8 +178,8 @@
}
}
},
"404" : {
"description" : "No such worker",
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -162,8 +188,8 @@
}
}
},
"503" : {
"description" : "Crypto Token not available",
"404" : {
"description" : "No such worker",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -182,6 +208,16 @@
}
}
},
"503" : {
"description" : "Crypto Token not available",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
},
"200" : {
"description" : "The response data",
"content" : {
Expand Down Expand Up @@ -220,6 +256,12 @@
"required" : true
},
"responses" : {
"200" : {
"description" : "Properties replaced successfully",
"content" : {
"application/json" : { }
}
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -230,8 +272,8 @@
}
}
},
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -250,10 +292,14 @@
}
}
},
"200" : {
"description" : "Worker properties successfully replaced",
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"content" : {
"application/json" : { }
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
}
}
Expand Down Expand Up @@ -282,6 +328,9 @@
"required" : true
},
"responses" : {
"201" : {
"description" : "Worker added successfully"
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -292,6 +341,16 @@
}
}
},
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
},
"409" : {
"description" : "Worker already exists.",
"content" : {
Expand All @@ -311,9 +370,6 @@
}
}
}
},
"201" : {
"description" : "Worker added successfully"
}
}
},
Expand All @@ -330,6 +386,12 @@
}
} ],
"responses" : {
"200" : {
"description" : "Worker removed successfully",
"content" : {
"application/json" : { }
}
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -350,8 +412,8 @@
}
}
},
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -360,10 +422,14 @@
}
}
},
"200" : {
"description" : "Worker removed successfully",
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"content" : {
"application/json" : { }
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
}
}
Expand Down Expand Up @@ -392,6 +458,12 @@
"required" : true
},
"responses" : {
"200" : {
"description" : "Worker properties successfully updated",
"content" : {
"application/json" : { }
}
},
"400" : {
"description" : "Bad request from the client",
"content" : {
Expand All @@ -402,8 +474,8 @@
}
}
},
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"403" : {
"description" : "Access is forbidden!",
"content" : {
"application/json" : {
"schema" : {
Expand All @@ -412,10 +484,14 @@
}
}
},
"200" : {
"description" : "Worker properties successfully updated",
"500" : {
"description" : "The server were unable to process the request. See server-side logs for more details.",
"content" : {
"application/json" : { }
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ErrorMessage"
}
}
}
}
}
Expand Down
Loading

0 comments on commit 7240b76

Please sign in to comment.