Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Brown-University-Library

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
@Brown-University-Library

Brown University Library

Security

Main security message:

Never Commit Sensitive Information: Avoid committing passwords, API keys, server paths, database-structure info (where reasonably possible), and other confidential data to your repository -- even if the repository is private.

How to reliably do this?

  • Keep private things out of the github code directory:
  • Things to keep out of the github code directory: Private settings, environmental-variable-shell-scripts, and log-files (which can sometimes contain sensitive info). One common pattern is to have a "project_outer_directory" that contains these things (as well as the "project_code_directory"), and have that "project_code_directory" the one that gets committed to github.
  • Utilize Environment Variables: Store sensitive information in environment variables, which are not tracked in version control. Then load these from your code.
  • Do not depend on the .gitignore file for security: Rather, get in the habit of thinking of the .gitignore file as keeping messy-unnecessary-cruft out of github (like virtual-environments), not as basic security. Instead, keep the sensitive info out of the github directory in the first place.

Other recommended GitHub practices...

  • Include a README
  • Really helpful areas: Purpose, Usage, Installation
  • Add a "Description"
  • Include "dependencies" in such a way that github can auto-scan them and notify you of vulnerabilities
  • If you have a dotenv with private info—as noted above it should not be in the repo—but it's useful to have a "sample_dotenv.txt" file for users to get a sense of what kind of info is required.
  • Main branch is special.
  • It should always work.
  • There should be a "release" for every version of the code actually deployed. (That makes it easier to know which commit to revert back to if there's a problem.)

See also:

This document is a draft & will be undergoing revisions.

PinnedLoading

  1. bdrxmlbdrxmlPublic

    Reading and writing XML for the Fedora based BDR.

    Python 1 3

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 10 of 232 repositories
  • dataservices_cr_genAI_ocr Public

    A genAI-powered workflow for digitizing historical tabular data using the Claude API

    Brown-University-Library/dataservices_cr_genAI_ocr’s past year of commit activity
    Jupyter Notebook00 0 0 UpdatedMar 25, 2025
  • Brown-University-Library/site_checker_project’s past year of commit activity
    CSS0MIT0 1 0 UpdatedMar 24, 2025
  • Brown-University-Library/bdr_deposits_uploader_project’s past year of commit activity
    Python00 3 0 UpdatedMar 24, 2025
  • vivo-on-rails Public

    A Ruby on Rails front-end for VIVO

    Brown-University-Library/vivo-on-rails’s past year of commit activity
    Ruby 90 1 4 UpdatedMar 20, 2025
  • brown-hugo-starter Public Forked fromericmurphyxyz/hugo-starter-theme

    Starter theme for Hugo static sites/prototypes, with some additions for BUL/CDS.

    Brown-University-Library/brown-hugo-starter’s past year of commit activity
    HTML0 31 0 0 UpdatedMar 20, 2025
  • usep-data Public

    inscriptions and related data files for 'http://library.brown.edu/projects/usep/'

    Brown-University-Library/usep-data’s past year of commit activity
    XSLT 2 22 49 0 UpdatedMar 20, 2025
  • gcp_ingest Public
    Brown-University-Library/gcp_ingest’s past year of commit activity
    Python00 0 0 UpdatedMar 18, 2025
  • Brown-University-Library/requirements-auto-updater’s past year of commit activity
    Python00 1 0 UpdatedMar 18, 2025
  • geodata_pvdcrosswalk Public

    Providence Census Geography Crosswalk

    Brown-University-Library/geodata_pvdcrosswalk’s past year of commit activity
    2 2 0 1 UpdatedMar 18, 2025
  • in-out-of-place-custer Public

    Prototype of Leaflet StoryMap for In and Out of Place project featuring Custer's Expedition in 1874.

    Brown-University-Library/in-out-of-place-custer’s past year of commit activity
    JavaScript0MIT0 0 0 UpdatedMar 17, 2025

Top languages

Loading…

Most used topics

Loading…


[8]ページ先頭

©2009-2025 Movatter.jp