[{"data":1,"prerenderedAt":649},["ShallowReactive",2],{"navigation_docs":3,"-cli-guides-docker":276,"-cli-guides-docker-surround":644},[4,203],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":21},"Documentation","i-lucide-book-open","\u002Fdocs","1.docs",[10,15,19,45,87,104,121,155,198],{"title":11,"path":12,"stem":13,"icon":14},"Welcome","\u002Fdocs\u002Fwelcome","1.docs\u002F1.welcome","i-lucide-house",{"title":16,"path":17,"stem":18},"Quick Start","\u002Fdocs\u002Fquickstart","1.docs\u002F2.quickstart",{"title":20,"icon":21,"path":22,"stem":23,"children":24,"page":21},"Auth Methods",false,"\u002Fdocs\u002Fauth","1.docs\u002F3.auth",[25,29,33,37,41],{"title":26,"path":27,"stem":28},"Overview","\u002Fdocs\u002Fauth\u002Foverview","1.docs\u002F3.auth\u002F1.overview",{"title":30,"path":31,"stem":32},"Google","\u002Fdocs\u002Fauth\u002Fgoogle","1.docs\u002F3.auth\u002F2.google",{"title":34,"path":35,"stem":36},"Microsoft","\u002Fdocs\u002Fauth\u002Fmicrosoft","1.docs\u002F3.auth\u002F3.microsoft",{"title":38,"path":39,"stem":40},"Github","\u002Fdocs\u002Fauth\u002Fgithub","1.docs\u002F3.auth\u002F4.github",{"title":42,"path":43,"stem":44},"Personal Access Tokens","\u002Fdocs\u002Fauth\u002Fuser-tokens","1.docs\u002F3.auth\u002F5.user-tokens",{"title":46,"icon":21,"path":47,"stem":48,"children":49,"page":21},"Organizations","\u002Fdocs\u002Forganization","1.docs\u002F4.organization",[50,54,58,62,66,70,74],{"title":51,"path":52,"stem":53},"Organization Overview","\u002Fdocs\u002Forganization\u002Foverview","1.docs\u002F4.organization\u002F1.overview",{"title":55,"path":56,"stem":57},"Create Organization","\u002Fdocs\u002Forganization\u002Fcreate","1.docs\u002F4.organization\u002F2.create",{"title":59,"path":60,"stem":61},"Billing","\u002Fdocs\u002Forganization\u002Fbilling","1.docs\u002F4.organization\u002F3.billing",{"title":63,"path":64,"stem":65},"Organization permissions","\u002Fdocs\u002Forganization\u002Fpermissions","1.docs\u002F4.organization\u002F4.permissions",{"title":67,"path":68,"stem":69},"Organization users","\u002Fdocs\u002Forganization\u002Fusers","1.docs\u002F4.organization\u002F5.users",{"title":71,"path":72,"stem":73},"Organization security","\u002Fdocs\u002Forganization\u002Fsecurity","1.docs\u002F4.organization\u002F6.security",{"title":75,"icon":21,"path":76,"stem":77,"children":78,"page":21},"Audit","\u002Fdocs\u002Forganization\u002Faudit","1.docs\u002F4.organization\u002F7.audit",[79,83],{"title":80,"path":81,"stem":82},"Audit Logs","\u002Fdocs\u002Forganization\u002Faudit\u002Flogs","1.docs\u002F4.organization\u002F7.audit\u002F1.logs",{"title":84,"path":85,"stem":86},"Audit Notifications","\u002Fdocs\u002Forganization\u002Faudit\u002Fnotifications","1.docs\u002F4.organization\u002F7.audit\u002F2.notifications",{"title":88,"icon":21,"path":89,"stem":90,"children":91,"page":21},"Workspaces","\u002Fdocs\u002Fworkspaces","1.docs\u002F5.workspaces",[92,96,100],{"title":93,"path":94,"stem":95},"Workspace Overview","\u002Fdocs\u002Fworkspaces\u002Foverview","1.docs\u002F5.workspaces\u002F1.overview",{"title":97,"path":98,"stem":99},"Create Workspace","\u002Fdocs\u002Fworkspaces\u002Fcreate","1.docs\u002F5.workspaces\u002F2.create",{"title":101,"path":102,"stem":103},"Workspace permissions","\u002Fdocs\u002Fworkspaces\u002Fpermissions","1.docs\u002F5.workspaces\u002F3.permissions",{"title":105,"icon":21,"path":106,"stem":107,"children":108,"page":21},"Kubernetes Agent","\u002Fdocs\u002Fagents","1.docs\u002F6.agents",[109,113,117],{"title":110,"path":111,"stem":112},"Agents Overview","\u002Fdocs\u002Fagents\u002Foverview","1.docs\u002F6.agents\u002F1.overview",{"title":114,"path":115,"stem":116},"Agents Deployment","\u002Fdocs\u002Fagents\u002Fdeployment","1.docs\u002F6.agents\u002F2.deployment",{"title":118,"path":119,"stem":120},"Agents Security","\u002Fdocs\u002Fagents\u002Fsecurity","1.docs\u002F6.agents\u002F3.security",{"title":122,"icon":21,"path":123,"stem":124,"children":125,"page":21},"Secrets","\u002Fdocs\u002Fsecrets","1.docs\u002F7.secrets",[126,130,134,138,142],{"title":127,"path":128,"stem":129},"Secret Overview","\u002Fdocs\u002Fsecrets\u002Foverview","1.docs\u002F7.secrets\u002F1.overview",{"title":131,"path":132,"stem":133},"Secret Types","\u002Fdocs\u002Fsecrets\u002Ftypes","1.docs\u002F7.secrets\u002F2.types",{"title":135,"path":136,"stem":137},"Secret Versions","\u002Fdocs\u002Fsecrets\u002Fversions","1.docs\u002F7.secrets\u002F3.versions",{"title":139,"path":140,"stem":141},"Two-Factor codes","\u002Fdocs\u002Fsecrets\u002Ftwo-factor","1.docs\u002F7.secrets\u002F4.two-factor",{"title":143,"icon":21,"path":144,"stem":145,"children":146,"page":21},"One-time share","\u002Fdocs\u002Fsecrets\u002Fonetime","1.docs\u002F7.secrets\u002F5.onetime",[147,151],{"title":148,"path":149,"stem":150},"Secret Version","\u002Fdocs\u002Fsecrets\u002Fonetime\u002Fversion","1.docs\u002F7.secrets\u002F5.onetime\u002F1.version",{"title":152,"path":153,"stem":154},"Custom note","\u002Fdocs\u002Fsecrets\u002Fonetime\u002Fcustom","1.docs\u002F7.secrets\u002F5.onetime\u002F2.custom",{"title":156,"icon":21,"path":157,"stem":158,"children":159,"page":21},"Integrations","\u002Fdocs\u002Fintegration","1.docs\u002F8.integration",[160,163,176,185],{"title":26,"path":161,"stem":162},"\u002Fdocs\u002Fintegration\u002Foverview","1.docs\u002F8.integration\u002F1.overview",{"title":164,"icon":21,"path":165,"stem":166,"children":167,"page":21},"Notifications","\u002Fdocs\u002Fintegration\u002Fnotification","1.docs\u002F8.integration\u002F2.notification",[168,172],{"title":169,"path":170,"stem":171},"Slack","\u002Fdocs\u002Fintegration\u002Fnotification\u002Fslack","1.docs\u002F8.integration\u002F2.notification\u002F1.slack",{"title":173,"path":174,"stem":175},"Telegram","\u002Fdocs\u002Fintegration\u002Fnotification\u002Ftelegram","1.docs\u002F8.integration\u002F2.notification\u002F2.telegram",{"title":177,"icon":21,"path":178,"stem":179,"children":180,"page":21},"Connections","\u002Fdocs\u002Fintegration\u002Fconnections","1.docs\u002F8.integration\u002F3.connections",[181],{"title":182,"path":183,"stem":184},"GCP Connection","\u002Fdocs\u002Fintegration\u002Fconnections\u002Fgcp","1.docs\u002F8.integration\u002F3.connections\u002F1.gcp",{"title":186,"icon":21,"path":187,"stem":188,"children":189,"page":21},"KMS (Key Management System)","\u002Fdocs\u002Fintegration\u002Fkms","1.docs\u002F8.integration\u002F4.kms",[190,194],{"title":191,"path":192,"stem":193},"KMS Overview","\u002Fdocs\u002Fintegration\u002Fkms\u002Foverview","1.docs\u002F8.integration\u002F4.kms\u002F1.overview",{"title":195,"path":196,"stem":197},"GCP KMS","\u002Fdocs\u002Fintegration\u002Fkms\u002Fgcp","1.docs\u002F8.integration\u002F4.kms\u002F2.gcp",{"title":199,"path":200,"stem":201,"icon":202},"Security","\u002Fdocs\u002Fsecurity","1.docs\u002F9.security","i-lucide-shield-check",{"title":204,"icon":205,"path":206,"stem":207,"children":208,"page":21},"CLI Reference","i-lucide-terminal","\u002Fcli","2.cli",[209,212,216,255],{"title":26,"path":210,"stem":211},"\u002Fcli\u002Foverview","2.cli\u002F1.overview",{"title":213,"path":214,"stem":215},"Quickstart","\u002Fcli\u002Fquickstart","2.cli\u002F2.quickstart",{"title":217,"icon":21,"path":218,"stem":219,"children":220,"page":21},"Commands","\u002Fcli\u002Fcommands","2.cli\u002F3.commands",[221,225,229,247,251],{"title":222,"path":223,"stem":224},"ennote auth","\u002Fcli\u002Fcommands\u002Fauth","2.cli\u002F3.commands\u002F1.auth",{"title":226,"path":227,"stem":228},"ennote config","\u002Fcli\u002Fcommands\u002Fconfig","2.cli\u002F3.commands\u002F2.config",{"title":230,"path":231,"stem":232,"children":233,"icon":21},"ennote secret","\u002Fcli\u002Fcommands\u002Fsecret","2.cli\u002F3.commands\u002F3.secret\u002F1.index",[234,235,239,243],{"title":26,"path":231,"stem":232},{"title":236,"path":237,"stem":238},"create","\u002Fcli\u002Fcommands\u002Fsecret\u002Fcreate","2.cli\u002F3.commands\u002F3.secret\u002F2.create",{"title":240,"path":241,"stem":242},"get","\u002Fcli\u002Fcommands\u002Fsecret\u002Fget","2.cli\u002F3.commands\u002F3.secret\u002F3.get",{"title":244,"path":245,"stem":246},"import","\u002Fcli\u002Fcommands\u002Fsecret\u002Fimport","2.cli\u002F3.commands\u002F3.secret\u002F4.import",{"title":248,"path":249,"stem":250},"ennote share","\u002Fcli\u002Fcommands\u002Fshare","2.cli\u002F3.commands\u002F4.share",{"title":252,"path":253,"stem":254},"ennote version","\u002Fcli\u002Fcommands\u002Fversion","2.cli\u002F3.commands\u002F5.version",{"title":256,"icon":21,"path":257,"stem":258,"children":259,"page":21},"Guides","\u002Fcli\u002Fguides","2.cli\u002F4.guides",[260,264,268,272],{"title":261,"path":262,"stem":263},"GitHub Actions","\u002Fcli\u002Fguides\u002Fgithub-actions","2.cli\u002F4.guides\u002F1.github-actions",{"title":265,"path":266,"stem":267},"GitLab CI\u002FCD","\u002Fcli\u002Fguides\u002Fgitlab-ci","2.cli\u002F4.guides\u002F2.gitlab-ci",{"title":269,"path":270,"stem":271},"Docker","\u002Fcli\u002Fguides\u002Fdocker","2.cli\u002F4.guides\u002F3.docker",{"title":273,"path":274,"stem":275},"Import from other managers","\u002Fcli\u002Fguides\u002Fimport","2.cli\u002F4.guides\u002F4.import",{"id":277,"title":269,"body":278,"description":635,"extension":636,"links":637,"meta":638,"navigation":639,"path":270,"seo":640,"stem":271,"__hash__":643},"docs\u002F2.cli\u002F4.guides\u002F3.docker.md",{"type":279,"value":280,"toc":625},"minimark",[281,290,305,359,374,378,385,447,450,478,482,485,523,526,569,592,596,601,611,615,618,621],[282,283,285,286],"h2",{"id":284},"option-1-inject-into-docker-run","Option 1: inject into ",[287,288,289],"code",{},"docker run",[291,292,293,296,297,300,301,304],"p",{},[287,294,295],{},"ennote secret get \u003Csecret> -- \u003Ccommand>"," starts the command with each key of the secret as an environment variable. ",[287,298,299],{},"docker run -e NAME"," (without ",[287,302,303],{},"=value",") copies that variable from the Docker CLI's environment into the container:",[306,307,312],"pre",{"className":308,"code":309,"language":310,"meta":311,"style":311},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","ennote secret get app -- docker run --rm -e DB_PASSWORD -e API_KEY my-image\n","bash","",[287,313,314],{"__ignoreMap":311},[315,316,319,323,327,330,333,336,339,342,345,348,351,353,356],"span",{"class":317,"line":318},"line",1,[315,320,322],{"class":321},"sBMFI","ennote",[315,324,326],{"class":325},"sfazB"," secret",[315,328,329],{"class":325}," get",[315,331,332],{"class":325}," app",[315,334,335],{"class":325}," --",[315,337,338],{"class":325}," docker",[315,340,341],{"class":325}," run",[315,343,344],{"class":325}," --rm",[315,346,347],{"class":325}," -e",[315,349,350],{"class":325}," DB_PASSWORD",[315,352,347],{"class":325},[315,354,355],{"class":325}," API_KEY",[315,357,358],{"class":325}," my-image\n",[291,360,361,362,365,366,369,370,373],{},"Here ",[287,363,364],{},"app"," is a secret with the keys ",[287,367,368],{},"DB_PASSWORD"," and ",[287,371,372],{},"API_KEY",". The values are never written to a file or typed on the command line.",[282,375,377],{"id":376},"option-2-docker-compose","Option 2: Docker Compose",[291,379,380,381,384],{},"Compose reads variables from the environment it runs in. List the keys under ",[287,382,383],{},"environment"," without values:",[306,386,391],{"className":387,"code":388,"filename":389,"language":390,"meta":311,"style":311},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","services:\n  api:\n    image: my-image\n    environment:\n      - DB_PASSWORD\n      - API_KEY\n","compose.yaml","yaml",[287,392,393,403,411,422,430,439],{"__ignoreMap":311},[315,394,395,399],{"class":317,"line":318},[315,396,398],{"class":397},"swJcz","services",[315,400,402],{"class":401},"sMK4o",":\n",[315,404,406,409],{"class":317,"line":405},2,[315,407,408],{"class":397},"  api",[315,410,402],{"class":401},[315,412,414,417,420],{"class":317,"line":413},3,[315,415,416],{"class":397},"    image",[315,418,419],{"class":401},":",[315,421,358],{"class":325},[315,423,425,428],{"class":317,"line":424},4,[315,426,427],{"class":397},"    environment",[315,429,402],{"class":401},[315,431,433,436],{"class":317,"line":432},5,[315,434,435],{"class":401},"      -",[315,437,438],{"class":325}," DB_PASSWORD\n",[315,440,442,444],{"class":317,"line":441},6,[315,443,435],{"class":401},[315,445,446],{"class":325}," API_KEY\n",[291,448,449],{},"Then start Compose through the CLI:",[306,451,453],{"className":308,"code":452,"language":310,"meta":311,"style":311},"ennote secret get app -- docker compose up -d\n",[287,454,455],{"__ignoreMap":311},[315,456,457,459,461,463,465,467,469,472,475],{"class":317,"line":318},[315,458,322],{"class":321},[315,460,326],{"class":325},[315,462,329],{"class":325},[315,464,332],{"class":325},[315,466,335],{"class":325},[315,468,338],{"class":325},[315,470,471],{"class":325}," compose",[315,473,474],{"class":325}," up",[315,476,477],{"class":325}," -d\n",[282,479,481],{"id":480},"option-3-the-cli-as-the-container-entrypoint","Option 3: the CLI as the container entrypoint",[291,483,484],{},"Install the Ennote CLI in the image and let it start your app, so secrets are fetched when the container starts:",[306,486,491],{"className":487,"code":488,"filename":489,"language":490,"meta":311,"style":311},"language-dockerfile shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","FROM alpine:3.20\nRUN apk add --no-cache curl \\\n && curl -sSfL https:\u002F\u002Fget.ennote.io\u002Fget-cli.sh | sh\nCOPY app \u002Fapp\nENTRYPOINT [\"ennote\", \"secret\", \"get\", \"app\", \"--\"]\nCMD [\"\u002Fapp\u002Fserver\"]\n","Dockerfile","dockerfile",[287,492,493,498,503,508,513,518],{"__ignoreMap":311},[315,494,495],{"class":317,"line":318},[315,496,497],{},"FROM alpine:3.20\n",[315,499,500],{"class":317,"line":405},[315,501,502],{},"RUN apk add --no-cache curl \\\n",[315,504,505],{"class":317,"line":413},[315,506,507],{}," && curl -sSfL https:\u002F\u002Fget.ennote.io\u002Fget-cli.sh | sh\n",[315,509,510],{"class":317,"line":424},[315,511,512],{},"COPY app \u002Fapp\n",[315,514,515],{"class":317,"line":432},[315,516,517],{},"ENTRYPOINT [\"ennote\", \"secret\", \"get\", \"app\", \"--\"]\n",[315,519,520],{"class":317,"line":441},[315,521,522],{},"CMD [\"\u002Fapp\u002Fserver\"]\n",[291,524,525],{},"Provide the token and target at runtime, not at build time:",[306,527,529],{"className":308,"code":528,"language":310,"meta":311,"style":311},"docker run --rm \\\n  -e ENNOTE_TOKEN -e ENNOTE_ORGANIZATION_ID=org_123 -e ENNOTE_WORKSPACE_ID=wrk_prod \\\n  my-image\n",[287,530,531,544,564],{"__ignoreMap":311},[315,532,533,536,538,540],{"class":317,"line":318},[315,534,535],{"class":321},"docker",[315,537,341],{"class":325},[315,539,344],{"class":325},[315,541,543],{"class":542},"sTEyZ"," \\\n",[315,545,546,549,552,554,557,559,562],{"class":317,"line":405},[315,547,548],{"class":325},"  -e",[315,550,551],{"class":325}," ENNOTE_TOKEN",[315,553,347],{"class":325},[315,555,556],{"class":325}," ENNOTE_ORGANIZATION_ID=org_123",[315,558,347],{"class":325},[315,560,561],{"class":325}," ENNOTE_WORKSPACE_ID=wrk_prod",[315,563,543],{"class":542},[315,565,566],{"class":317,"line":413},[315,567,568],{"class":325},"  my-image\n",[291,570,571,572,575,576,578,579,582,583,586,587,591],{},"Never put ",[287,573,574],{},"ENNOTE_TOKEN"," in a ",[287,577,489],{}," (",[287,580,581],{},"ENV"," or ",[287,584,585],{},"ARG","): it would be stored in the image layers. For Kubernetes, use the ",[588,589,590],"a",{"href":111},"Ennote Kubernetes agent"," instead, which syncs secrets into native Kubernetes Secrets.",[282,593,595],{"id":594},"faq","FAQ",[597,598,600],"h3",{"id":599},"how-do-i-use-ennote-secrets-in-docker-without-a-env-file","How do I use Ennote secrets in Docker without a .env file?",[291,602,603,604,582,607,610],{},"Run ",[287,605,606],{},"ennote secret get \u003Csecret> -- docker run -e KEY ...",[287,608,609],{},"ennote secret get \u003Csecret> -- docker compose up",". The secret's keys become environment variables of the Docker CLI, which passes the listed ones to the container.",[597,612,614],{"id":613},"which-option-should-i-pick","Which option should I pick?",[291,616,617],{},"Options 1 and 2 keep the image unchanged and need the Ennote CLI only on the host. Option 3 suits platforms that start containers for you, where you can set environment variables but not wrap the start command.",[619,620],"need-help",{},[622,623,624],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":311,"searchDepth":405,"depth":405,"links":626},[627,629,630,631],{"id":284,"depth":405,"text":628},"Option 1: inject into docker run",{"id":376,"depth":405,"text":377},{"id":480,"depth":405,"text":481},{"id":594,"depth":405,"text":595,"children":632},[633,634],{"id":599,"depth":413,"text":600},{"id":613,"depth":413,"text":614},"Pass Ennote secrets to Docker containers without .env files: inject them into docker run or docker compose with ennote secret get, or run the Ennote CLI inside the container as the entrypoint.","md",null,{},true,{"title":641,"description":642},"Use Ennote Secrets with Docker and Compose","Pass Ennote secrets to docker run and Docker Compose as environment variables without .env files, or run the Ennote CLI as the container entrypoint.","__X90-qzvKdI8F6vg3sJoYIHn8AEQFzzH6LJ1DG_a18",[645,647],{"title":265,"path":266,"stem":267,"description":646,"children":-1},"Use Ennote secrets in GitLab CI\u002FCD: store an Ennote token as a masked CI\u002FCD variable, install the Ennote CLI in the job, and inject secrets into scripts with ennote secret get.",{"title":273,"path":274,"stem":275,"description":648,"children":-1},"Move your secrets to Ennote with one command: export your vault from 1Password (1PUX or CSV), LastPass (CSV) or Bitwarden (CSV), preview it with ennote secret import --dry-run, then import it into a workspace.",1794717698477]