Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Openshift serviceaccount requires OAuth token authentication #1656

Closed
dantalian-pv opened this issue Jun 18, 2019 · 0 comments
Closed

Openshift serviceaccount requires OAuth token authentication #1656

dantalian-pv opened this issue Jun 18, 2019 · 0 comments

Comments

@dantalian-pv
Copy link
Contributor

Description

Authentication on OpenShift fails when username/password is used for serviceaccount, because serviceaccount uses OAuth token for login. For now there is no possibility to provide the token in plugin configuration. To make it possible, I've made some changes in plugin source code and made a pull request for it (See link below).

New configuration example:

<plugin>
	<groupId>io.fabric8</groupId>
	<artifactId>fabric8-maven-plugin</artifactId>
	<version>4.1-SNAPSHOT</version>
	<configuration>
		<access>
			<token>SOME_TOKEN_FOR_SERVICEACCOUNT</token>
			<masterUrl>https://master.host:8443</masterUrl>
		</access>
	</configuration>
</plugin>

mvn fabric8:apply -Dfabric8.namespace=some-project -Dfabric8.openshiftManifest=/path/to/ready-deployment-config.yaml

Info

@dantalian-pv dantalian-pv changed the title Openshift serviceaccount requires OAuth authentication Openshift serviceaccount requires OAuth token authentication Jun 19, 2019
dantalian-pv added a commit to dantalian-pv/fabric8-maven-plugin that referenced this issue Jun 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant