Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,763
    • Issues 44,763
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,330
    • Merge requests 1,330
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #340777
Closed
Open
Issue created Sep 13, 2021 by Tim Rizzi@trizziDeveloper

New setting for TTL for the dependency proxy

Context

In #294187 (closed), we added a GraphQL API to CRUD a new time-to-life policy for container images that have been pulled from Docker Hub using the GitLab Dependency Proxy. This policy allows Group Admin to automatically remove items from the Dependency Proxy cache on a regular cadence.

This helps to reduce storage costs and keep the cache fresh.

Problem to solve

The problem is that there is no where in the user interface for you to define/update these TTL policies.

Proposal

Once the settings for the dependency proxy have been moved to the settings page (#322841 (closed)), we will add a new flow to the dependency proxy settings that allows Group Admin to CRUD TTL policies for the dependency proxy.

The default TTL for all groups should be 90 days.

Further details

With the API, you can choose to have the policy enabled or disabled and the number of days to retain a cached image file. Add a UI that allows you to do the same.

  • ❓ should we allow the user to enter any valid integer or should we give them options similar to the cleanup policies?
Name Type Description
createdAt Time Timestamp of creation.
enabled Boolean! Indicates whether the policy is enabled or disabled.
ttl Int Number of days to retain a cached image file.
updatedAt Time Timestamp of the most recent update.

Documentation

  • Ensure the dependency proxy Admin documentation is updated
Edited Oct 11, 2021 by Tim Rizzi
Assignee
Assign to
Time tracking