Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Get credential from Cattle's service account #77

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mcanevet
Copy link
Contributor

Implement #76

@mcanevet mcanevet changed the title [WIP] Get credential from Cattle's service account Get credential from Cattle's service account May 25, 2018
@mcanevet
Copy link
Contributor Author

@raphink @cloudnautique ready to review.

@ghost ghost added the size/XL label Oct 27, 2018
@mcanevet
Copy link
Contributor Author

@raphink could you please review this? The idea is to be able to deploy stack from a CI that would run on an environment without needing to pass credentials. For example we could have a small DroneCI container in every Rancher environment that could be used by our developers to deploy their stacks.

// Override with new environment variables
apiURL = d.Get("cattle_url").(string)
accessKey = d.Get("cattle_access_key").(string)
secretKey = d.Get("cattle_secret_key").(string)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why duplicate the keys if they have exactly the same role?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So that we can use the environment variables provided by cattle

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see…

@raphink
Copy link
Contributor

raphink commented Jul 26, 2019

@mcanevet do you still want to merge this?

@mcanevet
Copy link
Contributor Author

If it does not break what exists, yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants