diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 12:10:20 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 12:10:20 +0000 |
commit | 9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (patch) | |
tree | 348438fb6eb4219841571786b0826736d1d3e016 /doc | |
parent | 4903f95b04db58edc1931ec917d2313c916a06b2 (diff) | |
download | gitlab-ce-9ad806210531e19c851a69cbcdaf9ed8bd6cb478.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc')
-rw-r--r-- | doc/security/user_file_uploads.md | 24 | ||||
-rw-r--r-- | doc/user/clusters/agent/gitops/flux_tutorial.md | 2 |
2 files changed, 25 insertions, 1 deletions
diff --git a/doc/security/user_file_uploads.md b/doc/security/user_file_uploads.md index db2948a8bd5..80f4b1a8a2a 100644 --- a/doc/security/user_file_uploads.md +++ b/doc/security/user_file_uploads.md @@ -45,6 +45,30 @@ To configure authentication settings for all media files: 1. Scroll to **Project visibility** and select **Require authentication to view media files**. You cannot select this option for projects with **Public** visibility. +## Delete uploaded files + +> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92791) in GitLab 15.3. + +You should delete an uploaded file when that file contains sensitive or confidential information. When you have deleted that file, users cannot access the file and the direct URL returns a 404 error. + +Project Owners and Maintainers can use the [interactive GraphiQL explorer](../api/graphql/index.md#graphiql) to access a [GraphQL endpoint](../api/graphql/reference/index.md#mutationuploaddelete) and delete an uploaded file. + +For example: + +```graphql +mutation{ + uploadDelete(input: { projectPath: "<path/to/project>", secret: "<32-character-id>" , filename: "<filename>" }) { + upload { + id + size + path + } + errors + } +} +``` + +Project members that do not have the Owner or Maintainer role cannot access this GraphQL endpoint. <!-- ## Troubleshooting Include any troubleshooting steps that you can foresee. If you know beforehand what issues diff --git a/doc/user/clusters/agent/gitops/flux_tutorial.md b/doc/user/clusters/agent/gitops/flux_tutorial.md index b3d71e66dea..3c30e466110 100644 --- a/doc/user/clusters/agent/gitops/flux_tutorial.md +++ b/doc/user/clusters/agent/gitops/flux_tutorial.md @@ -112,7 +112,7 @@ spec: Congratulations! You now have a manifest repository, a deploy token, and a secret generated directly on your cluster. -### Configure Flux to sync your manifests +## Configure Flux to sync your manifests Next, tell `flux-config` to sync with the `web-app-manifests` repository. |