{"action":"created","issue":{"url":"https://api.github.com/repos/openfaas/faas/issues/807","repository_url":"https://api.github.com/repos/openfaas/faas","labels_url":"https://api.github.com/repos/openfaas/faas/issues/807/labels{/name}","comments_url":"https://api.github.com/repos/openfaas/faas/issues/807/comments","events_url":"https://api.github.com/repos/openfaas/faas/issues/807/events","html_url":"https://github.com/openfaas/faas/issues/807","id":348282315,"node_id":"MDU6SXNzdWUzNDgyODIzMTU=","number":807,"title":"Proposal: manage secrets via OpenFaaS API","user":{"login":"alexellis","id":6358735,"node_id":"MDQ6VXNlcjYzNTg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"labels":[{"id":725579403,"node_id":"MDU6TGFiZWw3MjU1Nzk0MDM=","url":"https://api.github.com/repos/openfaas/faas/labels/design/review","name":"design/review","color":"ededed","default":false},{"id":505489876,"node_id":"MDU6TGFiZWw1MDU0ODk4NzY=","url":"https://api.github.com/repos/openfaas/faas/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":689450713,"node_id":"MDU6TGFiZWw2ODk0NTA3MTM=","url":"https://api.github.com/repos/openfaas/faas/labels/proposal","name":"proposal","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-08-07T11:35:23Z","updated_at":"2018-09-25T14:17:59Z","closed_at":null,"author_association":"MEMBER","body":"<!--- Provide a general summary of the issue in the Title above -->\r\n\r\n## Feature\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\nThis feature would allow secrets to be created in the backing provider's credential store using a single CLI command regardless of what the backing orchestrator is.\r\n\r\n```\r\nfaas-cli secret create --name secret-name --value secret-value\r\n```\r\n\r\nIt could also be used with reading from a file with `--from-file` for instance.\r\n\r\n## Why is this needed?\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\nEach tutorial for OpenFaaS has to list Docker Swarm and Kubernetes secret creation commands. This is becoming hard to manage and duplicates effort. It'd be better if we could abstract this away.\r\n\r\nA secrets API would also be useful for automating OpenFaaS.\r\n\r\nDELETE / POST / GET / PUT -> `/system/secrets`\r\n\r\nI would suggest that fetching a secret value would be not allowed, but getting a list of secrets, deleting or updating should be.\r\n\r\nEdit: `GET` is the same as a `list` operation, it is not meant to get the plain-text value of a secret, that is not what this feature is about (this was misinterpreted in the comments)\r\n\r\n## Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\nAdd support in OpenFaaS:\r\n\r\n* Create REST API extensions\r\n* Update Swarm, K8s providers\r\n* Update CLI\r\n\r\n## Steps to Reproduce (for bugs)\r\n\r\nExample: https://docs.openfaas.com/reference/secrets/#use-the-secret-in-your-function"},"comment":{"url":"https://api.github.com/repos/openfaas/faas/issues/comments/424361806","html_url":"https://github.com/openfaas/faas/issues/807#issuecomment-424361806","issue_url":"https://api.github.com/repos/openfaas/faas/issues/807","id":424361806,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDM2MTgwNg==","user":{"login":"alexellis","id":6358735,"node_id":"MDQ6VXNlcjYzNTg3MzU=","avatar_url":"https://avatars1.githubusercontent.com/u/6358735?v=4","gravatar_id":"","url":"https://api.github.com/users/alexellis","html_url":"https://github.com/alexellis","followers_url":"https://api.github.com/users/alexellis/followers","following_url":"https://api.github.com/users/alexellis/following{/other_user}","gists_url":"https://api.github.com/users/alexellis/gists{/gist_id}","starred_url":"https://api.github.com/users/alexellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexellis/subscriptions","organizations_url":"https://api.github.com/users/alexellis/orgs","repos_url":"https://api.github.com/users/alexellis/repos","events_url":"https://api.github.com/users/alexellis/events{/privacy}","received_events_url":"https://api.github.com/users/alexellis/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T14:17:59Z","updated_at":"2018-09-25T14:17:59Z","author_association":"MEMBER","body":"Related https://github.com/openfaas/openfaas-cloud/issues/220"}}
{"actor":{"display_login":"alexellis"}}