Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9899

Closed
Open
Created Dec 09, 2015 by Administrator@rootOwner

There doesn't appear to be a way to create public snippets that can be viewed without a user having to login

Created by: BrianGilbert

Summary: When you create a public snippet, a user accessing the link is still prompted to log into the gitlab instance, this isn't what I would expect public to mean.

Steps to reproduce: Make a public snippet, navigate to /explore/snippets as an un-authenticated user and you will see the snippet listed, when you click on the link to view the snippet you will be asked to sign in.

Expected behavior: clicking a public snippet link displays the snippet without having to log in

Observed behavior: Currently public snippets still require login to access

Notes:
Remaining issues from the original implementation..

  • We'd really like to see the ability to get a public url without using a user based token, it's really annoying to have to create a read only user and add the user to every repo just so you can have public snippet links out in the wild that aren't using the token from your own personal account.
    https://github.com/gitlabhq/gitlabhq/issues/1031#issuecomment-6930063
  • there doesn't appear to be a way to have a global token without adding a user to every project
    https://github.com/gitlabhq/gitlabhq/issues/1031#issuecomment-7386201
Assignee
Assign to
Time tracking