Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Adding an encryption key to an existing ProGet instance that never had one

    Scheduled Pinned Locked Moved Support
    1 Posts 1 Posters 2 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      carl.westman_8110
      last edited by

      We're running ProGet 25.0.25 in Docker (Azure App Service for Containers,
      configured via environment variables, so no shared config file).

      This instance has never had an encryption key set. The startup log confirms
      it: "No encryption key is configured. Credentials will be stored in plain
      text." We have a couple of feed connectors whose credentials are therefore
      stored unencrypted, and we'd like to fix that.

      The documentation I can find only covers preserving an existing key across a
      migration (Backing Up & Restoring, Migrate to a New Server), and the
      configuration files reference just notes that EncryptionKey is optional. I
      can't find anything on introducing a key to an instance that doesn't have
      one.

      My questions:

      1. Is it supported to add an EncryptionKey to an existing instance that has
        never had one?

      2. What happens to credentials already stored in plaintext? Are they
        migrated/re-encrypted on startup, left as-is, or will reads fail once a
        key is configured?

      3. If there's no automatic migration, is re-entering each credential through
        the UI after setting the key the correct approach?

      4. We're also migrating this instance from SQL Server to PostgreSQL 17
        shortly. Is there a preferred order - set the key before or after the
        database migration, or does it not matter?

      Thanks!

      https://github.com/Wesztman

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post
      Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation