GithubHelp home page GithubHelp logo

Swift storage service has hardcoded secrets. These must be possible to pass in to the Swift container as env variables. about chris_store HOT 3 CLOSED

jbernal0019 avatar jbernal0019 commented on August 15, 2024
Swift storage service has hardcoded secrets. These must be possible to pass in to the Swift container as env variables.

from chris_store.

Comments (3)

jennydaman avatar jennydaman commented on August 15, 2024

Related repo: https://github.com/FNNDSC/docker-swift-onlyone

Task: allow the user and password of swift service to be customized, preferably using docker secrets.
https://docs.docker.com/engine/swarm/secrets/

Docker secrets are (text) files made securely visible to containers under /run/secret/<name>. Example:

version: '3.7'

services:
  swift:
    image: fnndsc/docker-swift-onlyone:latest
    init: true
    ports:
      - "8080:8080"
    volumes:
      - swift_storage:/srv
    environment:
      SWIFT_CREDENTIALS_FILE: /run/secret/swift-credentials
    secrets:
      - swift-credentials
    restart: unless-stopped

secrets:
  swift-credentials:
    file: ./my-swift-credentials.env

Example ./my-swift-credentials.env

SWIFT_USERNAME=myusername:password5
SWIFT_KEY=mycoolkey

from chris_store.

zrthxn avatar zrthxn commented on August 15, 2024

I'd like to try this one to get started with the backend if you think it's beginner friendly.

from chris_store.

jennydaman avatar jennydaman commented on August 15, 2024

It'll be a challenge, but doable in 1-7 days after getting acquainted with the code. You should be familiar with Linux and Docker if you want to take this task.

Start here:
https://github.com/FNNDSC/docker-swift-onlyone/blob/master/swift/dispersion.conf

from chris_store.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.