Answers: <h1>sha256sum of the Project ID</h1>
  <p>The <code>proj_id_hash</code> is the hash of the project id. It doesn't exist in the database. If your project id <code>4242</code> you would</p>
  <pre><code>echo -n 4242 | sha256sum
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2023-01-24T07:18:54.183Z
Answers: 2023-01-24T15:10:46.517Z
Answers: 2023-01-24T15:10:46.517Z
Answers: Evan Carroll
Body: <p>In this <a href="https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/uploads/working_with_uploads.md#feature-bucket-details" rel="nofollow noreferrer">document covering the Feature Bucket</a>, it says, the Bucket Structure for the Job Artifacts is</p>
  <pre><code>/artifacts/&lt;proj_id_hash&gt;/&lt;date&gt;/&lt;job_id&gt;/&lt;artifact_id&gt;
  </code></pre>
  <p>In the above, what is the <code>&lt;proj_id_hash&gt;</code>? There is only a <code>ci_project_mirrors</code> table (no <code>ci_projects</code>), and it does not have a hash column it only has 3 columns for <code>id</code>, <code>project_id</code>, and <code>namespace_id</code>.</p>
  
Tags: <gitlab>
Title: What is the GitLab proj_id_hash for the bucket structure in the object store?
UserDisplayName: Evan Carroll
ThreadText: # What is the GitLab proj_id_hash for the bucket structure in the object store?
  
  (Asked by: username_0 on 2023-01-24)
  
  In this [document covering the Feature Bucket](https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/uploads/working_with_uploads.md#feature-bucket-details), it says, the Bucket Structure for the Job Artifacts is
  
  ```
  /artifacts/<proj_id_hash>/<date>/<job_id>/<artifact_id>
  
  ```
  
  In the above, what is the `<proj_id_hash>`? There is only a `ci_project_mirrors` table (no `ci_projects`), and it does not have a hash column it only has 3 columns for `id`, `project_id`, and `namespace_id`.
  
  **Tags:** gitlab
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-01-24. Score: 0 | Accepted answer
  
  # sha256sum of the Project ID
  
  The `proj_id_hash` is the hash of the project id. It doesn't exist in the database. If your project id `4242` you would
  
  ```
  echo -n 4242 | sha256sum
  
  ```
  
  
  ---
  
  